Re: [xsl] not wellformed contents of xsl:template

Subject: Re: [xsl] not wellformed contents of xsl:template
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 06 Aug 2001 16:02:47 -0400
At 03:33 PM 8/6/01, Jean-Baptiste wrote:
> Is  it  possible to  put  HTML  tags  that  are not  well-formed  into
> xsl:template?

Yes, by using CDATA sections <![CDATA[</td></tr></table>]]>
or by escaping < and > to &lt; and &gt; in a xsl:text statement
<xsl:text>&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</xsl:text>


Ugh! what Jean-Baptiste left out is that if you're doing this, there are way better tools than XSLT. This approach has terrible shortcomings and takes advantage of none of XSLT's strengths. It's like saying you want to make a wooden pedestal, putting your block on your lathe, and then pulling out your whittling knife.

An XSLT approach would work by looking at the problem a completely different way. Lisa should step back up the tree one level (or more) so she doesn't need to split her table in half.

This is covered in the FAQ! (Lisa, please ask again if research into the question -- in the FAQ, and in Mike Kay's book or other manuals -- does not illuminate why other solutions to your problem are better than trying to split your table in two.)

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread