Subject: [xsl] Passing params between java-code and stylesheet From: Nathalie Pult <s9292251@xxxxxxxxxxxxxxx> Date: Thu, 18 Oct 2001 12:48:00 +0200 (MEST) |
Hello, 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); 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] OT: my curious students w, Michael Kay | Thread | RE: [xsl] Passing params between ja, Michael Kay |
Re: [xsl] OT: my curious students w, Bertrand Delacretaz | Date | Re: [xsl] Case conversion in XSL?, Sebastian Rahtz |
Month |