xinclude.inc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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: xmlCharPtr = 'http://www.w3.org/2003/XInclude';
  20. (**
  21. * XINCLUDE_OLD_NS:
  22. *
  23. * Macro defining the draft Xinclude namespace: http://www.w3.org/2001/XInclude
  24. *)
  25. XINCLUDE_OLD_NS: xmlCharPtr = 'http://www.w3.org/2001/XInclude';
  26. (**
  27. * XINCLUDE_NODE:
  28. *
  29. * Macro defining "include"
  30. *)
  31. XINCLUDE_NODE: xmlCharPtr = 'include';
  32. (**
  33. * XINCLUDE_FALLBACK:
  34. *
  35. * Macro defining "fallback"
  36. *)
  37. XINCLUDE_FALLBACK: xmlCharPtr = 'fallback';
  38. (**
  39. * XINCLUDE_HREF:
  40. *
  41. * Macro defining "href"
  42. *)
  43. XINCLUDE_HREF: xmlCharPtr = 'href';
  44. (**
  45. * XINCLUDE_PARSE:
  46. *
  47. * Macro defining "parse"
  48. *)
  49. XINCLUDE_PARSE: xmlCharPtr = 'parse';
  50. (**
  51. * XINCLUDE_PARSE_XML:
  52. *
  53. * Macro defining "xml"
  54. *)
  55. XINCLUDE_PARSE_XML: xmlCharPtr = 'xml';
  56. (**
  57. * XINCLUDE_PARSE_TEXT:
  58. *
  59. * Macro defining "text"
  60. *)
  61. XINCLUDE_PARSE_TEXT: xmlCharPtr = 'text';
  62. (**
  63. * XINCLUDE_PARSE_ENCODING:
  64. *
  65. * Macro defining "encoding"
  66. *)
  67. XINCLUDE_PARSE_ENCODING: xmlCharPtr = 'encoding';
  68. (**
  69. * XINCLUDE_PARSE_XPOINTER:
  70. *
  71. * Macro defining "xpointer"
  72. *)
  73. XINCLUDE_PARSE_XPOINTER: xmlCharPtr = 'xpointer';
  74. {$ENDIF}
  75. {$IFDEF POINTER}
  76. xmlXIncludeCtxtPtr = ^xmlXIncludeCtxt;
  77. {$ENDIF}
  78. {$IFDEF TYPE}
  79. xmlXIncludeCtxt = record end;
  80. {$ENDIF}
  81. {$IFDEF FUNCTION}
  82. (*
  83. * standalone processing
  84. *)
  85. function xmlXIncludeProcess(doc: xmlDocPtr): cint; EXTDECL; external xml2lib;
  86. function xmlXIncludeProcessFlags(doc: xmlDocPtr; flags: cint): cint; EXTDECL; external xml2lib;
  87. function xmlXIncludeProcessFlagsData(doc: xmlDocPtr; flags: cint; data: pointer): cint; EXTDECL; external xml2lib;
  88. function xmlXIncludeProcessTree(tree: xmlNodePtr): cint; EXTDECL; external xml2lib;
  89. function xmlXIncludeProcessTreeFlags(tree: xmlNodePtr; flags: cint): cint; EXTDECL; external xml2lib;
  90. (*
  91. * contextual processing
  92. *)
  93. function xmlXIncludeNewContext(doc: xmlDocPtr): xmlXIncludeCtxtPtr; EXTDECL; external xml2lib;
  94. function xmlXIncludeProcessFlags(ctxt: xmlXIncludeCtxtPtr; flags: cint): cint; EXTDECL; external xml2lib;
  95. procedure xmlXIncludeProcess(ctxt: xmlXIncludeCtxtPtr); EXTDECL; external xml2lib;
  96. function xmlXIncludeProcessNode(ctxt: xmlXIncludeCtxtPtr; tree: xmlNodePtr): cint; EXTDECL; external xml2lib;
  97. {$ENDIF}
  98. {$ENDIF} (* LIBXML_XINCLUDE_ENABLED *)