Hi,
I am referencing the following namespaces in the top of my XSLT and am having difficulty getting the correct output further into my code.
XSLT NS references
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:msg="http://schemas.microsoft.com/dynamics/2006/02/documents/Message" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:si="http://schemas.microsoft.com/dynamics/2006/02/documents/SalesInvoice" xmlns:js-function="//CALjs-functions">
My XSLT transformation code is:
Code:
<xsl:element name="InvoiceHeader">
<xsl:attribute name="fo:noNamespaceSchemaLocation"><xsl:text>http://www.w3.org/1999/XSL/Format</xsl:text></xsl:attribute>
...
...
...
</xsl:element>
The required output is:
Code:
<InvoiceHeader xmlns:fo="http://www.w3.org/1999/XSL/Format"
/>
But I'm getting:
Code:
<InvoiceHeader xmlns:fo="http://www.w3.org/1999/XSL/Format" fo:noNamespaceSchemaLocation="http://www.w3.org/1999/XSL/Format"/>
Can anyone help please?
Thanks in advance,