|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Generating namespace nodes
I have the following problem: The XML file has th form: <?xml version="1.0" encoding="ISO-8859-1"?> <pageTemplate xmlns:xscap="urn:xscap"> <main> <xscap:wc id="e1"/> </main> </pageTemplate> The XSLT stylesheet does not know which elements the element "main" contains, (the same is true for the namespaces used in these elements) it copies the content to the output. What I expect (more exactly ASP.NET) is: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xscap="urn:xscap> ... <span> <xscap:wc id="e1" /> </span> ... </html> The problem is, xsl:copy-of creates an namespace node in the element xscap:wc, but ASP.NET does not like it. Are there any tricks to generate the expected output? Thanks Norbert XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|






