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

RE: how to add a </tr> on every position() mod 4 = 0 ?

Subject: RE: how to add a </tr> on every position() mod 4 = 0 ?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 11 Nov 2002 10:35:34 -0000
xsl tr
XSLT doesn't write tags, it writes nodes. Writing a begin tag and an end
tag are therefore not two operations that can be performed separately.

You will find the answer to your FAQ at
http://www.dpawson.co.uk/xsl/sect2/N7450.html#d7256e13

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Thomas Sandor
> Sent: 11 November 2002 08:56
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  how to add a </tr> on every position() mod 4 = 0 ?
> 
> 
> hi,
> 
> I have a list in xml, and want to show them in a 4-column 
> table (in at least 2 rows). so I would like to add a closing 
> </tr> tag to every <xsl:if
> test="position() mod 4 = 0"> but I cannot write a simple 
> closing </tr> tag here, because parser says it's an error. 
> (However a <tr/> works for output, but it's not the clean and 
> sytanctically the best way)
> 
> Does anybody have an idea?
> 
> Thanks in advance.
> 
> Cheers,
> Thomas
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 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.