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

Re: <!-- -- -->

joe forrest
Hash: SHA1

On Tuesday 08 October 2002 02:32, Joe Forrest wrote:
> What then on the earth is the meaning of:
> "For compatibility, the string "--" (double-hyphen)
> must not occur within comments"

- From XML 1.0 [1]:

    "for compatibility":
    [Definition: Marks a sentence describing a feature of XML included
    solely to ensure that XML remains compatible with SGML.]

There is no technical reason why "--" is not allowed.  Because SGML does not 
allow (or at least does not like) the "--" construct, it has been forbidden 
by the XML grammar.

Did you read this in the XML 1.0 Recommendation [1]?  If so, just click the 
link surrounding "For compatibility" in the very text you have quoted: you 
will arrive at the definition of that term.

An older thread [2] asked this same question.

[1] http://www.w3.org/TR/REC-xml
[2] http://lists.w3.org/Archives/Public/www-html/2002Apr/0049.html

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


  • References:


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.
First Name
Last Name
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.