[ 
https://issues.apache.org/jira/browse/XERCESC-1714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Will resolved XERCESC-1714.
-------------------------------------

    Resolution: Fixed

fixed with Revision 558769

> xerces-c reports "Base type definition does not have any attributes" for a 
> valid complex type restriction
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESC-1714
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1714
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>    Affects Versions: 2.7.0
>            Reporter: Christian Will
>
> Hi there,
> xerces-c reports "Base type definition does not have any attributes" for a 
> valid complex type restriction.
> This bug appears only if we have a element recursion and the attributes are 
> explicitly defined in the restricted type definition.
> sample schema:
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> elementFormDefault="qualified">
> <xs:complexType name="A">
> <xs:sequence>
> <xs:element name="elem" type="B" minOccurs="0"/>
> </xs:sequence>
> <xs:attribute name="foo"/>
> </xs:complexType>
> <xs:complexType name="B">
> <xs:sequence>
> <xs:element name="elem" type="C" minOccurs="0"/>
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="C">
> <xs:complexContent>
> <xs:restriction base="D">
> <xs:attribute name="foo"/>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="D">
> <xs:complexContent>
> <xs:restriction base="A">
> <xs:attribute name="foo"/>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> Cheers,
> Christian Will

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to