I have an Input XML document which has a default namspace.
This document is generated by a 3rd party system.
Code:
<FIXML xmlns="http://www.fixprotocol.org/FIXML-4-4">
<Order Acct="1" ExDest="ExchDest">
<Hdr Snt="2007-04-05T13:34:47"/>
<Instrmt Issr="Barclays" MMY="200903"/>
</Order>
</FIXML>
Now,if I use this namespace in my XSL style sheet,
no element gets displayed.
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.fixprotocol.org/FIXML-4-4" >
<xsl:output method="xml"/>
<xsl:template match="FIXML">
<xsl:apply-templates select ="Order"/>
</xsl:template>
<xsl:template match="Order">
<NewSingleOrder>
<ID>
<xsl:value-of select="@Acct"/>
</ID>
</NewSingleOrder>
As the input XML is generated dynamically and given to me,I cannot
delete the namespace from the Input XML.It wouldnt be right?
How can I solve this? Please can you help?