Project

Profile

Help

Support #6496

closed

Saxon PE Assert

Added by Rick Harvey 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Command Line
Sprint/Milestone:
-
Start date:
2024-08-07
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

I'm having trouble getting assert to trigger using:

  • Out-of-the-box Saxonica release (Saxon-PE-12.5)
  • An XSLT containing asserts (AUNZ-Billing-Shared.xslt)
  • A deliberately erroneous XML file (Invalid.xml)
$ java -jar SaxonPE12-5J/saxon-pe-12.5.jar -t -ea:on -s:Invalid.xml -xsl:AUNZ-Billing-Shared.xslt -o:zresult.xml

Which produces a result file showing no assert was triggered (zresult.xml).

What am I doing wrong?


Files

Invalid.xml (20.4 KB) Invalid.xml File to be validated Rick Harvey, 2024-08-07 15:09
AUNZ-Billing-Shared.xslt (237 KB) AUNZ-Billing-Shared.xslt XSLT validation contaiing assert Rick Harvey, 2024-08-07 15:09
zresult.xml (43.6 KB) zresult.xml Result of validation showing assert not triggered Rick Harvey, 2024-08-07 15:09
PINT-UBL-validation-preprocessed.sch (77.3 KB) PINT-UBL-validation-preprocessed.sch Schematron Rick Harvey, 2024-08-07 17:13
PINT-UBL-validation-preprocessed.xslt (238 KB) PINT-UBL-validation-preprocessed.xslt XSLT Rick Harvey, 2024-08-07 17:13
AUNZ-Billing-Aligned.xslt (122 KB) AUNZ-Billing-Aligned.xslt Rick Harvey, 2024-08-08 09:53

Please register to edit this issue

Also available in: Atom PDF