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