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

Re: breaking up <tags> is hard to do

Subject: Re: breaking up <tags> is hard to do
From: Perry Roland <pdr4h@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 23 Feb 2000 11:27:24 -0500
perry roland
Since HTML allows tag minimization, you should be able to put out
empty table row tags using xsl, e.g.

<TABLE>
<TR />
    <TD>row1, cell1</TD>
    <TD>row1, cell2</TD>
<TR />
    <TD>row2, cell1</TD>
    <TD>row2, cell2</TD>
</TABLE>

Using the default output method, however, Saxon writes out
<TABLE>
<TR></TR>
    <TD>row1, cell1</TD>
    <TD>row1, cell2</TD>
<TR></TR>
    <TD>row2, cell1</TD>
    <TD>row2, cell2</TD>
</TABLE>

Fortunately, both IE and Netscape render this correctly.  When
HTML is traded in for XHTML, however, this may stop working.
There will still be a lot of HTML markup which utilizes minimized
tags, though, so I suspect browsers will have to deal with it for
a long time to come.

Might it be possible to tweak the HTML output method of xsl
processors to output minimized markup or to drop the closing <TR>
tag in just before the opening of a new <TR>?

--
perry


 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.