equal
deleted
inserted
replaced
1137 # XSD schema syntax elements |
1137 # XSD schema syntax elements |
1138 #------------------------------------------------------------------------------- |
1138 #------------------------------------------------------------------------------- |
1139 |
1139 |
1140 XSD_NAMESPACE = { |
1140 XSD_NAMESPACE = { |
1141 |
1141 |
1142 #------------------------------------------------------------------------------- |
1142 #------------------------------------------------------------------------------- |
1143 # Syntax elements definition |
1143 # Syntax elements definition |
1144 #------------------------------------------------------------------------------- |
1144 #------------------------------------------------------------------------------- |
1145 |
1145 |
1146 "all": { |
1146 "all": { |
1147 "struct": """ |
1147 "struct": """ |
1148 <all |
1148 <all |
1149 id = ID |
1149 id = ID |
1915 "whiteSpace", ["fixed", "id", "value"], ONLY_ANNOTATION) |
1915 "whiteSpace", ["fixed", "id", "value"], ONLY_ANNOTATION) |
1916 }, |
1916 }, |
1917 "reduce": GenerateFacetReducing("whiteSpace", True) |
1917 "reduce": GenerateFacetReducing("whiteSpace", True) |
1918 }, |
1918 }, |
1919 |
1919 |
1920 #------------------------------------------------------------------------------- |
1920 #------------------------------------------------------------------------------- |
1921 # Syntax attributes definition |
1921 # Syntax attributes definition |
1922 #------------------------------------------------------------------------------- |
1922 #------------------------------------------------------------------------------- |
1923 |
1923 |
1924 "abstract": { |
1924 "abstract": { |
1925 "type": SYNTAXATTRIBUTE, |
1925 "type": SYNTAXATTRIBUTE, |
1926 "extract": { |
1926 "extract": { |
1927 "default": GetBoolean |
1927 "default": GetBoolean |
2192 }, |
2192 }, |
2193 |
2193 |
2194 "xpath": { |
2194 "xpath": { |
2195 "type": SYNTAXATTRIBUTE, |
2195 "type": SYNTAXATTRIBUTE, |
2196 "extract": { |
2196 "extract": { |
2197 # "default": NotSupportedYet("xpath") |
2197 # "default": NotSupportedYet("xpath") |
2198 "default": GetAttributeValue |
2198 "default": GetAttributeValue |
2199 } |
2199 } |
2200 }, |
2200 }, |
2201 |
2201 |
2202 #------------------------------------------------------------------------------- |
2202 #------------------------------------------------------------------------------- |
2203 # Simple types definition |
2203 # Simple types definition |
2204 #------------------------------------------------------------------------------- |
2204 #------------------------------------------------------------------------------- |
2205 |
2205 |
2206 "string": { |
2206 "string": { |
2207 "type": SIMPLETYPE, |
2207 "type": SIMPLETYPE, |
2208 "basename": "string", |
2208 "basename": "string", |
2209 "extract": GetAttributeValue, |
2209 "extract": GetAttributeValue, |