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 - Odd formatting choices in winsys2 configuration DTDs
Summary: Odd formatting choices in winsys2 configuration DTDs
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: mslama
URL:
Keywords: API
Depends on:
Blocks: 36122
  Show dependency tree
 
Reported: 2003-10-29 20:36 UTC by Jesse Glick
Modified: 2008-12-22 15:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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