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

newbie question...

Subject: newbie question...
From: "Terje Kristensen" <terje.kristensen@xxxxxxxxx>
Date: Thu, 29 Nov 2001 10:26:37 +0100
terje kristensen
Hi, 
I'm pretty new to both this list, and to xsl. The reason I joined the
list was that I was hoping to pick up som hints and tricks from these
e-mails.

Now, I have met a problem, that I don't know how to solve. It would have
been easy in any programming-language, but I just don't know how to do
it in xsl. I was hoping some of you knows, and would like to tell me...

I got a simple table where I receive 4 variables from the xsql 
query:PNS (nom. size), POD (dia.(mm)), PWTH (Wall th.(mm)) and 
PSCH (Schedule). The result is presented on a web-page, but 
because we also want to print it out, we are not able to present 
more than 22 records in each table. How do I tell the XSL to 
start printing a new table when it has reached 22 records? 

Example of XML: 
<ROWSET> 
<ROW> 
<PNS></PNS> 
<POD></POD> 
<PWTH></PWTH> 
<PSCH><PSCH> 
</ROW> 
<ROW> 
<PNS></PNS> 
<POD></POD> 
<PWTH></PWTH> 
<PSCH><PSCH> 
</ROW> 
... 
</ROWSET> 

Example of XSL: 
<table class="no" style="width:170mm;padding:1pt;" 
cellspacing="0" border="1"> 
<tr> 
<td class="b">Nom. Size(in)</td> 
<xsl:for-each select="ROWSET/ROW"> 
<td class="lb"><xsl:value-of select="PNS"/></td> 
</xsl:for-each> 
</tr> 
<tr> 
<td class="t">dia.(mm)</td> 
<xsl:for-each select="ROWSET/ROW"> 
<td class="lt"><xsl:value-of select="POD"/></td> 
</xsl:for-each> 
</tr> 
<tr> 
<td class="t">Wall th.(mm)</td> 
<xsl:for-each select="ROWSET/ROW"> 
<td class="lt"><xsl:value-of select="PWTH"/></td> 
</xsl:for-each> 
</tr> 
<tr> 
<td class="t">Schedule</td> 
<xsl:for-each select="ROWSET/ROW"> 
<td class="lt"><xsl:value-of select="PSCH"/>&nbsp;</td> 
</xsl:for-each> 
</tr> 
</table> 


Regards, 

Terje K.

 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.