THPDFSchematronSummary Record
Summarises a single Schematron run, giving rule counts, violation totals and engine availability
Declaration
THPDFSchematronSummary= record
Profile: AnsiString;
TotalRules: Integer; // number of <assert>/<report> entries scanned
Evaluated: Integer; // rules whose contexts and tests were processed
Skipped: Integer; // legacy/stub engines only; zero for XE2+
EvaluationErrors: Integer;// rule expressions that could not be executed
Violations: Integer; // asserts that failed + reports that fired
EngineAvailable: Boolean; // False on Delphi 7 stub
EngineNote: AnsiString; // human-readable availability / error reason
end;
Unit
HPDFEInvoiceValidator
Fields
| Field | Purpose |
|---|---|
Profile | Identifier of the loaded Schematron profile, matching the invoice conformance level |
TotalRules | How many <assert> and <report> entries were scanned |
Evaluated | Rules whose contexts and tests were genuinely processed |
Skipped | Rules that legacy or stub engines skip; always zero on XE2 and later |
EvaluationErrors | Rule expressions that could not be run |
Violations | Asserts that failed together with reports that fired |
EngineAvailable | False when the Delphi 7 stub engine is all that is present |
EngineNote | Human-readable reason for the availability or the error |
Usage notes
- Read the summary either from
IHPDFESchematronEngine.LastSummaryor fromTHPDFEInvoiceValidationReport.BusinessSummary - The counts are pre-computed, so callers can render a one-line result without walking the rule array
EngineAvailableFalse means the business rules never ran, and a hybrid invoice must fail closed