This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Copy namespace definition to the result tree using xslt


> I am not able to output the namespace definition to the result tree.
>
> The EXPECTED OUTPUT file from the XSLT file should look like this:
> <?xml version="1.0" encoding="UTF-8"?>
> 	<transactions xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> 	<mytesting>
> 		<xsd:schema
> xmlns:xsd="http://www.w3.org/1999/XMLSchema">
> <-- problem line

I don't see anything in your XSLT that outputs the <transactions> element,
but never mind. The xmlns:xsd declaration on your <xsd:schema> element is
completely redundant according to the XPath data model (you get the same
XPath tree whether it is there or not) and therefore an XSLT processor will
not normally generate it.

Mike Kay
Software AG


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]