Skip to main content

Module versioning

Module versioning 

Source
Expand description

C ABI versioning — LIBXML2_VERSION, LIBXSLT_VERSION, runtime version APIs (§83, §84).

This module implements the public C ABI version functions:

  • xmlLibxmlVersion() — returns LIBXML2_VERSION as integer
  • xmlLibxmlVersionString() — returns LIBXML2_VERSION string pointer
  • xmlParserVersion() — alias for xmlLibxmlVersionString
  • xmlCheckVersion() — runtime version compatibility check
  • xsltLibxsltVersion() — returns LIBXSLT_VERSION as integer
  • xsltLibxsltVersionString() — returns LIBXSLT_VERSION string pointer
  • xsltCheckVersion() — runtime XSLT version compatibility check

§Phase 1 status

Complete — all version APIs are implemented.

§Compatibility profile

Currently targeting libxml2 2.12.0 / libxslt 1.1.39 compatibility. These versions are selected as the first modern stable release after the major 2.11 → 2.12 API transition.

§UPSTREAM-PARITY

Upstream version format: major * 10000 + minor * 100 + micro Example: 2.12.0 → 21200

Constants§

LIBXML2_VERSION
The libxml2 version as a number (compile-time constant).
LIBXML2_VERSION_EXTRA
Extra version suffix (empty string for release versions).
LIBXML2_VERSION_MAJOR
The libxml2 version major number.
LIBXML2_VERSION_MICRO
The libxml2 version micro number.
LIBXML2_VERSION_MINOR
The libxml2 version minor number.
LIBXML2_VERSION_NUM
libxml2 version as a number: 2 * 10000 + 12 * 100 + 0 = 21200
LIBXML2_VERSION_NUMBER
The libxml2 version as a number (alternate name).
LIBXSLT_VERSION
The libxslt version as a number (compile-time constant).
LIBXSLT_VERSION_EXTRA
Extra version suffix for libxslt (empty string for release versions).
LIBXSLT_VERSION_MAJOR
The libxslt version major number.
LIBXSLT_VERSION_MICRO
The libxslt version micro number.
LIBXSLT_VERSION_MINOR
The libxslt version minor number.
LIBXSLT_VERSION_NUM
libxslt version as a number: 1 * 10000 + 1 * 100 + 39 = 10139
LIBXSLT_VERSION_NUMBER
The libxslt version as a number (alternate name).

Functions§

c_str_to_bytes
Convert a C string pointer to a byte slice (NULL-safe).
is_initialized
Check whether the library has been initialized.
set_initialized
Mark the library as initialized.
version_number
Compute the numeric version from major/minor/micro components.
xmlCheckVersion
Check that the library version is at least version.
xmlLibxmlVersion
Return the libxml2 version as an integer.
xmlLibxmlVersionString
Return the libxml2 version as a static C string.
xmlParserVersion
Return the parser version string (alias for xmlLibxmlVersionString).
xsltCheckVersion
Check that the XSLT library version is at least version.
xsltLibxsltVersion
Return the libxslt version as an integer.
xsltLibxsltVersionString
Return the libxslt version as a static C string.