XSLTGeneral questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
First I suggest you use literal result elements rather than xsl:element. Then you just need to write:
<InvoiceHeader>
so long as you add exclude-result-prefixes="msg si" (for example) to the xsl:stylesheet element, listing all prefixes that you have declared but do not want to appear in the output.
I'm afraid I'm at a complete loss to understand why you thought that outputting an attribute with name fo:noNamespaceSchemaLocation would not cause an attribute of that name to be output.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference