You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Christian Will (JIRA)" <xe...@xml.apache.org> on 2007/06/28 01:03:26 UTC

[jira] Updated: (XERCESC-1714) xerces-c reports "Base type definition does not have any attributes" for a valid complex type restriction

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

Christian Will updated XERCESC-1714:
------------------------------------

    Summary: xerces-c reports "Base type definition does not have any attributes" for a valid complex type restriction  (was: XML4C reports "Base type definition does not have any attributes" for a valid complex type restriction.)

> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org