RE: [xsl] table column

Subject: RE: [xsl] table column
From: "Zarella Rendon" <zarella@xxxxxxxxxxxxx>
Date: Mon, 19 May 2003 11:02:31 -0500
There's always a way to get around using d-o-e:

<xsl:template match="item">
<xsl:if test="position() mod 2 &gt; 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@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: [xsl] table column




De : David Carlisle [mailto:davidc@xxxxxxxxx]
> >  <xsl:text disable-output-escaping="yes">&lt;/tr&gt;</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 
&lt;tr&gt; 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


Current Thread