I'm trying to generate a namespace in the output xml that is different to the one i use in the xsl
example:
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:xsd=" <xsl
utput method="xml" version="1.0" indent="yes"/>
<xsl:template match="/">
<xsl:element name="xsd:schema">
<xsl:attribute name="xmlns"> </xsl:attribute>
...
</xsl:element>
</xsl:template>
</xsl:stylesheet>
so this should get the following output:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns
d="urn:schemas-microsoft-com
fficedata" xmlns:xsd="...
</xsd:schema>
note that the xsd namespace is the one for 2000 and not the one for 1999. this works fine in eXcelon Stylus Studio.
but when i try to parse it with a Xalan parser it gives the following error/warning:
"SystemId Unknown; Line 12; Column -1; Could not resolve namespace prefix: xmlns. The node will be ignored."
where the line 12 points to the line where i specified the namespace :
<xsl:attribute name="xmlns"> </xsl:attribute>
example:
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:xsd=" <xsl
<xsl:template match="/">
<xsl:element name="xsd:schema">
<xsl:attribute name="xmlns"> </xsl:attribute>
...
</xsl:element>
</xsl:template>
</xsl:stylesheet>
so this should get the following output:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns
</xsd:schema>
note that the xsd namespace is the one for 2000 and not the one for 1999. this works fine in eXcelon Stylus Studio.
but when i try to parse it with a Xalan parser it gives the following error/warning:
"SystemId Unknown; Line 12; Column -1; Could not resolve namespace prefix: xmlns. The node will be ignored."
where the line 12 points to the line where i specified the namespace :
<xsl:attribute name="xmlns"> </xsl:attribute>