xmlclass/xsdschema.py
changeset 1749 d73b64672238
parent 1744 69dfdb26f600
child 1750 acf02488f37f
equal deleted inserted replaced
1748:ba5f64fe0e00 1749:d73b64672238
    64             text += "{:.0f}".format(value)
    64             text += "{:.0f}".format(value)
    65         if name is not None:
    65         if name is not None:
    66             text += "</%s>\n" % name
    66             text += "</%s>\n" % name
    67         return text
    67         return text
    68     return generateXMLTextMethod
    68     return generateXMLTextMethod
       
    69 
    69 
    70 
    70 DEFAULT_FACETS = GenerateDictFacets(["pattern", "whiteSpace", "enumeration"])
    71 DEFAULT_FACETS = GenerateDictFacets(["pattern", "whiteSpace", "enumeration"])
    71 NUMBER_FACETS = GenerateDictFacets(DEFAULT_FACETS.keys() + ["maxInclusive", "maxExclusive", "minInclusive", "minExclusive"])
    72 NUMBER_FACETS = GenerateDictFacets(DEFAULT_FACETS.keys() + ["maxInclusive", "maxExclusive", "minInclusive", "minExclusive"])
    72 DECIMAL_FACETS = GenerateDictFacets(NUMBER_FACETS.keys() + ["totalDigits", "fractionDigits"])
    73 DECIMAL_FACETS = GenerateDictFacets(NUMBER_FACETS.keys() + ["totalDigits", "fractionDigits"])
    73 STRING_FACETS = GenerateDictFacets(DEFAULT_FACETS.keys() + ["length", "minLength", "maxLength"])
    74 STRING_FACETS = GenerateDictFacets(DEFAULT_FACETS.keys() + ["length", "minLength", "maxLength"])