Expand description
Embedded RelaxNG schema tree — bundled at compile time so a
single-binary distribution can serve compiled .model files and
.rng schemas without an accompanying resources/RelaxNG/ tree
on disk.
The manifest is generated by latexml_core/build.rs, which walks
resources/RelaxNG/ and emits a static &[(relative_path, file_content)] array. Consumers call lookup with a
tree-relative path and feed the returned &'static str straight
into whatever parser needs it:
.modelfiles (compiled tag/attr/content schema) → fed toModel::load_compiled_schema_stras text..rngfiles → fed tolibxml::parser::Parser::parse_stringinsuper::scan::scan_external, where<rng:include>recursion is handled at the Rust scanner level (each include re-entersscan_externaland re-hits the lookup table).
Nothing is materialised to disk — the prebuilt binary runs every
schema-driven feature (--validate, --schemadocs, the
always-on .model lookup at startup) directly from
.rodata.
Statics§
Functions§
- lookup
- Look up the embedded RelaxNG bytes by their tree-relative path
(e.g.
"LaTeXML.model","LaTeXML-common.rng", or"svg/svg11.rng"). ReturnsNoneif the name isn’t in the generated manifest.