Skip to content

LandrixXml 0.3.0

Choose a tag to compare

@landrix landrix released this 10 Nov 16:08
· 59 commits to main since this release

Native XML Schema and Schematron validation for Delphi 6 to 13 and Free Pascal 3.2+, as optional units. The reader, writer, DOM and conversion units of 0.2.0 do not depend on them and keep their API.

Highlights

  • XML Schema 1.0 validation (LandrixXmlXsdTypes, LandrixXmlXsdContent, LandrixXmlXsdSchema, LandrixXmlXsdSchemaLoader, LandrixXmlXsdValidator) for the reader and the DOM. It follows Xerces in the Java runtime, the validator behind KoSIT and Mustang: the same verdicts, error codes, messages and order. The deliberate differences from the specification are listed in the README. W3C XML Schema Test Suite: 39,225 of 39,336 applicable tests pass.
  • XPath 2.0 and Schematron (LandrixXmlXPathTree, LandrixXmlXPath, LandrixXmlXPathEval, LandrixXmlSchematron, LandrixXmlSchematronCompiler). XPath runs in two profiles: as the specification says, or as Saxon HE runs it. Schematron rules load directly from .sch and write SVRL. EN16931, XRechnung, Peppol BIS and Factur-X give the same results as the KoSIT validator with Saxon (KoSIT test suite: 86 of 86 equal).
  • Building blocks:
    • exact decimal arithmetic (LandrixXmlDecimal);
    • xs:double and xs:float in software (LandrixXmlDouble);
    • XSD and XPath regular expressions (LandrixXmlRegex);
    • Unicode categories and normalization (LandrixXmlUnicode, LandrixXmlNormalize);
    • SHA-256 (LandrixXmlSha256).

Still only SysUtils, Classes and Contnrs; no IDE packages, add source/ to the search path.

See CHANGELOG.md for the full list of additions, changes and fixes.