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

Re: <!-- -- -->


Re:  <!-- -- -->
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 08 October 2002 05:28, Joe Forrest wrote:
> Is "--" allowed in the content of comment in a XML by
> any means and call it legal XML?.

Maybe try replacing one or both of the dashes with its equivilant character 
reference: "&#45;".  I haven't tried this, and chances are it won't work 
because I don't believe XML processors are supposed to process entities in 
comments.  It's worth a try, though, because the grammar definitely will not 
allow it in any way.  <![CDATA[]]> is useless, again because it should not be 
processed inside of a command, and because I don't believe many or any HTML 
browsers support it.  Someone please correct me if I'm wrong.

Another option would be to simply remove the <!-- --> around your script.  
You're using XHTML, and any modern browser that can read XHTML won't have a 
problem without the comment.  If you want to support older browsers, then 
XHTML might pose other problems, such as with empty elements that are closed 
with "/>".  Not to mention that older browsers won't support the Javascript 
anyway.

Good luck!

- -- 
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9otQXhDAgUT1yirARAlqbAJ9AIQ5TkwkU3XKcs473Nud6HQBIRwCfdXeQ
3h2cRb2P7b1uxW7qcVcRfXo=
=Uk/9
-----END PGP SIGNATURE-----


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.