ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1445] Changed - XML Parser bug for commented tags
Date Mon, 23 Apr 2001 02:42:30 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1445

*** shadow/1445	Sun Apr 22 19:01:22 2001
--- shadow/1445.tmp.1279	Sun Apr 22 19:42:30 2001
***************
*** 2,9 ****
  | XML Parser bug for commented tags                                          |
  +----------------------------------------------------------------------------+
  |        Bug #: 1445                        Product: Ant                     |
! |       Status: REOPENED                    Version: 1.3                     |
! |   Resolution:                            Platform: PC                      |
  |     Severity: Normal                   OS/Version: All                     |
  |     Priority: High                      Component: Core                    |
  +----------------------------------------------------------------------------+
--- 2,9 ----
  | XML Parser bug for commented tags                                          |
  +----------------------------------------------------------------------------+
  |        Bug #: 1445                        Product: Ant                     |
! |       Status: RESOLVED                    Version: 1.3                     |
! |   Resolution: INVALID                    Platform: PC                      |
  |     Severity: Normal                   OS/Version: All                     |
  |     Priority: High                      Component: Core                    |
  +----------------------------------------------------------------------------+
***************
*** 71,74 ****
--- 71,93 ----
    <...>
      <arg value="${dash}${dash}">
  ...
+ 
+ 
+ 
+ ------- Additional Comments From conor@cortexebusiness.com.au  2001-04-22 19:42 -------
+ My point is that just about every language with block comments treats comments 
+ this way, whether it is Java, XML, C, etc. The example was to convince you that 
+ this is neither a problem particular to XML, nor to Ant's implementation of 
+ XML. You can't always comment out a block of code without checking what is in 
+ that code. The comment you have created violates the XML specification.
+ http://www.w3.org/TR/2000/REC-xml-20001006#sec-comments
+ 
+ 2.5 Comments
+ [Definition: Comments may appear anywhere in a document outside other markup; 
+ in addition, they may appear within the document type declaration at places 
+ allowed by the grammar. They are not part of the document's character data; an 
+ XML processor may, but need not, make it possible for an application to 
+ retrieve the text of comments. For compatibility, the string "--" (double-
+ hyphen) must not occur within comments.] Parameter entity references are not 
+ recognized within comments.
  

Mime
View raw message