xsl-list
[Top] [All Lists]

Re: pulling a document with a null namespace into a namespace

2003-08-08 09:39:55

<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