[ http://issues.apache.org/jira/browse/XERCESJ-1087?page=all ]
Michael Glavassevich resolved XERCESJ-1087:
-------------------------------------------
Resolution: Invalid
See section 3.3.1 [1] of Part 1: Structures which says "Element declarations
for which {abstract} is true can appear in content models only when
substitution is allowed; such declarations may not themselves ever be used to
·validate· element content". It may be true that you cannot construct a valid
instance document for this schema, but the schema itself is valid.
[1] http://www.w3.org/TR/xmlschema-1/#Element_Declaration_details
> 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]