After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 136209 - Infinite expansion of some DTDs when generating RELAX NG schema
Infinite expansion of some DTDs when generating RELAX NG schema
Status: RESOLVED FIXED
Product: conglomerate
Classification: Other
Component: Code
CVS
Other All
: Normal normal
: ---
Assigned To: conglomerate list
conglomerate list
Depends on:
Blocks:
 
 
Reported: 2004-03-04 20:10 UTC by David Malcolm
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test OPML DTD (2.71 KB, text/x-dtd)
2004-03-04 20:11 UTC, David Malcolm
Details

Description David Malcolm 2004-03-04 20:10:02 UTC
Sometimes the DTD->RELAX NG importer messes up and tries to fully expand a
recursive content model - infinitely.

I'm attaching a test case
Comment 1 David Malcolm 2004-03-04 20:11:07 UTC
Created attachment 25172 [details]
Test OPML DTD
Comment 2 David Malcolm 2004-03-04 20:13:53 UTC
(i) It miscalculates the number of refs to <outline> as 1; I believe
it should be 2.  
(ii) But we also should special-case and check that a content model
isn't "directly recursive" before expanding it inline.
Comment 3 David Malcolm 2004-03-04 20:45:02 UTC
I've fixed (i) in CVS, and I believe there are no situations in which
(ii) can be a problem (there will always be cross-references in this
case, leading to the (i) code to be used)

So marking this as FIXED