On Mon, Aug 20, 2007 at 02:07:17PM +0530, Nagesh S wrote: > > Hi Daniel, > > Can you please clarify the following doubt of mine. In the > input schema file, is it valid for the presence of any element having > the attribute other than "id" as the child of group element.
Honnestly I don't know XSD-1.0 enough to really answer this question. And unfortunately the specification is too obtuse for me to try to find the answer in the spec either :-\ > For ex: > > <?xml version="1.0"?> > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> > > <xs:group name="custGroup"> > > <xs:choice maxOccurs="unbounded"> > > <xs:element name="employee"/> > > <xs:element name="member"/> > > </xs:choice> > > </xs:group> > > <xs:element name="order" type="ordertype"/> > > <xs:complexType name="ordertype"> > > <xs:group ref="custGroup"/> > > <xs:attribute name="status" type="xs:string"/> > > </xs:complexType> > > </xs:schema> > > > Because In the libxml code, in the function > xmlSchemaParseModelGroup( ), if with "withParticle" is set, then check > is done for the attributes, "id", "maxOccurs" and "minOccurs", but > whereas when "withParticle" is not set, then the check is present only > for the attribute "id". Is it the expected behaviour? I don't know, could be an error ... or not. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
