• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

parameters to XSL from x:transform JSTL tag

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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}"/>
</x:transform>


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="http://www.w3.org/1999/XSL/Transform" xmlns:xsi ="http://www.w3.org/2000/10/XMLSchema-instance">
<xsl utput method="html"/>

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


<TABLE width ="100%">
<TBODY>
<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>
</TR>
</TBODY>
</TABLE>
</xsl:template>
</xsl:stylesheet>
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic