Mode:

Compact lists

Showing:

Documentation
Parameters
Source
Main stylesheet api-2.0.xsl
Documentation

Description

SchXslt Callback API Specification

The parts of the validation stylesheet that create reporting output are created by calls to the named templates defined herein. You can override these templates to customize the output. The compiler expects the instructions of the validation stylesheet to live in the default namespace.

Stylesheet version 2.0
[ top ]
Template schxslt-api:report
Documentation

Description

Create part of the validation stylesheet that creates the report

This template is called after the report has been gathered. The content of the report is available in the variable schxslt:report.

Parameters

schema Schematron schema
phase Validation phase
Namespace https://doi.org/10.5281/zenodo.1495494#api
Parameters
QName Namespace Type Required
phase No namespace xs:string yes
schema No namespace element(sch:schema) yes
Source
<xsl:template name="schxslt-api:report">
  <xsl:param name="schema" as="element(sch:schema)" required="yes"/>
  <xsl:param name="phase" as="xs:string" required="yes"/>
</xsl:template>
[ top ]
Template schxslt-api:active-pattern
Documentation

Description

Create part of the validation stylesheet that reports an active pattern

Parameters

pattern Schematron element of the active pattern
Namespace https://doi.org/10.5281/zenodo.1495494#api
Parameters
QName Namespace Type Required
pattern No namespace element(sch:pattern) yes
Source
<xsl:template name="schxslt-api:active-pattern">
  <xsl:param name="pattern" as="element(sch:pattern)" required="yes"/>
</xsl:template>
[ top ]
Template schxslt-api:fired-rule
Documentation

Description

Create part of the validation stylesheet that reports a fired rule

Parameters

rule Schematron element of the fired rule
Namespace https://doi.org/10.5281/zenodo.1495494#api
Parameters
QName Namespace Type Required
rule No namespace element(sch:rule) yes
Source
<xsl:template name="schxslt-api:fired-rule">
  <xsl:param name="rule" as="element(sch:rule)" required="yes"/>
</xsl:template>
[ top ]
Template schxslt-api:failed-assert
Documentation

Description

Create part of the validation stylesheet that reports a failed assert

Parameters

assert Schematron element of the failed assert
Namespace https://doi.org/10.5281/zenodo.1495494#api
Parameters
QName Namespace Type Required
assert No namespace element(sch:assert) yes
Source
<xsl:template name="schxslt-api:failed-assert">
  <xsl:param name="assert" as="element(sch:assert)" required="yes"/>
</xsl:template>
[ top ]
Template schxslt-api:successful-report
Documentation

Description

Create part of the validation stylesheet that reports a successful report

Parameters

report Schematron element of the successful report
Namespace https://doi.org/10.5281/zenodo.1495494#api
Parameters
QName Namespace Type Required
report No namespace element(sch:report) yes
Source
<xsl:template name="schxslt-api:successful-report">
  <xsl:param name="report" as="element(sch:report)" required="yes"/>
</xsl:template>
[ top ]