|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Good old namespace problem(slightly different)!!
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








