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

Re: Value-of, copy-of

Subject: Re: Value-of, copy-of
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Thu, 28 Feb 2002 10:27:49 -0800
apply tmeplates
With the mode, things will not be copied unless you first do 
<xsl:apply-templates mode="copy"/>.  Doing just a plain 
<xsl:apply-templates/> will not end up using the copy template.  Also, you 
cannot "override" the copying unless you also have an <xsl:template 
match="notCopiedElement" mode="copy">.  So it has its uses, but really it's a 
solution to a different problem.

On Thursday 28 February 2002 06:46, Mike Ferrando wrote:
> Joerg,
> Thanks. I found something very close to what you have suggested in
> Michael Kay's book under xsl:copy-of, except he has:
>
> <xsl:template match="@* | node()" mode="copy">
>   <xsl:copy>
>     <xsl:apply-tmeplates select="@*" mode="copy"/>
>     <xsl:apply-templates mode="copy"/>
>   </xsl:copy>
> </xsl:template>
>
> Is there some reason why the mode is used even though xsl:copy is
> part of the template? Like your post, very interesting and though
> provoking but over my head at the moment.
>
> Mike F.
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - Send FREE e-cards for every occasion!
> http://greetings.yahoo.com
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
Peter Davis
Coding is easy;  All you do is sit staring at a terminal until the drops
of blood form on your forehead.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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-2013 All Rights Reserved.