Skip to main content

Module schema_set

Module schema_set 

Source
Expand description

Confined virtual-root XSD schema-set discovery.

Discovers the transitive xs:import/xs:include closure reachable from one root schema file and packages it as a SchemaSet: root-relative virtual lookup keys to schema bytes, plus the supplied absolute-URI alias map. The Java resolver serves supplied keys only, so every distinct reachable virtual key is transmitted even when two keys share one canonical file.

Security posture (ADR-0032): schema locations and alias values are untrusted input. Reads are confined to the canonicalized schema root, every candidate is canonicalized and containment-checked before any read, non-regular files are refused (no pipe hangs), no network access exists, no external DTD/entity is loaded, and the 256-key / 8 MiB / 128-alias / 32-level caps fail closed as keys are discovered.

Structs§

SchemaSet
A discovered schema set, keyed for transmission to the XML bridge.

Constants§

MAX_IMPORT_DEPTH
Maximum number of newly expanded discovery states on one traversal path.
MAX_SCHEMA_ALIASES
Maximum number of supplied absolute-URI alias mappings.
MAX_SCHEMA_BYTES
Maximum sum of transmitted byte values across all resources entries.
MAX_SCHEMA_RESOURCES
Maximum number of transmitted SchemaSet::resources entries.

Functions§

discover_schema_set
Discovers the schema set reachable from root under the supplied aliases.