[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Non-well-formed HTML in XSL

Subject: RE: Non-well-formed HTML in XSL
From: "Richard Mitchell" <Richard.Mitchell@xxxxxxxxxxxxx>
Date: Wed, 17 Jul 2002 08:57:18 +0100
richard mitchell

> -----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">&lt;/TR&gt;&lt;TR&gt;</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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.