Subject: Re: [xsl] table column From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 19 May 2003 16:43:13 +0100 |
> 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 > <tr> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] table column, David Neary | Thread | RE: [xsl] table column, Zarella Rendon |
Re: [xsl] Xalan redirect extension , Jason Varsoke | Date | RE: [xsl] table column, Zarella Rendon |
Month |