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

Re: Re: Un-cdata-section-elements

Subject: Re: Re: Un-cdata-section-elements
From: "Alexander Johannesen" <alexander.johannesen@xxxxxxxxx>
Date: Wed, 22 Mar 2006 10:36:54 +1100
alexander mazza
On 3/22/06, Nathan Young -X (natyoung - Artizen at Cisco)
<natyoung@xxxxxxxxx> wrote:
> It looks like you could in fact omit the cdata tags.  As I understand,
> cdata tags are syntactic sugar that get you around having to escape all
> less than and greater than signs to entities, but from a validation
> perspective (or document tree model perspective) are transparent.

Again, the problem isn't the validity of the markup, but the
JavaScript as interpreted by various browsers; some processors
(possibly all?) will throw a CDATA around anything in the <script>
element by default, mostly because the chance of bumping into
non-valid stuff is high. (I assume some processors might do a
mini-validation on what's inside the script and only if it fails put
it in a CDATA section) I wanted to know if this was controllable
through XSLT 1.0 (because I know my little JavaScript stuff ain't got
no validation problems in them), but doesn't seem to be, which means
that *this* behaviour is guided by the processors.

Don't worry, though, I'm changing my tactic, I think. :)


Alex
--
"Ultimately, all things are known because you want to believe you know."
                                                         - Frank Herbert
__ http://shelter.nu/ __________________________________________________

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.