[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Theory: Identity Transforms

Subject: RE: Theory: Identity Transforms
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 1 Feb 2006 17:59:39 -0000
theory identity
The first one applies template rules to attribute nodes, the second one
copies attribute nodes unconditionally. If you don't have any template rules
that match attribute nodes, then they do exactly the same thing.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Rick Quatro [mailto:frameexpert@xxxxxxxxxxxx] 
> Sent: 01 February 2006 17:32
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Theory: Identity Transforms
> 
> Hello All,
> 
> I am trying to get a handle on some basic XSLT concepts. I am 
> looking at 
> identity transforms and see these two basic templates:
> 
> <xsl:template match="node()|@*">
>   <xsl:copy>
>     <xsl:apply-templates select="node()|@*"/>
>   </xsl:copy>
> </xsl:template>
> 
> <xsl:template match="node()|@*" mode="copy">
>   <xsl:copy>
>     <xsl:copy-of select="@*"/>
>     <xsl:apply-templates mode="copy"/>
>   </xsl:copy>
> </xsl:template>
> 
> I don't understand the difference between the two. Thanks in advance.
> 
> Rick Quatro
> Carmen Publishing
> 585-659-8267
> www.frameexpert.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.