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

Displaying 10 Records at a time - Once Again

Subject: Displaying 10 Records at a time - Once Again
From: "karthikeyan.balasubramanian" <karthikeyan.balasubramanian@xxxxxxxxxxxxx>
Date: Tue, 4 Nov 2003 12:11:18 +0530
10 records
Hi,

  I have found below code bit easier to implement, but
I have one more requirement.

How do I show the below output :

==============================================
heading: 1st record of this 10(1)  |   heading  1st record of this 10(11)

10 records here(1-10)                |   10 records here (11-20)
==============================================
heading: 1st record of this 10(21)|   heading  1st record of this 10(31)

10 records here(21-30)              |   10 records here (31-40)
==============================================

Any help would be of great help.

Have a great day.

Karthikeyan B


XSL Code
=========

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <xsl:template match="NI">
  <table>
   <xsl:for-each select="TABLE/TBODY/ROW">
    <tr>
     <td>
      <xsl:value-of select="ENTRY[1]/PARA[1]"/>
     </td>
     <td>
      <xsl:value-of select="ENTRY[2]/PARA[2]"/>
     </td>
    </tr>
    <xsl:if test="position() mod 10 = 0">
     <tr>
      <td colspan="2">
       <hr/>
      </td>
     </tr>
    </xsl:if>
   </xsl:for-each>
  </table>
 </xsl:template>
</xsl:stylesheet>

XML Code
=========
<NI PUBLISH="DEC31">
 <TABLE>
  <TBODY>
   <ROW>
    <ENTRY>
     <PARA>MS9557-09</PARA>
     <PARA LEVEL="2">73 34 15  01  010</PARA>
    </ENTRY>
    <ENTRY>
     <PARA/>
     <PARA>3</PARA>
    </ENTRY>
   </ROW>
   <ROW>
    <ENTRY>
     <PARA>MS9557-09</PARA>
     <PARA LEVEL="2">73 34 15  01  010</PARA>
    </ENTRY>
    <ENTRY>
     <PARA/>
     <PARA>3</PARA>
    </ENTRY>
   </ROW>
  </TBODY>
 </TABLE>
</NI>






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.