Subject: RE: [xsl] RE: Adding namespace nodes question From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Mon, 17 Dec 2001 13:49:06 -0000 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RE: Adding namespace nodes qu, Manos Batsis | Thread | RE: [xsl] RE: Adding namespace node, Michael Kay |
[xsl] Correct syntax for removing d, Ahmad J Reeves | Date | RE: [xsl] Correct syntax for removi, Chris Bayes |
Month |