xsl-list
[Top] [All Lists]

RE: Good old namespace problem(slightly different)!!

2003-04-30 13:34:37
I wrote -
...
<!-- Here you add the namespace to each element and otherwise copy its
contents --> 
<xsl:template match='*' mode='import'>
      <xsl:element name='{name()}' namespace='www.abc.org'> 
              <xsl:apply-templates select='@*' mode='import'/>
              <xsl:apply-templates select="* | text()" mode='import'/>

      </xsl:element> 
 </xsl:template> 
     

Of course, I meant local-name() instead of name() - although name()
worked when I tested it.

Cheers,  

Tom P

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



<Prev in Thread] Current Thread [Next in Thread>