RE: table column
There's always a way to get around using d-o-e: <xsl:template match="item"> <xsl:if test="position() mod 2 > 0"> <tr> <td> <xsl:apply-templates /> </td> <td> <xsl:value-of select="following-sibling::item" /> </td> </tr> </xsl:if> </xsl:template> Zarella Rendon Principal Consultant XML Factor Consulting Svcs. www.xml-factor.com -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of David Neary Sent: Monday, May 19, 2003 10:06 AM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: RE: table column De : David Carlisle [mailto:davidc@xxxxxxxxx] > > <xsl:text disable-output-escaping="yes"></tr></xsl:text> > disable-output-escaping is almost always the wrong thing to do and is > specified as being non-portable. It is useful as a method of producing > non xml output like <% ... or dealing with over-use CDATA section > sections in the input document, but it isn't needed here. I understood that to produce well-formed xml in situations where start and end tags are conditional, disable-output-escaping (or xsl:output mode="html") were required. If I leave it off, the output will be <tr> will it not? Cheers, Dave. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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