Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1717

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

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Activity

          People

            amassari Alberto Massari
            nukleon Christian Will
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: