[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Stylesheet composition
Subject: Re: Stylesheet composition|
From: Garvin Riensche <g.riensche@xxxxxxx>
Date: Thu, 15 Nov 2007 19:48:49 +0100
You mean, first let stylesheet1 add the new elements:
than let stylesheet2 do the addition
and the add the first two <aaa> to get the desired result?
This might work for this simple example but if it gets more complex, for
example if stylesheet1 does more than just simply adding these elements,
I can't use the first stylesheet without applying it to the original source.
Why not simply add your principal source content after stylesheet1 and 2
do their work?
On Thu, 2007-11-15 at 18:42 +0100, Garvin Riensche wrote:
I am currently thinking about the limitations of stylesheet
compositions. As far as I know stylesheets can run after another where
the subsequent one might work on the complete result of the precesding
one (using temporary trees). I think it is impossible to let the second
stylesheet run only on the data the first one added to the source xml
without changing the stylesheets. Let me pose an example:
Stylesheet1 just adds some more <aaa> to the source, so that the xml
after the transformation looks like:
Stylesheet2 matches the "aaa" elements and applies some transformation,
e.g. an addition, plus one, so that the output would be:
My question is the following: Is it possible, without changing
stylesheet1 or stylesheet2, to let stylesheet2 run only on the elements
stylesheet1 has added, so that the output would look like:
If this is not possible, would this be something the XML community is
I think it would be nice to have some kind of operator that would tell
the second stylesheet if it should work on the complete result of the
first one or only on the added elements.
Has someone already done any research about the limitations of
stylesheet composition and proposed an improvement? Or is the XML
community just fine with current facilities of stylesheet composition?
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format