xsl-list
[Top] [All Lists]

RE:

2003-07-28 03:37:36


From: Peter_Ivan(_at_)delhi(_dot_)tcs(_dot_)co(_dot_)in 
[mailto:Peter_Ivan(_at_)delhi(_dot_)tcs(_dot_)co(_dot_)in]
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



<Prev in Thread] Current Thread [Next in Thread>