> -----Original Message-----
> From: Michael Kay [mailto:michael.h.kay@xxxxxxxxxxxx]
>
> > 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
|