|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:copy
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
|
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








