Skip to content

Multi language support for reports #114

@rboitsg

Description

@rboitsg

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions