IHPDFESchematronEngine 介面
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;
電子發票商務規則驗證背後的引擎抽象;實作透過 Load 只解析一次 .sch 檔案,然後透過 Validate 針對提供的發票 XML 位元組串流評估每一條規則
LastSummary 暴露最近一次驗證的結果計數器,供報告使用