Schematron

http://www.schematron.com/iso/Schematron.html
functions from schematron: http://www.w3schools.com/xpath/xpath_functions.asp

integration in oxygen xml editor

works great… used vhitg arztbrief

integration in xml spy

Multipass Validation with XSD and Schematron
http://xml.sys-con.com/read/40656.htm
http://xml.sys-con.com/read/40674.htm

  1. iso_svrl.xsl auf schematron schema anwenden -> result xslt
  2. xslt auf xml_doku anwenden

parser

http://www.schematron.com/validators/iso_svrl.xsl

schematron schema

<?xml version="1.0" encoding="utf-8"?>
<iso:schema
xmlns="http://purl.oclc.org/dsdl/schematron"
xmlns:iso="http://purl.oclc.org/dsdl/schematron"
xmlns:dp="http://www.dpawson.co.uk/ns#"
queryBinding='xslt2'
schemaVersion='ISO19757-3'>
<iso:title>Test ISO schematron file. Introduction mode</iso:title>
<iso:ns prefix='dp' uri='http://www.dpawson.co.uk/ns#'/>
<!— Your constraints go here —>
<iso:pattern>
<iso:rule context="chapter">
<iso:assert
test="title">A chapter should have a title</iso:assert>
</iso:rule>
</iso:pattern>
</iso:schema>

xml_doku

<?xml version="1.0" encoding="utf-8" ?>
<doc>
<chapter id="c1">
<title>chapter title</title>
<para>Chapter content</para>
</chapter>

<chapter id="c2">
<para>Content</para>
</chapter>

<chapter id="c3">
<para>Chapter content</para>
</chapter>
</doc>

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License