- From: Kay, Michael <Michael.Kay@softwareag.com>
- Date: Fri, 13 Jun 2003 19:40:47 +0200
- To: David.Pawson@rnib.org.uk, public-qt-comments@w3.org
> > Has an xsl:namespace example. > > the reference to 5.6.1 implies its use is discussed. > If saxon 7.5.1 implements it correctly, there is an > implication that it must be the child of an lre or an xsl:element. > > Appears not to be stated. No, there is no restriction that an xsl:namespace element must be a child of an xsl:element or literal result element. For example, it's perfectly OK to do <lre> <xsl:call-template name="x"/> </lre> <xsl:template name="x"> <xsl:namespace name="prefix">uri</xsl:namespace> </xsl:template> In fact, the rules are almost exactly the same as for xsl:attribute. What 5.6.1 says is that you'll get an error if you do: <lre> <xsl:call-template name="x"/> </lre> <xsl:template name="x"> <child/> <xsl:namespace name="prefix">uri</xsl:namespace> </xsl:template> It's entirely possible that Saxon doesn't implement the rules correctly, if you have evidence of this, please submit it on the Saxon list. Michael Kay
Received on Friday, 13 June 2003 13:44:36 UTC