Using XSLT to Render a JSP Page
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Wed Nov 29, 2006 2:03 pm
Using XSLT to Render a JSP Page
Hi,
I have a problem when using JSP in XSLT Stylesheets.
I have one XSL Stylesheet "Product.xsl" which includes a Stylesheet "Input.xsl"
In Product.xsl I call a JSP command ( request.getQueryString()). I save this in a variable. This variabel shall be put in a function in Main.xsl.
Product.xsl
<% String mychangedqueryString = request.getQueryString(); %>
<xsl:variable name="tmpmychangedqueryString"><xsl:text disable-output-escaping="yes"><![CDATA[<%= mychangedqueryString %> ]]> </xsl:text></xsl:variable>
<xsl:call-template name="do-a-link">
<xsl:with-param name="MyQueryString" select="$tmpmychangedqueryString"/>
</xsl:call-template>
Input.xsl:
<xsl:template name="do-a-link">
<xsl:param name="MyQueryString" />
...
<xsl:variable name="url">?<xsl:value-of select="$MyQueryString"/></xsl:variable>
…
</xsl:template>
The JSP Code is not interpreted when the JSP Site is rendered. I get "<%= mychangedqueryString %> " but not the content of it, request,getQueryString() is not executed.
Thanks!
Kirstin
I have a problem when using JSP in XSLT Stylesheets.
I have one XSL Stylesheet "Product.xsl" which includes a Stylesheet "Input.xsl"
In Product.xsl I call a JSP command ( request.getQueryString()). I save this in a variable. This variabel shall be put in a function in Main.xsl.
Product.xsl
<% String mychangedqueryString = request.getQueryString(); %>
<xsl:variable name="tmpmychangedqueryString"><xsl:text disable-output-escaping="yes"><![CDATA[<%= mychangedqueryString %> ]]> </xsl:text></xsl:variable>
<xsl:call-template name="do-a-link">
<xsl:with-param name="MyQueryString" select="$tmpmychangedqueryString"/>
</xsl:call-template>
Input.xsl:
<xsl:template name="do-a-link">
<xsl:param name="MyQueryString" />
...
<xsl:variable name="url">?<xsl:value-of select="$MyQueryString"/></xsl:variable>
…
</xsl:template>
The JSP Code is not interpreted when the JSP Site is rendered. I get "<%= mychangedqueryString %> " but not the content of it, request,getQueryString() is not executed.
Thanks!
Kirstin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service