|
Subject: RE: [xsl] xsl:copy From: Jarno.Elovirta@xxxxxxxxx Date: Tue, 19 Feb 2002 08:23:39 +0200 |
Hi
> I need to generate a copy of an xml file using xsl ...I tried using
> xsl:copy..but this gives me only the value and not the node
> names ....Is
> there a workaround to accomplish this.
With xsl:copy, this would to it
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
but it's easier with xsl:copy-of, i.e.
<xsl:template match="/">
<xsl:copy-of select=".">
</xsl:template>
Santtu
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] A general question, Oleg Tkachenko | Thread | SUM: [xsl] duplicate id's, Gertjan Assies |
| [xsl] xsl:copy, Garrick Besterwitch | Date | Re: [xsl] Q on incremental processi, Enke Michael |
| Month |