|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Identity Transform
[ Abie Hamaoui] > > hello there, > why does the standard identity transform use copy instead of copy-of? > ie: > <xsl:template match="/ | @* | node()"> > <xsl:copy> > <xsl:apply-templates select="@* | node()"/> > </xsl:copy> > </xsl:template> > > instead of just > <xsl:template match="/"> > <xsl:copy-pf select="."/> > </xsl:template> > One reason is that you often do not __quite__ want an identity transform - you want to change one or a few things but leave verything else the same. With the standard approach you can do that, with the copy-of you cannot. 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








