|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: deep "copy-of" a source fragment
Interesting variation of the identity transformation, I used the
following code which worked!
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:html="http://www.w3.org/1999/xhtml">
<xsl:template match="/html:html"><xsl:apply-templates select="html:body/node()" mode="identity"/> </xsl:template> <xsl:template match="node()|@*" mode="identity"> <xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="identity"/>
</xsl:copy></xsl:template> </xsl:stylesheet> Thanks for the tip! Robert Koberg wrote: Hi, -- my staff profile: http://www.canberra.edu.au:8888/cn%3dKearns%20Mr%20T.%2c%20ou%3dClient%20Services%20Division%2c%20o%3dUniversity%20of%20Canberra%2c%20c%3dAU 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








