# EPUB 2 OPF 2.0.1

Source: https://xmlvalid.com/schemas/epub-2-opf

> The content.opf of an EPUB 2 book, checked with the grammar and rules epubcheck uses.

EPUB 2 books, still common in back catalogues and some stores, describe their metadata, files and reading order in an OPF 2.0.1 package file.
Two layers are checked: the RELAX NG grammar (which also accepts the older OEB 1.2 package), then epubcheck's Schematron rules for OPF 2.

- Type: RelaxNG + Schematron
- Version: 2.0.1
- Namespace: `http://www.idpf.org/2007/opf`
- Root element: `package`
- Publisher: W3C EPUB 3 Community Group (epubcheck) (BSD 3-Clause (epubcheck)), source: https://github.com/w3c/epubcheck/tree/main/src/main/resources/com/adobe/epubcheck/schema/20
- Rules: [EPUB 2 OPF rules (epubcheck) epubcheck 5](https://xmlvalid.com/rules/sets/epub-2-opf)
- Validate against it: https://xmlvalid.com/validate?schema=epub-2-opf

## Notes

- Drop the whole .epub on the validator's Upload tab to check the book file by file (container, package, NCX, content documents for well-formedness, missing files). CSS, fonts, links, media types and content rules are checked by epubcheck, not here.
- The example is by xmlvalid.com.
