You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Steve Brown <pr...@flex.com.au> on 2000/03/13 23:56:55 UTC
Namespace behaviour
Hi,
The code below used to work in 0_19_2 but now I get problems in 0_20_0:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<p>hello</p>
<xsl:element name="w:crap">there</xsl:element>
</xsl:template>
</xsl:stylesheet>
<<I assume the Xml file isnt important as long as it has a root element of
some kind>>.
In 0_19_2 I get:
<?xml version="1.0" encoding="UTF-8"?>
<p>hello</p><w:crap>there</w:crap>
In 0_20_0 I get:
XSL Warning: Could not resolve namespace prefix: w. The attribute will be
ignored.
<?xml version="1.0" encoding="UTF-8"?>
<p>hello</p>there
I have looked through the posts since 0_20_0 came out but cant seem to find
anything that matches this problem.
BTW: I dont want to declare the namespace in this stylesheet. It will be
used in subsequent tranformations.
Thanks,
Steve