This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 18120

Summary: Several bugs in ...tax.dec.parser.ParserReader.class
Product: xml Reporter: Martin Schovanek <mschovanek>
Component: TAX/LibAssignee: issues@xml <issues>
Status: NEW ---    
Severity: blocker Keywords: API
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on: 26154    
Bug Blocks: 26478    

Description Martin Schovanek 2001-11-27 16:19:22 UTC
[jdk1.3.1, Nb Build 200111230645, Linux]

- Missing '*' in mixed content spec:
  new TreeElementDecl("product", "(#PCDATA |descript)*");
creates:
<!ELEMENT product ( #PCDATA | descript )>

- Missing inner parenhese:
  new TreeElementDecl("product", "( head, (p | list | note )*, div2* )");
creates:
<!ELEMENT div ( head,  )>

- Wrong elements order:
  new TreeElementDecl("div", "(p | list | note )*");
creates:
<!ELEMENT div ( list | note | p )*>

- Element name with entity reference throws:
  InvalidArgumentException: Cannot start with "%" character.
  Use an ASCII letter to be sure. Violating argument:
  "Name of Element Declaration"
e.g.:
  new TreeElementDecl("%name.para;", "%content.para;");
Comment 1 _ lkramolis 2002-01-10 13:58:30 UTC
This is wrong TAX[dtd] API - should be redesigned.
Comment 2 _ pkuzel 2002-06-03 12:27:24 UTC
Let these are considered while planning next release.
Comment 3 Marek Grummich 2002-07-19 16:16:39 UTC
Target milestone was changed from not determined to TBD
Comment 4 _ pkuzel 2002-08-13 18:15:44 UTC
It is subtask of issue 26478.