Go Back   Velocity Reviews > Newsgroups > XML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

XML - Stylesheets in Series

 
Thread Tools Search this Thread
Old 07-23-2006, 07:23 PM   #1
Default Stylesheets in Series


I need to apply 3 XSLT transformations in series. Can this be done in XSLT, or
does the calling program need to call them separately?

--
Posted via a free Usenet account from http://www.teranews.com



Newbie
  Reply With Quote
Old 07-23-2006, 11:07 PM   #2
Joe Kesselman
 
Posts: n/a
Default Re: Stylesheets in Series

Newbie wrote:
> I need to apply 3 XSLT transformations in series. Can this be done in
> XSLT, or does the calling program need to call them separately?


Depends on what you mean by "three transformations". If you mean
separate stylesheets, then you have to invoke them in sequence unless
whatever stylesheet processor you have has a feature that supports
chaining them together (not at all common).

If you're willing to rewrite it as a single stylesheet with three
different modes, and use something like the node-set extension (or rely
on having an XSLT 2.0 processor available), you can transform into a
variable and then reprocess that variable's contents, using modes to
avoid conflicts between the templates applied in each pass.

Or you can start thinking about ways to rewrite the operations so it all
happens as a single transformation.


--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump