Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / TTCNandXML / XSDAttributes.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 ******************************************************************************/
8module XSDAttributes
9{
10/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
11
12type enumerated Flintstones { fred, barney, betty, wilma }
13type record NothingToSeeHere {}
14
15type 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}
35with {
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
44type record l_source {
45 record length(1) of universal charstring embed,
46 charstring lang optional,
47 charstring wasei optional
48}
49with {
50variant "embedValues";
51//variant (embed) "anyAttributes"
52variant (lang) "attribute";
53variant (wasei) "attribute";
54};
55
56}
57with {
58encode "XML"
59}
This page took 0.025764 seconds and 5 git commands to generate.