THPDFSchematronSummary Record

摘要一次 Schematron 執行的結果,包含規則數、違規總數與引擎可用性

宣告

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;

單元

HPDFEInvoiceValidator

欄位

欄位用途
Profile已載入 Schematron 的 profile 識別碼,對應發票一致性層級
TotalRules掃描到的 <assert> 與 <report> 項目數
Evaluatedcontext 與 test 實際被處理過的規則數
Skipped被舊式或 stub 引擎略過的規則數;XE2 之後為零
EvaluationErrors無法執行的規則運算式數量
Violations失敗的 assert 加上觸發的 report 總數
EngineAvailable只有 Delphi 7 stub 引擎時為 False
EngineNote人眼可讀的可用性或錯誤原因

使用說明

相關 API