Subject: RE: [xsl] RE: Using a java variable inside XSLT From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Tue, 7 Aug 2001 10:08:59 +0100 |
> We are attempting to display a first and last name in HTML > using XSLT. We > obtained the first and last name from the session object and > put the values > into a java variable. How can we display the value of our > java variable in > HTML using an XSLT template? Just pass the values into the transformation as global parameters. In the stylesheet, write <xsl:param name="firstname"/> etc In the application, assuming you are using a Java processor with the JAXP 1.1 API, write Transformer transformer = templates.newTransformer(); transformer.setParameter('firstname', value); Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] RE: Using a java variable, sumev | Thread | RE: [xsl] RE: Using a java variable, Crowers, Steve |
RE: [xsl] xpath problem, Michael Kay | Date | RE: [xsl] not wellformed contents o, Michael Kay |
Month |