[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] pulling a document with a null namespace into a namespace


Subject: Re: [xsl] pulling a document with a null namespace into a namespace
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 8 Aug 2003 17:39:55 +0100

<xsl:template match="*">
 <xsl:element name="concat('w:',local-name())">
  <xsl:apply-templates/>
 </xsl:element>
</xsl:template>


PPS I forgot that teh name attribute is an AVT so needs {} here (and the
other examples)

<xsl:template match="*">
 <xsl:element name="{concat('w:',local-name())}">
                                       <xsl:copy-of select="@*"/>
  <xsl:apply-templates/>
 </xsl:element>
</xsl:template>


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread