IHPDFESchematronEngine Interface
IHPDFESchematronEngine = interface
['{D6A1F2C4-9B3E-4A7D-8C12-1F5E6A7B8C9D}']
function Load(const SchematronPath: string; out ErrorText: string): Boolean;
function Validate(const XMLBytes: TBytes): THPDFBusinessRuleResults;
function LastSummary: THPDFSchematronSummary;
end;
Engine abstraction behind e-invoice business-rule validation; implementations parse a .sch file once through Load and then evaluate every rule against a supplied invoice XML byte stream via Validate
LastSummary exposes the outcome counters of the most recent validation for reporting