[Home] [By Thread] [By Date] [Recent Entries]
Hi Mukul,
Dimitre is right, I can filter without problems the xml namespace with the initial code: <xsl:for-each select="current()//namespace::*[not(.=$currentNamepsace) and not(name()='xml')]" > A simple test to list the namespace mappings: <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/*">
<namespaces>
<xsl:for-each select="current()//namespace::*">
<namespace>
<prefix>
<xsl:value-of select="name()"/>
</prefix>
<ns>
<xsl:value-of select="."/>
</ns>
</namespace>
</xsl:for-each>
</namespaces>
</xsl:template>
</xsl:stylesheet>will give with MSXML 4.0 on a <dummy/> document: <?xml version="1.0" encoding="UTF-16"?> <namespaces> <namespace> <prefix>xml</prefix> <ns>http://www.w3.org/XML/1998/namespace</ns> </namespace> </namespaces> Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Dimitre Novatchev wrote: It would really be a nasty bug, in case Mukul got that output.
|

Cart



