Last sync 2016.04.01
[deliverable/titan.core.git] / regression_test / XML / TTCNandXML / AnnexB4.ttcn
1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
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 * Contributors:
9 * Balasko, Jeno
10 * Raduly, Csaba
11 *
12 ******************************************************************************/
13 /* Annex B Example 4
14
15 XML Schema:
16
17 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:NA="nsA"
18 targetNamespace="nsA">
19 <xs:include schemaLocation="AnnexB3.xsd"/>
20 <xs:import schemaLocation="AnnexB2.xsd"/>
21 <xs:complexType name="newC1">
22 <xs:complexContent>
23 <xs:extension base="NA:C1"/>
24 </xs:complexContent>
25 </xs:complexType>
26 <xs:simpleType name="newS1">
27 <xs:restriction base="S1"/>
28 </xs:simpleType>
29 </xs:schema>
30
31 TTCN-3 Module:
32 */
33 module AnnexB4 {
34
35 //import from XSD language "XML" all;
36 import from AnnexB2 language "XML" all;
37 import from AnnexB3 language "XML" all;
38
39 type AnnexB3.C1 NewC1
40 with { variant "element" }
41
42 type AnnexB2.S1 NewS1 // ????
43 with { variant "element" }
44
45 } with {
46 encode "XML";
47 variant /*(all)*/ "name as uncapitalized";
48 variant /*(all)*/ "namespace as 'nsA' prefix 'NA'"
49 }
50
This page took 0.033319 seconds and 6 git commands to generate.