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

RE:

Subject: RE:
From: "Jim Fuller" <jim.fuller@xxxxxxxxxxxxxxxxxx>
Date: Mon, 28 Jul 2003 11:37:36 +0100
ant xsl multiple result documents

> From: Peter_Ivan@xxxxxxxxxxxxxxx [mailto:Peter_Ivan@xxxxxxxxxxxxxxx]
> Sent: 28 July 2003 11:32
 
> Can a single xsl take two inputs.

yes by using the document() command

for example you can place the value of an external xml file in a variable

<xsl:variable name="myxml" select="document('somefile.xml')"/>


you would then perform transformations on it by refering to the variable

e.g.
<xsl:value select="$myxml//test"/>

would output the value of a <test/> element.

btw you will have to understand about RTF and using the common node-set extension function if you want to get any further doing stuff with this.

> 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.


This is known as multi pass, or in more general terms, a pipeline of transforms with the result of each stage being fed into the next stage.

you could use;

- ant.apache.org allows for creation of pipelines of processing using the <styler/> or <xslt/> task ( check out ant article at xml.com )

- saxon at saxon.sourceforge.net has support for multiple result documents, though you may have to use XSLT v2.0 ( no big deal, I use it daily )


good luck, Jim Fuller



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


Current Thread
  • RE:
    • Rod Humphris - FLPTN - Mon, 28 Jul 2003 07:05:00 -0400 (EDT)
      • <Possible follow-ups>
      • cknell - Mon, 28 Jul 2003 07:05:32 -0400 (EDT)
      • Peter_Ivan - Mon, 28 Jul 2003 07:46:52 -0400 (EDT)
      • Jim Fuller - Tue, 29 Jul 2003 05:36:00 -0400 (EDT) <=

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.