You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/12/31 12:25:04 UTC

DO NOT REPLY [Bug 5635] New: - DeclHandler.elementDecl passes wrong content model for superfluous ?, + or *

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=5635>.
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=5635

DeclHandler.elementDecl passes wrong content model for superfluous ?, + or *

           Summary: DeclHandler.elementDecl passes wrong content model for
                    superfluous ?, + or *
           Product: Xerces-J
           Version: 1.4.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: SAX
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: sander@x-hive.com


When parsing a file through SAX with a declaration like:
  <!ELEMENT test ((test1)?, (test2?)?)>

elementDecl in DeclHandler actually passes the content model as the string
  (test1?,(test2)??)
which is not legal XML.

It only happens for ?, + and *'s which are unnecessary, so there is always a 
workaround, but this means DTDs have to be changed.

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