Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_protocolXSDs / SIP / SIP.xsd
CommitLineData
970ed795
EL
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3abe9331 3 Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
4
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
9 -->
10<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
11 xmlns:sci="http://uri.etsi.org/ngn/params/xml/simservs/sci"
12 targetNamespace="http://uri.etsi.org/ngn/params/xml/simservs/sci" elementFormDefault="qualified" version="1.0">
13 <xs:annotation>
14 <xs:documentation>XML Schema Definition for the AOC information</xs:documentation>
15 </xs:annotation>
16 <!--Definition of simple types-->
17 <xs:simpleType name="bitType">
18 <xs:restriction base="xs:boolean" >
19 <!-- The boolean datatype value "true" maps to bit value "1" and the value "false" to bit value "0" -->
20 </xs:restriction>
21 </xs:simpleType>
22 <xs:simpleType name="EightBitType">
23 <xs:restriction base="xs:hexBinary">
24 <xs:length value="1"/>
25 </xs:restriction>
26 </xs:simpleType>
27 <xs:simpleType name="SixteenBitType">
28 <xs:restriction base="xs:hexBinary">
29 <xs:length value="2"/>
30 </xs:restriction>
31 </xs:simpleType>
32<!-- Following structure of the networkIdentification value may be used: -->
33<!-- {itu-t (0) administration (2) <national regulation authority> (x) network (y) node identification (z)} -->
34<!-- The value for x is the value of the national regulation authority, the value for y is under the control-->
35<!-- of the national regulation authority concerned, the value for z is under the control of the network concerned. -->
36 <xs:simpleType name="NetworkIdentificationType">
37 <xs:restriction base="xs:string">
38 <xs:pattern value="02[0-9A-F]+"/>
39 </xs:restriction>
40 </xs:simpleType>
41 <xs:simpleType name="CurrencyType">
42 <xs:restriction base="xs:string">
43 <xs:length value="3" fixed="true" />
44 <!--The currency shall be coded according to ISO 4217-->
45 </xs:restriction>
46 </xs:simpleType>
47 <xs:simpleType name="CurrencyFactorType">
48 <xs:restriction base="xs:integer">
49 <xs:minInclusive value="0"/>
50 <xs:maxInclusive value="999999"/>
51 </xs:restriction>
52 </xs:simpleType>
53 <xs:simpleType name="CurrencyScaleType">
54 <xs:restriction base="xs:integer">
55 <xs:minInclusive value="-7"/>
56 <xs:maxInclusive value="3"/>
57 </xs:restriction>
58 </xs:simpleType>
59 <xs:simpleType name="TariffDurationType">
60 <xs:restriction base="xs:integer">
61 <xs:minInclusive value="0"/>
62 <xs:maxInclusive value="36000"/>
63 </xs:restriction>
64 </xs:simpleType>
65 <!--Definition of complex types-->
66 <xs:complexType name="TariffSwitchPulseType">
67 <xs:sequence>
68 <xs:element name="nextTariffPulse" type="sci:TariffPulseFormatType"/>
69 <xs:element name="tariffSwitchOverTime" type="sci:EightBitType"/>
70 </xs:sequence>
71 </xs:complexType>
72 <xs:complexType name="CommunicationChargePulseType">
73 <!-- the choice type shall be replaced with sequence according to ASN.1 in ES 201 296 V1.3.1 -->
74 <xs:sequence>
75 <xs:element name="pulseUnits" type="sci:EightBitType"/>
76 <xs:element name="chargeUnitTimeInterval" type="sci:SixteenBitType"/>
77 <xs:element name="tariffDuration" type="sci:TariffDurationType"/>
78 </xs:sequence>
79 </xs:complexType>
80 <xs:complexType name="TariffPulseFormatType">
81 <xs:sequence>
82 <xs:element name="communicationChargeSequencePulse" type="sci:CommunicationChargePulseType" minOccurs="1" maxOccurs="4"/>
83 <xs:element name="tariffControlIndicators" type="sci:bitType"/>
84 <xs:element name="callAttemptChargePulse" type="sci:EightBitType"/>
85 <xs:element name="callSetupChargePulse" type="sci:EightBitType"/>
86 </xs:sequence>
87 </xs:complexType>
88 <xs:complexType name="CommunicationChargeCurrencyType">
89 <xs:sequence>
90 <xs:element name="currencyFactorScale" type="sci:CurrencyFactorScaleType"/>
91 <xs:element name="tariffDuration" type="sci:TariffDurationType"/>
92 <xs:element name="subTariffControl" type="sci:bitType"/>
93 </xs:sequence>
94 </xs:complexType>
95 <xs:complexType name="TariffSwitchCurrencyType">
96 <xs:sequence>
97 <xs:element name="nextTariffCurrency" type="sci:TariffCurrencyFormatType"/>
98 <xs:element name="tariffSwitchOverTime" type="sci:EightBitType"/>
99 </xs:sequence>
100 </xs:complexType>
101 <xs:complexType name="TariffCurrencyFormatType">
102 <xs:sequence>
103 <xs:element name="communicationChargeSequenceCurrency" type="sci:CommunicationChargeCurrencyType" minOccurs="1" maxOccurs="4"/>
104 <xs:element name="tariffControlIndicators" type="sci:bitType"/>
105 <xs:element name="callAttemptChargeCurrency" type="sci:CurrencyFactorScaleType"/>
106 <xs:element name="callSetupChargeCurrency" type="sci:CurrencyFactorScaleType"/>
107 </xs:sequence>
108 </xs:complexType>
109 <xs:complexType name="CurrencyFactorScaleType">
110 <xs:sequence>
111 <xs:element name="currencyFactor" type="sci:CurrencyFactorType"/>
112 <xs:element name="currencyScale" type="sci:CurrencyScaleType"/>
113 </xs:sequence>
114 </xs:complexType>
115 <xs:complexType name="TariffPulseType">
116 <xs:sequence>
117 <xs:element name="currentTariffPulse" type="sci:TariffPulseFormatType"/>
118 <xs:element name="tariffSwitchPulse" type="sci:TariffSwitchPulseType"/>
119 </xs:sequence>
120 </xs:complexType>
121 <xs:complexType name="TariffCurrencyType">
122 <xs:sequence>
123 <xs:element name="currentTariffCurrency" type="sci:TariffCurrencyFormatType"/>
124 <xs:element name="tariffSwitchCurrency" type="sci:TariffSwitchCurrencyType"/>
125 </xs:sequence>
126 </xs:complexType>
127 <xs:complexType name="ChargingControlIndicatorsType">
128 <!-- the choice type shall be replaced with sequence according to ASN.1 in ES 201 296 V1.3.1 -->
129 <xs:sequence>
130 <xs:element name="immediateChangeOfActuallyAppliedTariff" type="sci:bitType"/>
131 <xs:element name="delayUntilStart" type="sci:bitType"/>
132 </xs:sequence>
133 </xs:complexType>
134 <xs:complexType name="ChargingReferenceIdentificationType">
135 <xs:sequence>
136 <xs:element name="networkIdentification" type="sci:NetworkIdentificationType"/>
137 <xs:element name="referenceID" type="xs:nonNegativeInteger"/>
138 </xs:sequence>
139 </xs:complexType>
140 <xs:complexType name="ChargingTariffInformationType">
141 <xs:sequence>
142 <xs:element name="chargingControlIndicators" type="sci:ChargingControlIndicatorsType"/>
143 <xs:element name="chargingTariff">
144 <xs:complexType>
145 <xs:choice>
146 <xs:element name="tariffCurrency" type="sci:TariffCurrencyType"/>
147 <xs:element name="tariffPulse" type="sci:TariffPulseType"/>
148 </xs:choice>
149 </xs:complexType>
150 </xs:element>
151 <xs:element name="originationIdentification" type="sci:ChargingReferenceIdentificationType"/>
152 <xs:element name="destinationIdentification" type="sci:ChargingReferenceIdentificationType" minOccurs="0"/>
153 <xs:element name="currency" type="sci:CurrencyType"/>
154 </xs:sequence>
155 </xs:complexType>
156 <xs:complexType name="AddOnChargingInformationType">
157 <xs:sequence>
158 <xs:element name="chargingControlIndicators" type="sci:ChargingControlIndicatorsType"/>
159 <xs:element name="addOnCharge">
160 <xs:complexType>
161 <xs:choice>
162 <xs:element name="addOnChargeCurrency" type="sci:CurrencyFactorScaleType"/>
163 <xs:element name="addOnChargePulse" type="sci:EightBitType"/>
164 </xs:choice>
165 </xs:complexType>
166 </xs:element>
167 <xs:element name="originationIdentification" type="sci:ChargingReferenceIdentificationType"/>
168 <xs:element name="destinationIdentification" type="sci:ChargingReferenceIdentificationType" minOccurs="0"/>
169 <xs:element name="currency" type="sci:CurrencyType"/>
170 </xs:sequence>
171 </xs:complexType>
172 <!--Definition of document structure-->
173 <xs:element name="messageType">
174 <xs:complexType>
175 <xs:choice>
176 <xs:element name="crgt" type="sci:ChargingTariffInformationType"/>
177 <xs:element name="aocrg" type="sci:AddOnChargingInformationType"/>
178 </xs:choice>
179 </xs:complexType>
180 </xs:element>
181</xs:schema>
This page took 0.057685 seconds and 5 git commands to generate.