2008-09-12 | Paul Boddie | raw annotate files changeset graph | Fixed the add_or_replace_element method to only replace elements having the same name. Added more properties, especially around parameters. Renamed value to valueElement and data to dataElement in various cases in order to preserve the underlying properties. |
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>