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

Re: Fw: <script> tag

Subject: Re: Fw: <script> tag
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 1 Oct 2001 18:56:28 +0100
Re:  Fw: <script> tag
> I for one would not call this a bug in xalan, IMHO &gt;&lt; should be
> converted to <> for js.

No. If you put <> into a script element in an XML file then the file
will be rejected by the XML parser (as its not well formed)
so in particular the content of the element will never be passed to the
javascript engine.

It is different in HTML, HTML's script is declared to be CDATA which
means that , is not special to the SGML parser. But XML does not have
CDATA elements so in XHTML (or any other XML language, eg SVG) you have
to quote < using &lt; or CDATA.

If the XSLT system is producing non well formed XML then it is a bug
(even if you would not call it so:-)

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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.