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

Re: table column

Subject: Re: table column
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 19 May 2003 16:43:13 +0100
Re:  table column
> I understood that to produce well-formed xml in situations where start 
> and end tags are conditional, disable-output-escaping (or xsl:output 
> mode="html") were required. If I leave it off, the output will be 
> &lt;tr&gt; will it not?

Do not think in terms of tags when using XSLT.

XSLT does not produce a stream of tags but a tree.
You want to conditionally produce some branch of a tree so that is
<xsl:if...
<tr>
..
</tr>
</xsl:if>

grouping things into the correct <tr> groups is what is usually known as
the "grouping problem" for which there is lots of help in the FAQ or
Jeni's site. disable-output-escaping is not a recommended solution
to this problem and as I say will not work at all in many situations,
in particular it is almost guaranteed not to work in any situation where
the result is passed as an in-memeory tree to the next process (eg as
happens in mozilla or netscape or cocoon). In general it is a bad idea
to give disable-output-escaping as an answer to a user question unless
you are very sure the user is in a special situation where it is
unavoidable.


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.