Quality control framework/XML Schema
Jump to navigation
Jump to search
Contents
Statistics 0.1 Schema
RELAX NG Schema (.rng)
<?xml version="1.0" encoding="UTF-8"?> <element name="statistics" ns="http://apertium.org/xml/statistics" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <attribute name="type"> <data type="string"/> </attribute> <attribute name="version"> <data type="float"/> </attribute> <element name="regressions"> <oneOrMore> <element name="regression"> <attribute name="timestamp"> <data type="dateTime"/> </attribute> <element name="title"> <data type="string"/> </element> <element name="revision"> <data type="positiveInteger"/> </element> <element name="passes"> <data type="positiveInteger"/> </element> <element name="fails"> <data type="positiveInteger"/> </element> <element name="total"> <data type="positiveInteger"/> </element> </element> </oneOrMore> </element> </element>
RELAX NG Compact Schema (.rnc)
default namespace = "http://apertium.org/xml/statistics" element statistics { attribute type { xsd:string }, attribute version { xsd:float }, element regressions { element regression { attribute timestamp { xsd:dateTime }, element title { xsd:string }, element revision { xsd:positiveInteger }, element passes { xsd:positiveInteger }, element fails { xsd:positiveInteger }, element total { xsd:positiveInteger } }+ } }
Example file
<?xml version='1.0' encoding='utf-8'?> <statistics type="apertium" version="1.0"> <regressions> <regression timestamp="2011-05-24T23:48:58.393974"> <title>Breton and French/Regression tests</title> <revision>23172</revision> <passes>380</passes> <fails>76</fails> <total>456</total> </regression> </regressions> </statistics>