[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: Adding namespace nodes question

Subject: RE: RE: Adding namespace nodes question
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Mon, 17 Dec 2001 13:49:06 -0000
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.