[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Applying two transformations consecutively

Subject: Re: Applying two transformations consecutively
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Mon, 25 Jun 2001 16:15:51 +0100
Re:  Applying two transformations consecutively
Hi Peer,

> If I use xsl:include only the rule defined last will be applied.
> What I would like to have is that the rule of the first file is
> executed first and the result is fed to the second rule.

You can do this with xsl:apply-imports.  Have the first file *import*
the second file with xsl:import (which has to come before anything
else within xsl:stylesheet):

<xsl:import href="file2.xsl" />

And then use xsl:apply-imports in your template:

<xsl:template match="ELEMENT">
   <xsl:variable name="result-from-file2">
      <xsl:apply-imports />
   ... something with $result-from-file2 ...

The processor takes the current node (the ELEMENT node) and tries to
find a template in any imported stylesheet that matches it, and
executes that.


Jeni Tennison

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.