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

RE: HTML in CDATA

Subject: RE: HTML in CDATA
From: "Williams, Brad" <Bawilliams@xxxxxxxxxxx>
Date: Tue, 12 Jun 2001 09:07:47 -0700
mixing html and xsl
Mike,

You mentioned that XSLT was not the best tool for mixing HTML and XML. What
would you recommend using when you need to display XML with images,
graphics, tables, etc... in a browser? 

Thanks,

Brad

-----Original Message-----
From: Mike Brown [mailto:mike@xxxxxxxx]
Sent: Monday, June 11, 2001 7:00 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  HTML in CDATA


Robert Dahnke wrote:
> If I have HTML in a CDATA region like here:
> 
> <article><![CDATA[Test News<br><br>Test News<br><br>Test News]]></article>

CDATA sections are just a convenience so that you don't have to escape the
markup in the source document. It doesn't make the character data mean 
anything different than 

  Test News&lt;br&gt;&lt;br&gt;Test News etc etc.

If you want to produce non-well-formed output like you describe, you need
to use disable-output-escaping="yes" when you create the text node with
value-of. Ideally you should not be trying to embed one form of SGML in
another. XSLT is not the best tool for mixing legacy HTML with XML.

   - Mike
____________________________________________________________________________
_
mike j. brown, software engineer at  |  xml/xslt: http://skew.org/xml/
webb.net in denver, colorado, USA    |  personal:
http://hyperreal.org/~mike/

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



 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.