« Rounding monetary values to two decimal places in Java | Main | Java bean for getting VAT values from a database table and splitting the figure over the number of transactions »

July 19, 2006

JSP / XSLT combo

The following is an XSLT sheet dynamically generated from JSP and demonstrating use of <xsl:sort/> and batching:

<xsl:sort select="metadata/dc:title"
order="ascending"
data-type="text"/>
<xsl:if test="position() >= ($page * $pagesize) + 1">
<xsl:if test="position() <= $pagesize + ($pagesize * $page)">
<xsl:apply-templates/>
</xsl:if>
</xsl:if>

keys.xsl.jsp

Tags: JSP , XSLT

Posted by pj at July 19, 2006 10:06 AM

Comments