1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
/******************************************************************************
* Copyright (c) 2000-2016 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Balasko, Jeno
* Raduly, Csaba
*
******************************************************************************/
module XSDAttributes
{
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
type enumerated Flintstones { fred, barney, betty, wilma }
type record NothingToSeeHere {}
type record Everything
{
bitstring bitstr optional,
boolean booool optional,
//pdv
Flintstones cartoon optional,
//outsider
hexstring hexen optional,
integer wholenum optional,
//enumerated nix { NULL },
// TODO: NothingToSeeHere emptyrec,
// no RAW parsing for: objid objection,
octetstring octets optional,
charstring printer optional,
universal charstring intl optional,
float upstream optional,
verdicttype verdict optional,
/******* non-attributes below *******/
charstring content optional
}
with {
variant (bitstr, booool, cartoon,
hexen,
wholenum, /*emptyrec,*/ octets,
printer, intl, upstream,
verdict) "attribute"
}
// a cut-down version from tortureXML to test attributes+embedValues
type record l_source {
record length(1) of universal charstring embed,
charstring lang optional,
charstring wasei optional
}
with {
variant "embedValues";
//variant (embed) "anyAttributes"
variant (lang) "attribute";
variant (wasei) "attribute";
};
}
with {
encode "XML"
}
|