This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Non-well-formed HTML in XSL
- From: "Richard Mitchell" <Richard dot Mitchell at vbnonline dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 17 Jul 2002 08:57:18 +0100
- Subject: RE: [xsl] Non-well-formed HTML in XSL
- Reply-to: xsl-list at lists dot mulberrytech dot com
> -----Original Message-----
> From: Michael Kay [mailto:michael.h.kay@ntlworld.com]
>
> > I would like to print HTML that will (eventually) be
> > well-formed. However, the XSL to display it is not
> > well-formed and thus I get an error. What I need is a way to
> > tell XSL to disregard the non-well-formedness of the HTML
> I'm writing.
> >
> > <xsl:if test="ancestor::node()[position() != 1]">
> > </tr><tr> # this is the problem
> > </xsl:if>
> >
>
>
> Now if </tr><tr> means anything, it is half of one node and half of
> another, so you're asking xsl:if to evaluate half of one
> instruction and
> half of another. This obviously doesn't make sense.
Oh well perhaps now is not a good time to mention
<xsl:choose>
<xsl:when
test="position() mod $splitafter = 0">
<!-- Ugly -
don't look -->
<xsl:text
disable-output-escaping="yes"></TR><TR></xsl:text>
</xsl:when>
<xsl:when
test="position() != last()">
<!--
<td width="5">
<xsl:copy-of select="$blankhtml"/>
</td>
-->
</xsl:when>
</xsl:choose>
....ahem
I'll just go get my coat shall I?
Richard Mitchell
Software Development Manager
http://www.vbnonline.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list