[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Non-well-formed HTML in XSL
Subject: RE: [xsl] Non-well-formed HTML in XSL From: "Richard Mitchell" <Richard.Mitchell@xxxxxxxxxxxxx> Date: Wed, 17 Jul 2002 08:57:18 +0100 |
> -----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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Non-well-formed HTML in X, Michael Kay | Thread | Re: [xsl] Non-well-formed HTML in X, David Carlisle |
[xsl] Import HTML data into XSL out, abhishek srivastava | Date | Re: [xsl] regarding strip-space, Mike Brown |
Month |
Keywords