#641 xsl:namespace containing xsl:fallback

v8.8
closed
Michael Kay
5
2012-10-08
2007-01-14
Michael Kay
No

If an xsl:namespace with a select attribute contains an xsl:fallback instruction, Saxon incorrectly reports

Error at xsl:namespace on ....:
XTSE0910: An xsl:namespace element with a select attribute must be empty

Workaround: As a workaround, please change

<xsl:namespace name="{ @prefix }" select="@uri">
<xsl:fallback>
<fallback/>
</xsl:fallback>
</xsl:namespace>

to

<xsl:namespace name="{ @prefix }">
<xsl:sequence select="@uri">
<xsl:fallback>
<fallback/>
</xsl:fallback>
</xsl:namespace>

Discussion