1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* <copyright>
* </copyright>
*
* $Id: BadAttributeGroupDefinition.xsd,v 1.1 2005/06/13 14:08:22 marcelop Exp $
*/
-->
<xsd:schema
targetNamespace="http://www.example.com/Bad"
xmlns:this="http://www.example.com/Bad"
xmlns:other="http://www.example.com/Other"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.example.com/Other" schemaLocation="Other.xsd"/>
<xsd:attributeGroup/>
<xsd:attributeGroup ref="this:okayAttributeGroup"/>
<xsd:attributeGroup name="bad:name"/>
<xsd:attributeGroup name="badAttribute" use="optional"/>
<xsd:attributeGroup name="badID" id="id:id"/>
<xsd:attributeGroup name="badContent">
<xsd:xattribute/>
</xsd:attributeGroup>
<xsd:attributeGroup name="badAnnotation">
<xsd:annotation/>
<xsd:annotation/>
</xsd:attributeGroup>
<xsd:attributeGroup name="badAnnotation">
<xsd:annotation/>
<xsd:attribute name="a"/>
<xsd:annotation/>
</xsd:attributeGroup>
<xsd:attributeGroup name="badWildcardIntersection">
<xsd:attributeGroup ref="this:AG"/>
<xsd:attributeGroup ref="other:AG"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="badCircular">
<xsd:attributeGroup ref="this:badCircular"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="badAttributes">
<xsd:attribute name="a"/>
<xsd:attribute name="a"/>
<xsd:attribute name="b" type="xsd:ID"/>
<xsd:attribute name="c" type="xsd:ID"/>
<xsd:attributeGroup ref="this:badRef"/>
<xsd:attributeGroup name="badNested"/>
</xsd:attributeGroup>
<xsd:attributeGroup name="okayAttributeGroup">
</xsd:attributeGroup>
<xsd:attributeGroup name="AG">
<xsd:anyAttribute namespace="##other"/>
</xsd:attributeGroup>
</xsd:schema>
|