File: BadAttributeDeclaration.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 (86 lines) | stat: -rw-r--r-- 3,050 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 */
-->
<xsd:schema
  targetNamespace="http://www.example.com/Bad"
  xmlns:this="http://www.example.com/Bad" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <xsd:attribute/>
    <xsd:attribute name="bad:name"/>
    <xsd:attribute name="badAttribute" use="optional"/>
    <xsd:attribute name="badFixedAndDefault" type="xsd:string" fixed="x" default="y"/>
    <xsd:attribute name="badType" type="xsd:badType"/>
    <xsd:attribute name="badID" id="id:id" type="xsd:string"/>
    <xsd:attribute name="badAnonymousType" type="xsd:string">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string">
                <xsd:pattern value=".*"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:attribute>

    <xsd:attribute name="badContent">
        <xsd:xsimpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:xsimpleType>
    </xsd:attribute>

    <xsd:attribute name="badAnnotation">
        <xsd:annotation/>
        <xsd:annotation/>
    </xsd:attribute>

    <xsd:attribute name="badAnnotation">
        <xsd:annotation/>
        <xsd:simpleType>
            <xsd:restriction base="xsd:string">
                <xsd:pattern value=".*"/>
            </xsd:restriction>
        </xsd:simpleType>
        <xsd:annotation/>
    </xsd:attribute>

    <xsd:attributeGroup name="myAttributeGroup">
        <xsd:attribute name="badConstraintForID" type="xsd:ID" default="x"/>
        <xsd:attribute name="badConstraintForDefault" type="xsd:string" default="x" use="required"/>
        <xsd:attribute name="badConstraintForType" type="xsd:int" default="x"/>
        <xsd:attribute name="badAttribute" xuse="optional"/>
        <xsd:attribute name="badUse" use="xoptional"/>
        <xsd:attribute name="badForm" form="xqualified"/>
        <xsd:attribute ref="this:badAttributeReference"/>
        <xsd:attribute ref="this:okayFixedAttribute" name="badNameForReference"/>
        <xsd:attribute ref="this:okayFixedAttribute" fixed="2"/>
        <xsd:attribute ref="this:okayFixedAttribute" form="qualified"/>
        <xsd:attribute ref="this:okayFixedAttribute" type="xsd:String"/>
        <xsd:attribute ref="this:okayFixedAttribute">
            <xsd:simpleType>
                <xsd:restriction base="xsd:string">
                    <xsd:pattern value=".*"/>
                </xsd:restriction>
            </xsd:simpleType>
        </xsd:attribute>
    </xsd:attributeGroup>

    <xsd:attribute name="okayFixedAttribute" type="xsd:int" fixed="1"/>

    <xsd:attribute name="okay">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string">
                <xsd:pattern value=".*"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:attribute>

    <xsd:attribute name="okayAnnotation">
        <xsd:annotation/>
        <xsd:simpleType>
            <xsd:restriction base="xsd:string">
                <xsd:pattern value=".*"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:attribute>

</xsd:schema>