PureXML/Sources/PureXML.swift
Mihaela Mihaljevic e862f364aa feat(schema): XSD simple-type datatype library with facets
Add the PureXML.Schema namespace validating XSD Part 2 built-in datatypes
and constraining facets. Built-ins span string/boolean/decimal, the bounded
integer family with intrinsic bounds, float/double, duration, the eight
date/time types, hexBinary, base64Binary, anyURI, QName, and the
Name/NCName/NMTOKEN/language family. Facets: length/minLength/maxLength,
pattern (via the regex engine), enumeration (value-space comparison),
whiteSpace, min/maxInclusive/Exclusive, totalDigits, fractionDigits.
Decimals compare exactly with no floating-point loss; date/time fields are
range-validated with leap years, 24:00:00, and timezone bounds.

Closes #8
2026-06-08 06:29:37 +02:00

49 lines
1.2 KiB
Swift

/// Root namespace for the PureXML package.
public enum PureXML {
/// XML document model types.
public enum Model {}
/// XML parsing types.
public enum Parsing {}
/// XML emitting types.
public enum Emitting {}
/// XML typed decoding types.
public enum Decoding {}
/// XML typed encoding types.
public enum Encoding {}
/// XML validation types.
public enum Validation {}
/// XML stream types.
public enum Stream {}
/// XPath query types.
public enum XPath {}
/// Streaming pattern types (the libxml2 `pattern.h` XPath subset).
public enum Pattern {}
/// XPointer fragment-identifier types (the `element()` and `xpointer()`
/// schemes over XPath).
public enum XPointer {}
/// OASIS XML Catalog types (resolving public/system identifiers to URIs).
public enum Catalog {}
/// XInclude processing, URI reference resolution, and `xml:base`.
public enum XInclude {}
/// Canonical XML (C14N) serialization types.
public enum Canonical {}
/// Regular-expression types (the XML Schema regex flavor).
public enum Regex {}
/// XML Schema (XSD) and RELAX NG validation types.
public enum Schema {}
}