470,810 Members | 880 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

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

Jul 23 '06 #1
1 833
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
Jul 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by jason baumunk | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.