|
[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart


![RE: [newbie]use of xsl:if {RE: XSL to handle display mutiple](/images/get_stylus.gif)





