> 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) <=
|
|