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

RE: Passing params between java-code and stylesheet

Subject: RE: Passing params between java-code and stylesheet
From: "Uslu, Cihan Y (MED)" <Cihan.Uslu@xxxxxxxxxx>
Date: Thu, 18 Oct 2001 09:11:57 -0500
params in java
I tried to get the system date and pass it to the XSL file and it
works..
Java Code
-----------
transformer.setParameter("datetime", day );
-----------

XSL Code
---------

<xsl:param name="datetime"/>
...
...

<xsl:value-of select="$datetime"/>


-----Original Message-----
From: Michael Kay [mailto:mhkay@xxxxxxxxxxxx]
Sent: Thursday, October 18, 2001 6:09 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Passing params between java-code and stylesheet


> I would like to pass different params from my javacode to the
> stylesheet,
> but
> I cannot refer to them in the stylesheet.
> That's my code:
> transformer.setParameter("currentPos", String s_currentPos);
> transformer.setParameter("userID", String s_userID);

Are you sure? Those variable declarations in the second argument look
rather
odd...

(and do tell us, which product are you using?)

Mike Kay
>
> and in the stylesheet the toplevel-params
> ...
> <xsl:param name="currentPos">1</xsl:param>
> <xsl:param name="userID">1</xsl:param>
> ...
> further down
> <xsl:template match="interaction">
> 	[snip]
> 	<form ...>
> 		input type="hidden" name="userID" value="{$userID}"/>
> 		input
> type="hidden" name="currentPos" value="{$currentPos}"/>
> 	</form>
> </xsl:template>
>
> Thanks for helping!
>
> Nathalie
>
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 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.