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

document() function and two passes (was '')

Subject: document() function and two passes (was '')
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Mon, 28 Jul 2003 12:12:02 +0100
xsl two passes

> dear sir,
> 
> Can a single xsl take two inputs.
> or can an xsl after one transformation take the transformed xml as its
> input
> which is applied by another xsl and is included the main xsl.

Check out the document() function to reference multiple xml files during a transformation.

To perform two passes (or more) in a single transformation, perform the first pass within a variable, then apply the second pass on the contents of that variable.  You can do this as many times as you like, and its what makes xslt so powerful.

For example:

<xsl:variable name="first-pass-rtf">
  <xsl:apply-templates/>
</xsl:variable>
<xsl:variable name="first-pass" select="vendor:node-set($first-pass-rtf)"/>

<xsl:variable name="second-pass">
  <xsl:for-each select="$first-pass">  
    <xsl:apply-templates/>
  </xsl:for-each>
</xsl:variable>

cheers
andrew 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003
 

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.