|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: RE: Adding namespace nodes question
> It doesn't work.
That is because you haven't done what Mike suggested. Try
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
>
<xsl:output method="xml" version="1.0" encoding="UTF-8"
indent="yes"/>
<xsl:template match="/elem">
<xsl:variable name="rtf">
<xsl:for-each select="ns[@type='extra']">
<xsl:element name="{@prefix}:dummy"
namespace="{text()}"/>
</xsl:for-each>
</xsl:variable>
<xsl:element name="{@name}">
<xsl:copy-of
select="msxsl:node-set($rtf)/*/namespace::*" />
</xsl:element>
</xsl:template>
</xsl:stylesheet>
Why do you need to do this though?
> I'm using msxml4 RTM (It's the best choice I
> have on the client side).
V4 will only be used on the client if you create it programaticaly.
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
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
|

Cart








