XPath and Schematron for TEI Customization
Syd Bauman
2016-06-15
ISO Schematron
XML representations
XPath …
Basic filepath-like path expressions
Try it!
filepath-like expression hides directionality
Walking the Tree
tree (with
self::
)
descendants (
child::
and
descendant::
)
ancestors (
parent::
and
ancestor::
)
preceding (
preceding::
and
preceding-sibling::
)
following (
following::
and
following-sibling::
)
axes
:-)
XPath axes: me, my descendants, and my ancestors
XPath axes: following, preceding, and attributes
Don’t want them all?
Predicates
Sample document instance
Simplified XML tree
XPath view
Simple Schematron: assert
Simple Schematron: report
Schematron in ODD
Sample
XPath and Schematron for TEI Customization
© 2010 Syd Bauman and the Women Writers Project This TEI-encoded XML file is available under the terms of the Creative Commons Attribution-ShareAlike 3.0 (Unported) license.