• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# TODO: Add more language elements
2
3xs_annotation="<xs:annotation></xs:annotation>"
4
5xs_attribute="<xs:attribute name='a'></xs:attribute>"
6xs_attribute_required="<xs:attribute name='a' use='required'></xs:attribute>"
7xs_element="<xs:element name='e'></xs:element>"
8
9# Primitive datatypes
10type_string=" type='xs:string'"
11type_boolean=" type='xs:boolean'"
12type_decimal=" type='xs:decimal'"
13type_float=" type='xs:float'"
14type_double=" type='xs:double'"
15type_date_time=" type='xs:dateTime'"
16type_time=" type='xs:time'"
17type_date=" type='xs:date'"
18type_g_year_month=" type='xs:gYearMonth'"
19type_g_year=" type='xs:gYear'"
20type_g_month_day=" type='xs:gMonthDay'"
21type_g_day=" type='xs:gDay'"
22type_g_month=" type='xs:gMonth'"
23type_hex_binary=" type='xs:hexBinary'"
24type_base64_binary=" type='xs:base64Binary'"
25type_any_uri=" type='xs:anyURI'"
26type_qname=" type='xs:QName'"
27type_notation=" type='xs:NOTATION'"
28
29# Occurs
30occurs_min=" minOccurs='1'"
31occurs_max=" maxOccurs='9'"
32occurs_max_unbounded=" maxOccurs='unbounded'"
33
34# Simple type
35xs_restriction_integer="<xs:simpleType><xs:restriction base='xs:integer'></xs:restriction></xs:simpleType>"
36xs_restriction_string="<xs:simpleType><xs:restriction base='xs:string'></xs:restriction></xs:simpleType>"
37xs_list="<xs:simpleType><xs:list></xs:list></xs:simpleType>"
38xs_union="<xs:simpleType><xs:union></xs:union></xs:simpleType>"
39
40# Restrictions
41xs_min_exclusive="<xs:minExclusive value='0'/>"
42xs_min_inclusive="<xs:minInclusive value='0'/>"
43xs_max_exclusive="<xs:maxExclusive value='9'/>"
44xs_max_inclusive="<xs:maxInclusive value='9'/>"
45xs_total_digits="<xs:totalDigits value='3'/>"
46xs_fraction_digits="<xs:fractionDigits value='3'/>"
47xs_length="<xs:length value='3'/>"
48xs_min_length="<xs:minLength value='3'/>"
49xs_max_length="<xs:maxLength value='3'/>"
50xs_enumeration="<xs:enumeration value='a'/>"
51xs_white_space_collapse="<xs:whiteSpace value='collapse'/>"
52xs_white_space_preserve="<xs:whiteSpace value='preserve'/>"
53xs_white_space_replace="<xs:whiteSpace value='replace'/>"
54xs_pattern="<xs:pattern value='a'/>"
55
56