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

Re: Stylesheet composition

Subject: Re: Stylesheet composition
From: Garvin Riensche <g.riensche@xxxxxxx>
Date: Thu, 15 Nov 2007 19:37:32 +0100
Re:  Stylesheet composition
But the second stylesheet, which is doing the addition, doesn't depend on the nodes that the first one processes, it depends on the nodes that the first one adds. And these nodes (<aaa>) habe the same name as some aleady existing nodes. The question is, is it possible for the xslt processor to find out which <aaa> elemnts are from the source xml and which are added by the stylesheet without adding extra inforomation to the added elements.
Maybe the example is not the best but i wanted to keep it short and simple. I am just looking for a way to influence a template's behavior from outside. In this case I want to control whether stylesheet2 processes all <aaa> nodes or only the ones added by the first stylesheet.


regards,
Garvin

Well, in that case, you could write your template to only apply the
second template on the nodes/items that the first template processes.

But this isn't strictly composition, I think.

On 15/11/2007, Garvin Riensche <g.riensche@xxxxxxx> wrote:
As far as I know, you can't use a temporary tree to compose
stylesheets at all. You have to write the output of one stylesheet,
and read it again in the second.
I should have written "template composition" instead of stylesheet
composition. Than it would be possible to save the result of one
template in a temporary tree (variable) and apply another template on
the result.

regards,
Garvin

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.