[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Character Report Overflow Pages

Subject: Re: Character Report Overflow Pages
From: Matt <puskas.duck@xxxxxxxxx>
Date: Thu, 7 Jun 2007 16:47:35 +0100
Re:  Character Report Overflow Pages
This is the part where someone points out my mistakes ;-)

The only bit I wasn't sure of was your use for the parameter
headerData (i've hardcoded a value)....



<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="html" />
<xsl:template match="/">
<html>
 <xsl:apply-templates mode="page" select="/" />
 </html>
 </xsl:template>
<xsl:template match="/ROWSET/ROW" mode="page">
 <xsl:param name="headerData" />
 <xsl:param name="start" select="1" />
 <xsl:param name="range" select="5" />
 <xsl:param name="end" select="$start + $range" />
<tr>
 <xsl:apply-templates mode="header" select="HEADERDATA" />
 </tr>
<table border="1">
 <xsl:apply-templates mode="body"
select="HEADERDATA/TRANSACTIONS/RX_TRANSACTIONS[$start <=position()
and position() <$end ]" />
 </table>
<xsl:if test="$end < count(HEADERDATA/TRANSACTIONS/RX_TRANSACTIONS)">
<xsl:apply-templates mode="page" select=".">
 <xsl:with-param name="start" select="$end + 1" />
 </xsl:apply-templates>
 </xsl:if>
 </xsl:template>
<xsl:template mode="header" match="*">
<td>
 <xsl:value-of select="SOC_SEQNO" />
 </td>
<td>
 <xsl:value-of select="ACCOUNT_NO" />
 </td>
<td>
 <xsl:value-of select="SUB_ACCOUNT" />
 </td>
<td>
 <xsl:value-of select="SHORT_NAME" />
 </td>
<td>
 <xsl:value-of select="FORMATTED_ACCOUNT_NO" />
 </td>
 </xsl:template>
<xsl:template mode="body" match="*">
<tr>
<td>
 <xsl:value-of select="DESCRIPTION" />
 </td>
<td>
 <xsl:value-of select="TRANSACTION_DATE" />
 </td>
 </tr>
 </xsl:template>
 </xsl:stylesheet>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.