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

Re: Problem with xsl:template using XSLT 1.0

Subject: Re: Problem with xsl:template using XSLT 1.0
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Sun, 2 Dec 2007 15:40:15 +0100 (CET)
Re:  Problem with xsl:template using XSLT 1.0
Scott Trenda wrote:

  Hi

> Remember that your <xsl:template/> elements should match
> fairly generically (match="player" in this case), and your
> <xsl:apply-templates/> elements should be where you narrow
> down your selection.

  Weird, personnally I would have said the opposite.

  A template rule focuses on how dealing with the current
node, and delegates how dealing with other nodes to other
rules.  One natural way (but there are others) to handle
complexity is then to apply templates to all children and
let template rules to handle differently different matches.

  Off course, that supposes that there is a specific place
in a template rule to put an instruction "apply templates to
all children."

  Regards,

--drkm






















      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

Current Thread

Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

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