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

RE: Parameters Out

Subject: RE: Parameters Out
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 18 Mar 2003 12:49:38 +0200
xsl parameters out
Hi,

> Is it possible to pass parameters out from a stylesheet as 
> well as in? I
> have a java servlet which receives an XML file and uses Xalan 
> to perform an
> XSL transform into another XML file for sending to the 
> client. One of the
> elements in the original file contains the URL to which the 
> transformed
> sheet should be sent after the transform is complete. 

1) Use an extension funtion to store the url value into a variable outside the transformation
2) re-process or pre-process the XML document and retrieve the URL, e.g. using DOM and later feeding the DOM document to the transformation
3) write your own URLResolver and use e.g.

  document(concat("yoururischeme:variablename:", url))

There are other approaches, but I'd suggest 2.

Cheers,

Jarno - Icon of Coil: Access and Amplify

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


Current Thread
  • Parameters Out
    • Varley, Roger - Tue, 18 Mar 2003 05:34:15 -0500 (EST)
      • <Possible follow-ups>
      • Jarno . Elovirta - Tue, 18 Mar 2003 05:46:10 -0500 (EST) <=

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.