xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18729] New: - Colon in attributes of type ID, IDREF(S), ENTITY(IES), or NOTATION
Date Fri, 04 Apr 2003 23:11:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18729>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18729

Colon in attributes of type ID, IDREF(S), ENTITY(IES), or NOTATION

           Summary: Colon in attributes of type ID, IDREF(S), ENTITY(IES),
                    or NOTATION
           Product: Xerces2-J
           Version: 2.3.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: nmehrega@ca.ibm.com
                CC: nddelima@ca.ibm.com


According to section 7 of Namespaces in XML 1.1, "Conformance of Documents":

"No attributes with a declared type of ID, IDREF(S), ENTITY(IES), or NOTATION
(can) contain any colons."

Xerces-J doesn't seem to do a check for this.  The following XML documents go
undetected:

======================= Example 1 =======================

<?xml version='1.1'?>
<!DOCTYPE root [
  <!ELEMENT root EMPTY>
  <!ATTLIST root att1 ID #REQUIRED>
  ]>

<root att1="cd:aa"/>

<!-- Attribute is of type 'ID' and it contains a colon. -->

======================= Example 2 =======================

<?xml version='1.1'?>
<!DOCTYPE root [
  <!ELEMENT root EMPTY>
  <!ATTLIST root att1 IDREF #REQUIRED>
  ]>


<root att1="cd:aa"/>

<!-- Attribute is of type 'IDREF' and it contains a colon. -->

======================= Example 3 =======================

<?xml version='1.1'?>
<!DOCTYPE root [
  <!ELEMENT root EMPTY>
  <!ATTLIST root att1 ENTITY #REQUIRED>
  ]>


<root att1="cd:aa"/>

<!-- Attribute is of type 'ENTITY' and it contains a colon. -->

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


Mime
View raw message