Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / TTCNandXML / AnnexB4.ttcn
CommitLineData
970ed795 1/******************************************************************************
3abe9331 2 * Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 ******************************************************************************/
8/* Annex B Example 4
9
10XML Schema:
11
12<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:NA="nsA"
13 targetNamespace="nsA">
14 <xs:include schemaLocation="AnnexB3.xsd"/>
15 <xs:import schemaLocation="AnnexB2.xsd"/>
16 <xs:complexType name="newC1">
17 <xs:complexContent>
18 <xs:extension base="NA:C1"/>
19 </xs:complexContent>
20 </xs:complexType>
21 <xs:simpleType name="newS1">
22 <xs:restriction base="S1"/>
23 </xs:simpleType>
24</xs:schema>
25
26TTCN-3 Module:
27*/
28module AnnexB4 {
29
30//import from XSD language "XML" all;
31import from AnnexB2 language "XML" all;
32import from AnnexB3 language "XML" all;
33
34type AnnexB3.C1 NewC1
35with { variant "element" }
36
37type AnnexB2.S1 NewS1 // ????
38with { variant "element" }
39
40} with {
41encode "XML";
42variant /*(all)*/ "name as uncapitalized";
43variant /*(all)*/ "namespace as 'nsA' prefix 'NA'"
44}
45
This page took 0.026141 seconds and 5 git commands to generate.