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 19:39:44 UTC

[jira] Issue Created: (XERCESC-1717) Xerces-C allows more then one 'anyAttribute' definition in a single type definition.

Xerces-C allows more then one 'anyAttribute'  definition in a single type definition.
-------------------------------------------------------------------------------------

 common.concepts.key: XERCESC-1717
 common.concepts.url: https://issues.apache.org/jira/browse/XERCESC-1717
common.concepts.project: Xerces-C++
common.concepts.issuetype: Bug
common.concepts.components: Validating Parser (Schema) (Xerces 1.5 or up only)
    Affects Versions: 2.7.0
issue.field.reporter: Christian Will


Xerces-C should raise an error if more then one 'anyAttribute'  definition appears in a single type definition.

sample:

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <xsd:attributeGroup name="attrGroup1">
                <xsd:attribute name="myAttr1"/>
                <xsd:attribute name="myAttr2"/>
        </xsd:attributeGroup>
        <xsd:complexType name="myType">
                <xsd:sequence>
                        <xsd:element name="myElement1" type="xsd:string" minOccurs="0"/>
                        <xsd:element name="myElement2" type="xsd:string" minOccurs="0"/>
                        <xsd:element name="myElement3" type="xsd:string" minOccurs="0"/>
                </xsd:sequence>
                <xsd:anyAttribute namespace="##local"/>
        </xsd:complexType>
        <xsd:complexType name="fooType">
                <xsd:complexContent>
                        <xsd:extension base="myType">
                                <xsd:attributeGroup ref="attrGroup1"/>
                                <xsd:anyAttribute namespace="##any"/>
                                <xsd:anyAttribute namespace="##other"/>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
</xsd:schema>

Regards,
Christian Will
christian.will@gmail.com

-- 
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


[jira] Resolved: (XERCESC-1717) Xerces-C allows more then one 'anyAttribute' definition in a single type definition.

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alberto Massari resolved XERCESC-1717.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0
         Assignee: Alberto Massari

A fix is in SVN.

> Xerces-C allows more then one 'anyAttribute'  definition in a single type definition.
> -------------------------------------------------------------------------------------
>
>                 Key: XERCESC-1717
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1717
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.7.0
>            Reporter: Christian Will
>            Assignee: Alberto Massari
>             Fix For: 3.1.0
>
>
> Xerces-C should raise an error if more then one 'anyAttribute'  definition appears in a single type definition.
> sample:
> <?xml version="1.0"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>         <xsd:attributeGroup name="attrGroup1">
>                 <xsd:attribute name="myAttr1"/>
>                 <xsd:attribute name="myAttr2"/>
>         </xsd:attributeGroup>
>         <xsd:complexType name="myType">
>                 <xsd:sequence>
>                         <xsd:element name="myElement1" type="xsd:string" minOccurs="0"/>
>                         <xsd:element name="myElement2" type="xsd:string" minOccurs="0"/>
>                         <xsd:element name="myElement3" type="xsd:string" minOccurs="0"/>
>                 </xsd:sequence>
>                 <xsd:anyAttribute namespace="##local"/>
>         </xsd:complexType>
>         <xsd:complexType name="fooType">
>                 <xsd:complexContent>
>                         <xsd:extension base="myType">
>                                 <xsd:attributeGroup ref="attrGroup1"/>
>                                 <xsd:anyAttribute namespace="##any"/>
>                                 <xsd:anyAttribute namespace="##other"/>
>                         </xsd:extension>
>                 </xsd:complexContent>
>         </xsd:complexType>
> </xsd:schema>
> Regards,
> Christian Will
> christian.will@gmail.com

-- 
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