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 36918

Summary: Odd formatting choices in winsys2 configuration DTDs
Product: platform Reporter: Jesse Glick <jglick>
Component: Window SystemAssignee: mslama <mslama>
Status: CLOSED FIXED    
Severity: blocker CC: pzavadsky
Priority: P4 Keywords: API
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 36122    

Description Jesse Glick 2003-10-29 20:36:15 UTC
<other permanent="true|false"/> in <mode> is
strange. Why "other"? Consider e.g.

<permanent>true</>

or

<empty-behavior permanent="true"/>

etc.

<properties> (in <group>, <tc-group>, <tc-ref>) is
also odd; seems to collect several unrelated
attributes together. Consider e.g.

<group version="2.0">
    <name>foo</>
    <state opened="true"/>
</>

or otherwise breaking things up into conceptual
pieces.

<active-tc id=""/> in <mode> is a strange way of
marking the absence of an active TC. Prefer no
element at all, or an explicit <no-active-tc/>.
Comment 1 mslama 2003-10-31 08:22:44 UTC
Please what is format <permanent>true</>? I did not see such element
format so far.
Comment 2 mslama 2003-10-31 08:32:42 UTC
I checked and found it is possible with declaration
<!ELEMENT permanent (#PCDATA)> such element can contain only text like
<permanent>true</permanent> but I think second variant with attribute
is better because it is possible to specify valid values in DTD (true
| false).
Comment 3 Jesse Glick 2003-10-31 16:13:23 UTC
When I write </> I just mean an abbreviation for </permanent> (did not
want to bother writing out the full element name again), sorry for any
confusion.
Comment 4 Jesse Glick 2003-10-31 16:15:26 UTC
FYI - yes, DTDs cannot express that <permanent>maybe</permanent> is
syntactically illegal. XML Schema can. We should IMHO be moving all
formats to XML Schema since it is much more powerful, but that is
another matter, don't worry about it now. (When embedding winsys data
in Registry you could make such a switch.)
Comment 5 mslama 2003-11-07 13:08:46 UTC
Fixed in winsys branch.
Comment 6 Marian Mirilovic 2004-07-28 07:42:35 UTC
closed