This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Passing params between java-code and stylesheet
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Passing params between java-code and stylesheet
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 18 Oct 2001 12:09:05 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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