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

RE: [newbie]use of xsl:if {RE: XSL to handle display mutiple

Subject: RE: [newbie]use of xsl:if {RE: XSL to handle display mutiple pages}
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 3 Nov 2000 14:41:57 -0400 (EST)
RE: [newbie]use of xsl:if {RE: XSL to handle display mutiple
>   I started working on XSL to handle display mutiple pages in 
> HTML.  The
> idea I tried was simple, count number of records until max 
> records per page
> reaches.  At that time, I close of the current page/table, 
> add a page break
> and start the next page/table.  But such logic seems does not 
> seems to be
> allowed in xsl blocks such as xsl:if.

It sounds simple, but XSLT isn't that kind of programming language. It is
stateless and non-sequential, so you can't count things in a variable and
take action when the variable reaches a particular value. Think in terms of
functions: how does the input relate to the output. If you want to generate
an object in the output that corresponds to 20 objects in the input, write a
template rule that reads 20 objects from the input and writes one object in
the output.

Mike Kay
> 




 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.