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

Re: Preventing CDATA output in XHTML

Subject: Re: Preventing CDATA output in XHTML
From: "Alexander Johannesen" <alexander.johannesen@xxxxxxxxx>
Date: Tue, 3 Jul 2007 15:49:45 +1000
Re:  Preventing CDATA output in XHTML
On 7/3/07, Dale Tan <wtdtan@xxxxxxxxx> wrote:
so there is no native "xhtml".

Actually, this is a peculiar one that's libxslt specific as far as my investigation go. I struggled with this very problem a few weeks back, aiming for that picture perfect valid xhtml. All was going well until I hit <script>.

1. libxslt *will* treat method='xhtml' differently from both 'xml' and
'html'. This is not standard, but it certainly is there.

2. I haven't chased what the specifics are, but as to this
conversation, making <script> an enforced CDATA section is the big
one.

3. The enforcing CDATA is fine when you can't trust mere mortals to
escape it themselves, nor does it cater to exceptions, which indeed
putting // inside the element before the CDATA escaping is.

After much fiddling I revert to a dirty option ; I skipped the whole
thing, processed as XML and used my programming language to insert //
between <script> and CDATA. Dity, not what I'd prefer, but I do
understand that these are exceptions.


Alex -- --------------------------------------------------------------------------- Project Wrangler, SOA, Information Alchemist, UX, RESTafarian, Topic Maps ------------------------------------------ http://shelter.nu/blog/ --------

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-2007 All Rights Reserved.