[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: Mon, 3 Dec 2007 23:53:21 +0100 (CET)
Re:  Problem with xsl:template using XSLT 1.0
Scott Trenda wrote:

  Hi

> That's a decent philosophy, but the real-world problem is
> that you usually have large chunks of data within your
> source document that you don't want in your output.

  First I didn't say that was THE answer.  But that's a way
of developing with XSLT that one doesn't have usualy when
coming from imperative languages, and that helps to fight
complexity.

  Of course the point is not to not control what the
stylesheet does, but to define what it does in places that
ease maintainability.

> If you apply-templates to all children indiscriminately
> when you only actually want to process a certain subset of
> child nodes, then you have a high probability that the
> built-in templates will catch that unwanted data,
> resulting in unwanted text everywhere in your result,
> interspersed with the text you did want.

  If the default template rules don't do what you want,
don't use them.

> Also, as I had said in the previous response, template
> match patterns must be context-free. If you need to select
> a node-set that requires a context, you're limited to
> apply-templates.

  I must confess I don't understand this paragraph.

  Regards,

--drkm






















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

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.