File: BadAttributeGroupDefinition.xsd

package info (click to toggle)
eclipse-xsd 2.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 10,592 kB
  • sloc: java: 61,426; xml: 1,818; makefile: 5
file content (60 lines) | stat: -rw-r--r-- 1,783 bytes parent folder | download | duplicates (9)
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 */
-->
<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>