Yes I agree with you, but my schema,  when used only like this ( not
imported by an other schema), is not valid???

Regards,
Adnane.
----- Original Message ----- 
From: "George Cristian Bina (JIRA)" <[email protected]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 27, 2005 10:39 AM
Subject: [jira] Commented: (XERCESJ-1087) abstract element validation


>     [
http://issues.apache.org/jira/browse/XERCESJ-1087?page=comments#action_12314524 
]
>
> George Cristian Bina commented on XERCESJ-1087:
> -----------------------------------------------
>
> It looks valid to me too. Imagine you import this schema from another
schema and define there an element that can substitute parent, something
like:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:i="integ0">
>     <xs:import namespace="integ0" schemaLocation="helper.xsd"/>
>     <xs:element name="test" substitutionGroup="i:parent"/>
>     <!-- ... -->
> </xs:schema>
>
> Regards,
> George
>
> > abstract element validation
> > ---------------------------
> >
> >          Key: XERCESJ-1087
> >          URL: http://issues.apache.org/jira/browse/XERCESJ-1087
> >      Project: Xerces2-J
> >         Type: Bug
> >   Components: XML Schema Structures
> >     Versions: 2.6.2
> >  Environment: Linux redhat 7.1
> >     Reporter: Adnane BERRADA
>
> >
> > the following schema seems valid for xerces even if the parent element
is abstract and does not belong to any substitution group.
> > <?xml version="1.0" encoding="UTF-8"?>
> > <xs:schema targetNamespace="integ0" xmlns="integ0"
xmlns:xs="http://www.w3.org/2001/XMLSchema";  elementFormDefault="qualified"
attributeFormDefault="unqualified" >
> >   <xs:element name="parent" type="xs:string" abstract="true"/>
> >   <xs:element name="fooTest">
> >     <xs:complexType>
> >       <xs:all>
> >         <xs:element ref="parent"/>
> >       </xs:all>
> >     </xs:complexType>
> >   </xs:element>
> > </xs:schema>
>
> -- 
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to