xsl-list
[Top] [All Lists]

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

2003-08-08 09:38:18

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


PS I forgot to copy any attributes, in this and all the other cases you
want


<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