xinclude.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. (*
  2. * Summary: implementation of XInclude
  3. * Description: API to handle XInclude processing,
  4. * implements the
  5. * World Wide Web Consortium Last Call Working Draft 10 November 2003
  6. * http://www.w3.org/TR/2003/WD-xinclude-20031110
  7. *
  8. * Copy: See Copyright for the status of this software.
  9. *
  10. * Author: Daniel Veillard
  11. *)
  12. {$IFDEF LIBXML_XINCLUDE_ENABLED}
  13. {$IFDEF CONST}
  14. (**
  15. * XINCLUDE_NS:
  16. *
  17. * Macro defining the Xinclude namespace: http://www.w3.org/2003/XInclude
  18. *)
  19. __XINCLUDE_NS: String = 'http://www.w3.org/2003/XInclude';
  20. XINCLUDE_NS: xmlCharPtr = @__XINCLUDE_NS[1];
  21. (**
  22. * XINCLUDE_OLD_NS:
  23. *
  24. * Macro defining the draft Xinclude namespace: http://www.w3.org/2001/XInclude
  25. *)
  26. __XINCLUDE_OLD_NS: String = 'http://www.w3.org/2001/XInclude';
  27. XINCLUDE_OLD_NS: xmlCharPtr = @__XINCLUDE_OLD_NS[1];
  28. (**
  29. * XINCLUDE_NODE:
  30. *
  31. * Macro defining "include"
  32. *)
  33. __XINCLUDE_NODE: String = 'include';
  34. XINCLUDE_NODE: xmlCharPtr = @__XINCLUDE_NODE[1];
  35. (**
  36. * XINCLUDE_FALLBACK:
  37. *
  38. * Macro defining "fallback"
  39. *)
  40. __XINCLUDE_FALLBACK: String = 'fallback';
  41. XINCLUDE_FALLBACK: xmlCharPtr = @__XINCLUDE_FALLBACK[1];
  42. (**
  43. * XINCLUDE_HREF:
  44. *
  45. * Macro defining "href"
  46. *)
  47. __XINCLUDE_HREF: String = 'href';
  48. XINCLUDE_HREF: xmlCharPtr = @__XINCLUDE_HREF[1];
  49. (**
  50. * XINCLUDE_PARSE:
  51. *
  52. * Macro defining "parse"
  53. *)
  54. __XINCLUDE_PARSE: String = 'parse';
  55. XINCLUDE_PARSE: xmlCharPtr = @__XINCLUDE_PARSE[1];
  56. (**
  57. * XINCLUDE_PARSE_XML:
  58. *
  59. * Macro defining "xml"
  60. *)
  61. __XINCLUDE_PARSE_XML: String = 'xml';
  62. XINCLUDE_PARSE_XML: xmlCharPtr = @__XINCLUDE_PARSE_XML[1];
  63. (**
  64. * XINCLUDE_PARSE_TEXT:
  65. *
  66. * Macro defining "text"
  67. *)
  68. __XINCLUDE_PARSE_TEXT: String = 'text';
  69. XINCLUDE_PARSE_TEXT: xmlCharPtr = @__XINCLUDE_PARSE_TEXT[1];
  70. (**
  71. * XINCLUDE_PARSE_ENCODING:
  72. *
  73. * Macro defining "encoding"
  74. *)
  75. __XINCLUDE_PARSE_ENCODING: String = 'encoding';
  76. XINCLUDE_PARSE_ENCODING: xmlCharPtr = @__XINCLUDE_PARSE_ENCODING[1];
  77. (**
  78. * XINCLUDE_PARSE_XPOINTER:
  79. *
  80. * Macro defining "xpointer"
  81. *)
  82. __XINCLUDE_PARSE_XPOINTER: String = 'xpointer';
  83. XINCLUDE_PARSE_XPOINTER: xmlCharPtr = @__XINCLUDE_PARSE_XPOINTER[1];
  84. {$ENDIF}
  85. {$IFDEF POINTER}
  86. xmlXIncludeCtxtPtr = ^xmlXIncludeCtxt;
  87. {$ENDIF}
  88. {$IFDEF TYPE}
  89. xmlXIncludeCtxt = record end;
  90. {$ENDIF}
  91. {$IFDEF FUNCTION}
  92. (*
  93. * standalone processing
  94. *)
  95. function xmlXIncludeProcess(doc: xmlDocPtr): cint; EXTDECL; external xml2lib;
  96. function xmlXIncludeProcessFlags(doc: xmlDocPtr; flags: cint): cint; EXTDECL; external xml2lib;
  97. function xmlXIncludeProcessFlagsData(doc: xmlDocPtr; flags: cint; data: pointer): cint; EXTDECL; external xml2lib;
  98. function xmlXIncludeProcessTree(tree: xmlNodePtr): cint; EXTDECL; external xml2lib;
  99. function xmlXIncludeProcessTreeFlags(tree: xmlNodePtr; flags: cint): cint; EXTDECL; external xml2lib;
  100. (*
  101. * contextual processing
  102. *)
  103. function xmlXIncludeNewContext(doc: xmlDocPtr): xmlXIncludeCtxtPtr; EXTDECL; external xml2lib;
  104. function xmlXIncludeProcessFlags(ctxt: xmlXIncludeCtxtPtr; flags: cint): cint; EXTDECL; external xml2lib;
  105. procedure xmlXIncludeProcess(ctxt: xmlXIncludeCtxtPtr); EXTDECL; external xml2lib;
  106. function xmlXIncludeProcessNode(ctxt: xmlXIncludeCtxtPtr; tree: xmlNodePtr): cint; EXTDECL; external xml2lib;
  107. {$ENDIF}
  108. {$ENDIF} (* LIBXML_XINCLUDE_ENABLED *)