2014-01-26 | Paul Boddie | raw annotate files changeset graph | Changed the origin of specific namespace defaults in XPath operations, initialising document-specific default namespaces in the document object instead of acquiring such defaults from the module namespace in the xpath method invocation. |
1 <?xml version="1.0"?> 2 <schema xmlns="http://purl.oclc.org/dsdl/schematron"> 3 <title>Test of Schematron validation</title> 4 <pattern> 5 <rule context="zoo"> 6 <assert test="cage[@id]">A zoo contains cages each with an id attribute</assert> 7 <assert test="cage[@description]">Each cage has a description attribute</assert> 8 </rule> 9 </pattern> 10 </schema>