Commit | Line | Data |
---|---|---|
970ed795 EL |
1 | /******************************************************************************* |
2 | * Copyright Ericsson Telecom AB | |
3 | * | |
4 | * XSD to TTCN-3 Translator | |
5 | * | |
6 | * All rights reserved. This program and the accompanying materials | |
7 | * are made available under the terms of the Eclipse Public License v1.0 | |
8 | * which accompanies this distribution, and is available at | |
9 | * http://www.eclipse.org/legal/epl-v10.html | |
10 | *******************************************************************************/ | |
11 | // | |
12 | // File: www_w3_org_XML_1998_namespace_PIDF_e.ttcn | |
13 | // Description: | |
14 | // References: | |
15 | // Rev: | |
16 | // Prodnr: | |
17 | // Updated: | |
18 | // Contact: http://ttcn.ericsson.se | |
19 | // | |
20 | //////////////////////////////////////////////////////////////////////////////// | |
21 | // | |
22 | // Generated from file(s): | |
23 | // | |
24 | // - xml_PIDF.xsd | |
25 | // /* xml version = "1.0" */ | |
26 | // /* targetnamespace = "http://www.w3.org/XML/1998/namespace" */ | |
27 | // | |
28 | //////////////////////////////////////////////////////////////////////////////// | |
29 | ||
30 | ||
31 | module www_w3_org_XML_1998_namespace_PIDF_e { | |
32 | ||
33 | ||
34 | import from XSD all; | |
35 | ||
36 | ||
37 | /* See http://www.w3.org/XML/1998/namespace.html and | |
38 | http://www.w3.org/TR/REC-xml for information about this namespace. | |
39 | ||
40 | This schema document describes the XML namespace, in a form | |
41 | suitable for import by other schema documents. | |
42 | ||
43 | Note that local names in this namespace are intended to be defined | |
44 | only by the World Wide Web Consortium or its subgroups. The | |
45 | following names are currently defined in this namespace and should | |
46 | not be used with conflicting semantics by any Working Group, | |
47 | specification, or document instance: | |
48 | ||
49 | base (as an attribute name): denotes an attribute whose value | |
50 | provides a URI to be used as the base for interpreting any | |
51 | relative URIs in the scope of the element on which it | |
52 | appears; its value is inherited. This name is reserved | |
53 | by virtue of its definition in the XML Base specification. | |
54 | ||
55 | lang (as an attribute name): denotes an attribute whose value | |
56 | is a language code for the natural language of the content of | |
57 | any element; its value is inherited. This name is reserved | |
58 | by virtue of its definition in the XML specification. | |
59 | ||
60 | space (as an attribute name): denotes an attribute whose | |
61 | value is a keyword indicating what whitespace processing | |
62 | discipline is intended for the content of the element; its | |
63 | value is inherited. This name is reserved by virtue of its | |
64 | definition in the XML specification. | |
65 | ||
66 | Father (in any context at all): denotes Jon Bosak, the chair of | |
67 | the original XML Working Group. This name is reserved by | |
68 | the following decision of the W3C XML Plenary and | |
69 | XML Coordination groups: | |
70 | ||
71 | In appreciation for his vision, leadership and dedication | |
72 | the W3C XML Plenary on this 10th day of February, 2000 | |
73 | reserves for Jon Bosak in perpetuity the XML name | |
74 | xml:Father */ | |
75 | ||
76 | ||
77 | /* This schema defines attributes and an attribute group | |
78 | suitable for use by | |
79 | schemas wishing to allow xml:base, xml:lang or xml:space attributes | |
80 | on elements they define. | |
81 | ||
82 | To enable this, such a schema must import this schema | |
83 | for the XML namespace, e.g. as follows: */ | |
84 | /* < */ | |
85 | /* schema . . .> | |
86 | . . . */ | |
87 | /* < */ | |
88 | /* import namespace="http://www.w3.org/XML/1998/namespace" | |
89 | schemaLocation="http://www.w3.org/2001/03/xml.xsd"/> | |
90 | ||
91 | Subsequently, qualified reference to any of the attributes | |
92 | or the group defined below will have the desired effect, e.g. */ | |
93 | /* < */ | |
94 | /* type . . .> | |
95 | . . . */ | |
96 | /* < */ | |
97 | /* attributeGroup ref="xml:specialAttrs"/> | |
98 | ||
99 | will define a type which will schema-validate an instance | |
100 | element with any of those attributes */ | |
101 | ||
102 | ||
103 | /* In keeping with the XML Schema WG's standard versioning | |
104 | policy, this schema document will persist at | |
105 | http://www.w3.org/2001/03/xml.xsd. | |
106 | At the date of issue it can also be found at | |
107 | http://www.w3.org/2001/xml.xsd. | |
108 | The schema document at that URI may however change in the future, | |
109 | in order to remain compatible with the latest version of XML Schema | |
110 | itself. In other words, if the XML Schema namespace changes, the version | |
111 | of this document at | |
112 | http://www.w3.org/2001/xml.xsd will change | |
113 | accordingly; the version at | |
114 | http://www.w3.org/2001/03/xml.xsd will not change. */ | |
115 | ||
116 | ||
117 | /* In due course, we should install the relevant ISO 2- and 3-letter | |
118 | codes as the enumerated possible values . . . */ | |
119 | type XSD.Language Lang | |
120 | with { | |
3f84031e | 121 | variant "name as uncapitalized"; |
122 | variant "attribute"; | |
970ed795 EL |
123 | }; |
124 | ||
125 | ||
126 | type enumerated Space | |
127 | { | |
128 | default_, | |
129 | preserve | |
130 | } | |
131 | with { | |
3f84031e | 132 | variant "text 'default_' as 'default'"; |
133 | variant "name as uncapitalized"; | |
134 | variant "defaultForEmpty as 'preserve'"; | |
135 | variant "attribute"; | |
970ed795 EL |
136 | }; |
137 | ||
138 | ||
139 | /* See http://www.w3.org/TR/xmlbase/ for | |
140 | information about this attribute. */ | |
141 | type XSD.AnyURI Base | |
142 | with { | |
3f84031e | 143 | variant "name as uncapitalized"; |
144 | variant "attribute"; | |
970ed795 EL |
145 | }; |
146 | ||
147 | ||
148 | type XSD.ID Id | |
149 | with { | |
3f84031e | 150 | variant "name as uncapitalized"; |
151 | variant "attribute"; | |
970ed795 EL |
152 | }; |
153 | ||
154 | ||
155 | } | |
156 | with { | |
3f84031e | 157 | encode "XML"; |
158 | variant "namespace as 'http://www.w3.org/XML/1998/namespace'"; | |
159 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
970ed795 | 160 | } |