You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/10/09 01:21:37 UTC

DO NOT REPLY [Bug 13428] New: - schema-for-schema validation fails incorrectly

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13428>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13428

schema-for-schema validation fails incorrectly

           Summary: schema-for-schema validation fails incorrectly
           Product: Xerces2-J
           Version: 2.2.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: kk@kohsuke.org


The schema at the end of this message causes the folloing error when
parsed by XMLGrammarPreparser.
-----------------------
s4s-elt-must-match: The content of 'group (local)' must match (annotation?).
  line 12 of annotationOnGroupRef.xsd
-----------------------
This error doesn't make sense to me.


-----------------------
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

     <xsd:group name="G1">
       <xsd:sequence>
         <xsd:element name="date" type="xsd:date"/>
       </xsd:sequence>
     </xsd:group>

     <xsd:element name="a">
          <xsd:complexType>
              <xsd:group ref="G1">
                  <xsd:annotation>
                    <xsd:appinfo>
                      <foo:abc xmlns:foo="bravo"/>
                    </xsd:appinfo>
                  </xsd:annotation>
              </xsd:group>
          </xsd:complexType>
     </xsd:element>
</xsd:schema>
-----------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org