{# Note we use the cda-validate-results and data-error-count as a means for html consumers to grab information from the html #}
{{ 'Schema Definition Errors'|xlt}} - ({{ validation.xsd|length }})

{% if validation.xsd|length <= 1 %}

{{"Passed XSD testing."|xlt}}


{% else %} {% for error in validation.xsd %}

{{ error|text }}


{% endfor %} {% endif %}
{{ 'Schematron Errors'|xlt }} - ({{ validation.errorCount|text }})

{% if validation.errorCount <= 0 %}

{{ "Passed Schematron testing."|xlt}}


{% else %} {% for error in validation.errors %}

{{ 'Error'|xlt }}: {{ error.description|text }}
{{ 'Error Context'|xlt }}: {{ error.context|text }}
{{ 'Where'|xlt }}: {{ error.path|text }}
{{ 'Line'|xlt }}# {{ error.line|text }}


{% endfor %} {% endif %}