Software / OCF validation / FShape
A correct XML document does not automatically make an entire publishing package consistent. FShape extends validation to folders, files, manifest structures and relationships between OCF components.
1. The package becomes the validation target
RELAX NG, XSD and Schematron primarily examine XML documents. FShape examines the OCF as a container, checking whether expected files exist, folders are missing or resources listed in the manifest actually exist.
2. Structures that can be checked
Expected folders and files
Number and location of specific components
Root element and structure of manifest.xml
Required paths and attributes
References between manifest and package resources
Additional XPath conditions
The package structure itself thus becomes a machine-readable quality criterion.
Figure 5: FShape checks folders, files, manifests, references and package conditions. The complete container structure, beyond the XML document alone, can be validated.
3. Why FShape matters for automation
In automated publishing pipelines, missing or misplaced resources often cause problems only at later processing stages. FShape moves this check to the start. The package can be checked before transformations, outputs or other services build on it.
FShape can therefore be seen as a contract for the expected package structure.
