sedj
Programmer
- Aug 6, 2002
- 5,610
Hi,
I'm using XSLT to transform an xml message into another xml format - but I need to declare an invalid 'xmlns' attribute in the root node, eg :
<DocRootNode xmlns="I_know_this_is_invalid">
<hello>there</hello>
</DocRootNode>
However, every time I attempt to generate this in XSLT, the stupid parser removes my xmlns declaration because its invalid.
I've tried putting the "xml" in <xsl:text> sections, having the output method as text etc etc, but to no avail.
Is there any way of telling the parser to stop validating and messing with my output ?
Using Saxon 8 (XSLT 2) Java parser.
Cheers
--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
I'm using XSLT to transform an xml message into another xml format - but I need to declare an invalid 'xmlns' attribute in the root node, eg :
<DocRootNode xmlns="I_know_this_is_invalid">
<hello>there</hello>
</DocRootNode>
However, every time I attempt to generate this in XSLT, the stupid parser removes my xmlns declaration because its invalid.
I've tried putting the "xml" in <xsl:text> sections, having the output method as text etc etc, but to no avail.
Is there any way of telling the parser to stop validating and messing with my output ?
Using Saxon 8 (XSLT 2) Java parser.
Cheers
--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software