Commit | Line | Data |
---|---|---|
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 | ||
10 | XML 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 | ||
26 | TTCN-3 Module: | |
27 | */ | |
28 | module AnnexB4 { | |
29 | ||
30 | //import from XSD language "XML" all; | |
31 | import from AnnexB2 language "XML" all; | |
32 | import from AnnexB3 language "XML" all; | |
33 | ||
34 | type AnnexB3.C1 NewC1 | |
35 | with { variant "element" } | |
36 | ||
37 | type AnnexB2.S1 NewS1 // ???? | |
38 | with { variant "element" } | |
39 | ||
40 | } with { | |
41 | encode "XML"; | |
42 | variant /*(all)*/ "name as uncapitalized"; | |
43 | variant /*(all)*/ "namespace as 'nsA' prefix 'NA'" | |
44 | } | |
45 |