Commit | Line | Data |
---|---|---|
114d1c9a | 1 | /****************************************************************************** |
3abe9331 | 2 | * Copyright (c) 2000-2015 Ericsson Telecom AB |
114d1c9a 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 | module b64_clash_SE { //^In TTCN-3 module `b64_clash_SE':// | |
9 | ||
10 | type universal charstring b_ae //^In type definition// \ | |
11 | //^error: A type with BASE64 shall not have any of the final encoding instructions ANY-ELEMENT or WHITESPACE// \ | |
12 | //^error: A type with ANY-ELEMENT may not have any of the following encoding instructions: ATTRIBUTE, BASE64, DEFAULT-FOR-EMPTY, PI-OR-COMMENT, UNTAGGED or WHITESPACE// | |
13 | with { | |
14 | variant "XSD:base64Binary"; | |
15 | variant "anyElement"; | |
16 | } | |
17 | ||
18 | type universal charstring b_w //^In type definition// \ | |
19 | //^error: A type with BASE64 shall not have any of the final encoding instructions ANY-ELEMENT or WHITESPACE// | |
20 | with { | |
21 | variant "XSD:base64Binary"; | |
22 | variant "whiteSpace replace"; | |
23 | } | |
24 | ||
25 | type record R1 { //^In type definition// | |
26 | universal charstring f_ae //^In record field// \ | |
27 | //^error: A type with BASE64 shall not have any of the final encoding instructions ANY-ELEMENT or WHITESPACE// \ | |
28 | //^error: A type with ANY-ELEMENT may not have any of the following encoding instructions: ATTRIBUTE, BASE64, DEFAULT-FOR-EMPTY, PI-OR-COMMENT, UNTAGGED or WHITESPACE// | |
29 | } | |
30 | with { | |
31 | variant (f_ae) "XSD:base64Binary"; | |
32 | variant (f_ae) "anyElement"; | |
33 | } | |
34 | ||
35 | type union C { //^In type definition// | |
36 | universal charstring f_ae //^In union field// \ | |
37 | //^error: A type with BASE64 shall not have any of the final encoding instructions ANY-ELEMENT or WHITESPACE// | |
38 | } | |
39 | with { | |
40 | variant (f_ae) "XSD:base64Binary"; | |
41 | variant (f_ae) "whiteSpace collapse"; | |
42 | } | |
43 | ||
44 | } | |
45 | with { | |
46 | encode "XML"; | |
47 | } | |
48 |