Stylesheets in Series

N

Newbie

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?
 
J

Joe Kesselman

Newbie said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,002
Messages
2,570,261
Members
46,858
Latest member
FlorrieTuf

Latest Threads

Top