[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to insert a snippet of XSD into HTML using se
At 2015-06-12 13:05 +0000, Costello, Roger L. costello@xxxxxxxxx wrote:
In my XSLT, I am using the new serialize function to output the Title element: You are addressing a node in the tree with the XSD namespace nodes attached to the element node you are addressing. Those namespace nodes are being serialized. However, when I view the HTML document in a browser, I see a bunch of namespace declarations bundled with the Title element: Because they are part of the node tree you are asking to serialize. I don't want all those namespace declarations. How do I omit them? Create a copy without the namespaces you don't want (but what you create will still have to be well-formed). I tried adding a serialization parameter to the serialize function: I don't think that will help ... I don't think serialization suppresses information you are already asking to serialize. <xsl:value-of select="serialize((//xs:element[@name eq 'Title'], $output-serialization-parameters)" /> That doesn't surprise me. I hope this helps. . . . . . . Ken
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|