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 565548 - schema parsing should fail when the content model is non-deterministic
schema parsing should fail when the content model is non-deterministic
Status: RESOLVED DUPLICATE of bug 565547
Product: libxml2
Classification: Platform
Component: general
2.6.28
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-24 08:51 UTC by nagesh
Modified: 2008-12-30 21:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description nagesh 2008-12-24 08:51:59 UTC
Please describe the problem:
In the schema which is as follows, 2 particles with idendical element declarations (same type), one under
'choice', one is from sequence, model is non-deterministic.
So the schema parsing should give an error.

Steps to reproduce:
1. Please parse the schema file given below.


Actual results:
libxml2 parses the schema file without giving any error.

Expected results:
It should give an error saying that "element e1 makes the content model non-deterministic agaist element e1"

Does this happen every time?
yes


Other information:
Schema script:

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <xsd:element name="doc" type="foo"/>
        <xsd:complexType name="foo">
                <xsd:choice>
                        <xsd:element name="e1" type="xsd:string"/>
                        <xsd:group ref="group"/>
                </xsd:choice>
        </xsd:complexType>
        <xsd:group name="group">
                <xsd:sequence>
                        <xsd:element name="e1" type="xsd:string"/>
                </xsd:sequence>
        </xsd:group>
</xsd:schema>
Comment 1 André Klapper 2008-12-30 21:57:49 UTC

*** This bug has been marked as a duplicate of 565547 ***