Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / TTCNandXML / XSDAttributes.ttcn
1 /******************************************************************************
2 * Copyright (c) 2000-2015 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 module XSDAttributes
9 {
10 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
11
12 type enumerated Flintstones { fred, barney, betty, wilma }
13 type record NothingToSeeHere {}
14
15 type record Everything
16 {
17 bitstring bitstr optional,
18 boolean booool optional,
19 //pdv
20 Flintstones cartoon optional,
21 //outsider
22 hexstring hexen optional,
23 integer wholenum optional,
24 //enumerated nix { NULL },
25 // TODO: NothingToSeeHere emptyrec,
26 // no RAW parsing for: objid objection,
27 octetstring octets optional,
28 charstring printer optional,
29 universal charstring intl optional,
30 float upstream optional,
31 verdicttype verdict optional,
32 /******* non-attributes below *******/
33 charstring content optional
34 }
35 with {
36 variant (bitstr, booool, cartoon,
37 hexen,
38 wholenum, /*emptyrec,*/ octets,
39 printer, intl, upstream,
40 verdict) "attribute"
41 }
42
43 // a cut-down version from tortureXML to test attributes+embedValues
44 type record l_source {
45 record length(1) of universal charstring embed,
46 charstring lang optional,
47 charstring wasei optional
48 }
49 with {
50 variant "embedValues";
51 //variant (embed) "anyAttributes"
52 variant (lang) "attribute";
53 variant (wasei) "attribute";
54 };
55
56 }
57 with {
58 encode "XML"
59 }
This page took 0.082073 seconds and 5 git commands to generate.