bootstrap.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef LSUP_INIT_DATA_H
  2. #define LSUP_INIT_DATA_H
  3. /** @brief Initial namespace map.
  4. */
  5. const char *init_nsmap[][2] = {
  6. {"dc", "http://purl.org/dc/elements/1.1/"},
  7. {"dcterms", "http://purl.org/dc/terms/"},
  8. {"foaf", "http://xmlns.com/foaf/0.1/"},
  9. {"rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#"},
  10. {"rdfs", "http://www.w3.org/2000/01/rdf-schema#"},
  11. {"xsd", "http://www.w3.org/2001/XMLSchema#"},
  12. {NULL}
  13. };
  14. /** @brief Initial data types loaded into the environment.
  15. *
  16. * For XSD type reference see http://www.w3.org/TR/xmlschema11-2/
  17. */
  18. const char *init_datatypes[] = {
  19. /* XSD primitive types. */
  20. "xsd:string",
  21. "xsd:boolean",
  22. "xsd:decimal",
  23. "xsd:float",
  24. "xsd:double",
  25. "xsd:duration",
  26. "xsd:dateTime",
  27. "xsd:time",
  28. "xsd:date",
  29. "xsd:gYearMonth",
  30. "xsd:gYear",
  31. "xsd:gMonthDay",
  32. "xsd:gDay",
  33. "xsd:gMonth",
  34. "xsd:hexBinary",
  35. "xsd:base64Binary",
  36. "xsd:anyURI",
  37. "xsd:QName",
  38. "xsd:NOTATION",
  39. /* Other ordinary (constructed) data types. Not compiled by default. */
  40. #ifdef XSD_CONSTRUCTED_DATATYPES
  41. "xsd:normalizedString",
  42. "xsd:token",
  43. "xsd:language",
  44. "xsd:NMTOKEN",
  45. "xsd:NMTOKENS",
  46. "xsd:Name",
  47. "xsd:NCName",
  48. "xsd:ID",
  49. "xsd:IDREF",
  50. "xsd:IDREFS",
  51. "xsd:ENTITY",
  52. "xsd:ENTITIES",
  53. "xsd:integer",
  54. "xsd:nonPositiveInteger",
  55. "xsd:negativeInteger",
  56. "xsd:long",
  57. "xsd:int",
  58. "xsd:short",
  59. "xsd:byte",
  60. "xsd:nonNegativeInteger",
  61. "xsd:unsignedLong",
  62. "xsd:unsignedInt",
  63. "xsd:unsignedShort",
  64. "xsd:unsignedByte",
  65. "xsd:positiveInteger",
  66. #endif /* XSD_CONSTRUCTED_DATATYPES */
  67. NULL
  68. };
  69. #endif /* LSUP_INIT_DATA_H */