Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi language support for reports #114

Open
rboitsg opened this issue May 2, 2023 · 0 comments
Open

Multi language support for reports #114

rboitsg opened this issue May 2, 2023 · 0 comments

Comments

@rboitsg
Copy link

rboitsg commented May 2, 2023

Is it possible do define messages in different languages for the validation report?

Given Schematron's documentation it is possible to define the attributes "diagnostics" and "see" to give more information about a failed assert.

Sadly I can't find their values in the report XMLs.

My Schematron file is built like this (part):

  <pattern>
    <rule context="..." see="https://www.google.de">
      <assert id="ERR-1" diagnostics="d1 d2" test="...">
        Fallbacktext.
      </assert>
    </rule>
  </pattern>
  <diagnostics>
    <diagnostic id="d1" xml:lang="de">
      Wenn "x" gefüllt ist, muss "y" gefüllt sein.
    </diagnostic>
    <diagnostic id="d2" xml:lang="en">
      When "x" is set then "y" has to be set, too.
    </diagnostic>
  </diagnostics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant