Bug 5635 - DeclHandler.elementDecl passes wrong content model for superfluous ?, + or *
Summary: DeclHandler.elementDecl passes wrong content model for superfluous ?, + or *
Status: NEW
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: SAX (show other bugs)
Version: 1.4.4
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-31 03:25 UTC by Sander Bos
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sander Bos 2001-12-31 03:25:04 UTC
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.