This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Doing multiple tranformations
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Doing multiple tranformations
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 4 May 2001 10:17:16 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I'm trying to apply multiple XSLs for a single input in a
> sequence.For eg.
>
> Input file: test.xml
> XSL1: first.xsl
> XSL2: sec.xsl
>
> Operation Needed:
> test.xml + first.xsl -> intermediate.xml
> intermediate.xml+sec.xsl -> final.xml
>
> Is there a way I can apply only the second style sheet and
> let it handle the
> first transformation also (I DON'T want to move the stuff
> from first.xsl to
> sec.xsl) ??
You can control stylesheet chaining easily using the TrAX (JAXP 1.1) API.
It's also not difficult using the MSXML API.
Saxon has an option saxon:next-in-chain on xsl:output, but it is controlled
from the first stylesheet, not the second.
I think I also came across an XSLT processor that offered chaining from the
command line, but I can't remember which one.
Of course, with the xx:node-set() extension you can also do a multi-phase
transformation within a single stylesheet.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list