# FPR12 validation dependencies

Snapshot checked 10 November 2026.

## Agency schema: supplied by the user, not redistributed

Download the ordinary-invoice XSD directly from the [Agenzia delle Entrate](https://www.agenziaentrate.gov.it/portale/documents/d/guest/schema_vfpr12_v1-2-3), then select it locally in the validator. Neither the schema nor the invoice is uploaded. The supported snapshot declares XSD version **1.2.3**, SHA-256 `0b1df484bb977964994ed85bf05841f32e7534432de8f348c9d4613fd183c104`. A different or reformatted file is refused, including after another schema has already been used in the session.

This XSD is listed under [technical specifications 1.9.1, usable from 15 May 2026](https://www.agenziaentrate.gov.it/portale/specifiche-tecniche-versione-1.9.1-%C2%A0-utilizzabili-dal-15-maggio-2026-). The specification number is not the XSD version. No open redistribution licence for the Agency file is claimed. The user-supplied workflow was selected on 10 November 2026; the acquired development copy is excluded from public assets and version control.

## Bundled W3C dependency

`xmldsig-core-schema.xsd` comes from https://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd . The publisher declares schema version `0.1`, with comment revision `1.2` dated `2013/04/16`. Local SHA-256: `45d448910f884800fd4f609c09fe9dd0a5ff815f8f3978ca8042c140c00598b1`.

Modification, 10 November 2026: removed the original DOCTYPE/internal subset (original lines 2–11), which declared unused entities and referred to a network DTD. The remaining schema definitions are unchanged. Full required notice and change notice: [W3C-LICENSE.txt](W3C-LICENSE.txt), under the [W3C Software Notice and License](https://www.w3.org/Consortium/Legal/copyright-software-19980720).

The Agency schema imports `http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd`. The validator resolves only that exact import from this licensed copy in memory. Parser network access and external entity loading are disabled; invoice DTD/ENTITY declarations are rejected before parsing.

## Engine and regression check

The implementation pins `libxml2-wasm@0.7.2`: [wrapper licence](https://github.com/jameslan/libxml2-wasm/blob/master/LICENSE) and [bundled libxml2 notice](https://github.com/jameslan/libxml2-wasm/blob/master/LICENSE.libxml2). XSD validation uses the actual `XsdValidator`, not a hand-written approximation. Passing is not SdI acceptance, arithmetic/tax validation, counterparty verification or signature cryptographic verification.

From `next-app`, run `bun scripts/check-fpr12-official-schema.ts PATH_TO_YOUR_OFFICIAL_XSD` for the deterministic, offline real-schema regression checks. The input is mandatory; absence is not reported as a passing check. Synthetic invoice fixtures contain no client data. Recheck the official source, fingerprint, rules and browser compatibility before supporting another schema snapshot; never change just the displayed year.
