This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSP and the fly likes parameters to XSL from x:transform JSTL  tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "parameters to XSL from x:transform JSTL  tag" Watch "parameters to XSL from x:transform JSTL  tag" New topic

parameters to XSL from x:transform JSTL tag

Krupa Eng
Ranch Hand

Joined: Sep 05, 2003
Posts: 60
Hi I am trying to use <x:transform> tag with <x aram> tag inside it .
Here is sample code

<c:set var="XMLLoc"><%= XMLLoc%></c:set>
<c:set var="XMLLoc"><%= XSLLoc%></c:set>
<c:set var="XSLparm">abcd</c:set>
<c:import url= "${XMLLoc}" var="xml"/>
<c:import url"${XSLLoc}" var="xsl"/>
<x:transform xml="${xml}" xslt="${xsl}">
<x aram name="param1" value="${XSLparm}"/>

The transform is working OK. I am not able to get the value in the XSL

here is my XSL:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:xsi ="">
<xsl utput method="html"/>

<xsl:template match="//Root">
<xsl aram name="param1"/>

<TABLE width ="100%">
<TR >
<td>My Param: <xsl:value-of select="$param1" /></td>
<TD width="220"><B><xsl:value-of select="elem1" /></B> </TD>
<TD width="35">Element2:</TD>
<TD width="20"><B><xsl:value-of select="elem2" /></B></TD>

I agree. Here's the link:
subject: parameters to XSL from x:transform JSTL tag
It's not a secret anymore!