Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Theory: Identity Transforms

From: David Carlisle <davidc@--------->
To:
Date: 2/1/2006 7:30:00 PM
> I don't understand the difference between the two. Thanks in advance.

Ignore the mode="copy" (for now)

The first one applies templates to child nodes and attributes
The second one copies attributes and just applies templates to child
nodes.

If this is the only template applying templates to attributes is the
same as copying them, b ut if you add

<xsl:template match="@important"/>

Then the first template will apply this template to any important
attribute  and (so) not copy it.

The second one will alwys copy all attributes on any elements that it is
copying.

One example used a mode and one did not, that is something elese you
could use (or not use) a mode with either style. Modes allow you to have
separate sets of templates that you apply in different contexts.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent