Thursday, May 7, 2009

Transforming XML with XSLT using JSTL

Example is using JSTL 1.1 and EL:

<%@taglib prefix="c" uri=""%>
<%@taglib prefix="x" uri=""%>

<c:import var="xml" url="/sample.xhtml"/>
<c:import var="xsl" url="/stlyesheet.xsl"/>

<x:transform xml="${xml}" xslt="${xsl}">
<x:param name="request" value="${pageContext.request}" />
<x:param name="response" value="${pageContext.response}" />

Check also the other JSTL related blogs:
- The JSTL Fine Print
- JSTL request attribute

No comments:

Post a Comment