Skip to main content

openbim_ilcd_epd/
lib.rs

1//! Explicit ILCD+EPD v1.3 XML adapter.
2//!
3//! [`openbim_epd`] models the format-neutral ISO 22057 contract. This crate
4//! models one external exchange format: the InData ILCD+EPD v1.3 extension of
5//! ILCD XML. The two must not be conflated.
6//!
7//! Parsing retains the exact original UTF-8 bytes. Typed views cover only the
8//! process identity, multilingual base names, format version, and declared
9//! information modules. Unknown XML remains in those original bytes and is
10//! emitted unchanged by [`Document::write_original`]. This is not XSD or
11//! provider conformance validation.
12
13#![forbid(unsafe_code)]
14
15mod error;
16mod model;
17mod parser;
18
19pub use error::{ParseError, ParseErrorKind};
20pub use model::{Document, FormatVersion, MultilingualName, ProcessDataset};
21pub use parser::ParseOptions;
22
23/// ILCD process-dataset namespace.
24pub const PROCESS_NAMESPACE: &str = "http://lca.jrc.it/ILCD/Process";
25/// ILCD common namespace.
26pub const COMMON_NAMESPACE: &str = "http://lca.jrc.it/ILCD/Common";
27/// EPD extension namespace introduced by the 2013 format.
28pub const EPD_2013_NAMESPACE: &str = "http://www.iai.kit.edu/EPD/2013";
29/// EPD extension namespace carrying the format-version attribute.
30pub const EPD_2019_NAMESPACE: &str = "http://www.indata.network/EPD/2019";
31/// EPD extension namespace introduced by ILCD+EPD v1.3.
32pub const EPD_2024_NAMESPACE: &str = "http://www.indata.network/EPD/2024";