<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=342254022-16092003>All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=342254022-16092003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=342254022-16092003>I would like to
retrieve a page property and use it as inoput to a JSTL tag for XML and XSLT
processing.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=342254022-16092003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=342254022-16092003>This seems difficult
since the only way I found to specify an OpenCMS file to JSTL is using the
following JSP directive.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><%@ cms
file="resources/collectionDefinition.xml" %></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=342254022-16092003><FONT face=Arial size=2>For example the
following works but everything is "static". I would like to use the xsltFilename
in my XML tags.</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=342254022-16092003><FONT face=Arial size=2>Any example from
someone smart?</FONT></SPAN></DIV>
<DIV><SPAN class=342254022-16092003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=342254022-16092003><FONT face=Arial
size=2>Laurent</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><%@ taglib prefix="c" uri="<A
href="http://java.sun.com/jstl/core">http://java.sun.com/jstl/core</A>"
%><BR><%@ taglib prefix="x" uri="<A
href="http://java.sun.com/jstl/xml">http://java.sun.com/jstl/xml</A>"
%><BR><%@ taglib prefix="cms" uri="<A
href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</A>"
%></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><html><BR><head><BR>
<title>XML Support -- Transform</title><BR></head><BR><body
bgcolor="#FFFFFF"><BR><h3>Parse / Expr</h3></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=342254022-16092003><FONT face=Arial size=2>// Set a JSTL
variable from page property </FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><c:set
var="xsltFilename"><BR><cms:property name="xslt"
/><BR></c:set></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=342254022-16092003><FONT face=Arial size=2>// Set variable to
point to XML file in VFS</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><c:set var="xmlPath"><BR><%@ cms
file="resources/collectionDefinition.xml" %><BR></c:set></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=342254022-16092003><FONT face=Arial size=2>// Set variable to
point to XSL file in VFS</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><c:set var="xsltPath"><BR><%@ cms
file="resources/dynprop2html.xsl" %><BR></c:set></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=342254022-16092003><FONT face=Arial size=2>// Import files
into JSTL variables</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><c:import var="xml"
url="${xmlPath}"/><BR><c:import var="xsl" url="${xsltPath}"
/></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=342254022-16092003><FONT face=Arial size=2>// Transform file
and output result using XML tag library for JSTL</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><x:transform xml="${xml}" xslt="${xsl}"
/></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2></body><BR></html><BR></FONT></DIV></BODY></HTML>