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[1]" />
</td>
</tr>
</xsl:if>
</xsl:template>
Zarella Rendon
Principal Consultant
XML Factor Consulting Svcs.
www.xml-factor.com
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of
David Neary
Sent: Monday, May 19, 2003 10:06 AM
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] table column
De : David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk]
<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