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

Re: one xml file + one xsl file => user based output

Subject: Re: one xml file + one xsl file => user based output
From: "Charles Knell" <cknell@xxxxxxxxxx>
Date: Tue, 06 Aug 2002 08:42:37 -0700
huskic zenina
All the processors I know permit passing a parameter to an XSLT file.
Since you are using Cocoon, you may want to get a copy of the recently-published
"Cocoon: Building XML Applications", by Matthew Langham and Carsten Zeigeler
(New Riders Press, ISBN 0735712352).

On page 92, in a section entitled "Parameters" there is a listing (Listing
4.23) entitled "Defining Parameters for a Sitemap Component"

<map:generate src="helloworld.xml" />
<map:transform src="stylesheet.xsl">
  <map:parameter name="use-request-parameters" value="true" />
</map:transform>
<map:serialize />

This will permit the parameters supplied by the Request object to be
passed along to the transformation and included in the XSLT document.

Page 230 gives the details on the Request and Response interfaces, but
you won't need to worry about the details.

If you want to experiment with supplying parameters to a processor, you'll
need to check the format for supplying them on the command line which
will be particular to each processor. If you are using the Apache XALAN-J
(which comes with Cocoon), this link gives the details:

http://xml.apache.org/xalan-j/commandline.html
-- 
Charles Knell
cknell@xxxxxxxxxx - email


---- Zenina Huskic <zehuskic@xxxxxxxxx> wrote:
> Hello!
> I'm a student at the Salzburg University, and have the
> following problem:
> We have to implement a system, which is able to
> generate html pages dynamically.
> Is there a way to pass parameters to xsl file, before
> transformation?
> 
>  Any help is appreciated!
>  Zenina
 

 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.