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

Re: not wellformed contents of xsl:template

Subject: Re: not wellformed contents of xsl:template
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 06 Aug 2001 16:02:47 -0400
xslt not well formed
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

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.