Skip to main content

Module xinclude

Module xinclude 

Source
Expand description

XInclude implementation (§26, §85 Phase 5).

XML Inclusions (XInclude) v1.0 (W3C Recommendation): Process <xi:include> elements in an XML document, replacing them with content from external resources.

§XInclude 1.0 support

  • href attribute for referencing external documents
  • parse="xml" (default) and parse="text" modes
  • xpointer attribute with XPointer expressions
  • accept and accept-language attributes for content negotiation
  • <xi:fallback> child element for fallback content
  • Recursive processing (includes within included documents)
  • Circular reference detection via URL tracking
  • Proper namespace handling (http://www.w3.org/2001/XInclude)
  • XML_XINCLUDE_START / XML_XINCLUDE_END sentinel node handling

§C ABI

  • xmlXIncludeProcess(doc) — process all XInclude nodes in a document
  • xmlXIncludeProcessFlags(doc, flags) — process with flags

§UPSTREAM-PARITY

This implementation follows the XInclude 1.0 W3C Recommendation: https://www.w3.org/TR/xinclude/

Functions§

xinclude_process
Process all <xi:include> elements in a document, replacing them with content from the referenced resources.
xinclude_process_flags
Process XInclude nodes with flags.