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

RE: The output of one template is the input of another

Subject: RE: The output of one template is the input of another template
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Sat, 22 Nov 2003 21:32:46 -0600
output of one template input
In canonical XSLT 1.0, templates can only match nodes in
the source tree, not the result tree, so this is
not possible. But if you use the nodeset() extension,
you can convert the output of the first template
into a nodeset and use that for the input of the second
template.

Or, you could use XSLT 2.0, which doesn't make a
distinction between source tree nodes and result tree fragments.

Lars


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of 
> Dongling Ding
> Sent: Saturday, November 22, 2003 8:31 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  The output of one template is the input of another
> template
> 
> 
> 
> Hi,
> 
> I have a source XML file. I want to appy a template to
> it and take its output as the input of another
> template.
> 
> The one way of doing this is to have separate XSL
> files and also have a main XSLT to call these two
> XSLTs. However, for me I have to use one XSLT file to
> contain two templates. Is there any way to do that?
> 
> Thanks
> 
> 
> Dongling
> 
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 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.