Facing Issue when Validating with two Schematron file CEN and Peppol #179
Unanswered
iPriyanshuRanjan
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @iPriyanshuRanjan
hth |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @phax ,
I'm facing an issue with validating XML documents using two Schematron rule sets: CEN and PEPPOL. The problem is that the validation process always uses the first Schematron rule set (CEN), even when I'm specifically invoking the validation method for the PEPPOL Schematron.
Code Context:
Validator Setup: I'm loading both the CEN and PEPPOL Schematron resources as separate SchematronResourceSCH instances.
Validation Method: The validation process calls separate methods for validating against CEN and PEPPOL, but only the first Schematron (CEN) seems to be consistently applied.
Steps I Took:
Initialized both CEN and PEPPOL Schematron resources correctly via input streams.
Called the validation method for both CEN and PEPPOL within my validation logic.
Expected Behavior:
Both Schematron rulesets (CEN and PEPPOL) should be applied independently when called.
Actual Behavior:
Even when invoking the PEPPOL Schematron validation method, the validation still appears to be performed using the CEN rule set.
Has anyone faced a similar issue or could provide insight into how to properly apply multiple Schematron rule sets for validation?
Beta Was this translation helpful? Give feedback.
All reactions