# # RELAX NG Compact Schema for DAWG Variable Bindings result # # This schema is experimental and may change at any time. # # Dave Beckett 2004-09-28 # # The RELAX NG Compact Syntax is described at # http://www.oasis-open.org/committees/relax-ng/compact-20020607.html # and RELAX NG at # http://relaxng.org/ # namespace local = "" namespace res = "http://www.w3.org/sw/2001/DataAccess/result2#" namespace xsi = "http://www.w3.org/2001/XMLSchema-instance" datatypes xsd =" http://www.w3.org/2001/XMLSchema#decimal" start = results xmllang = attribute xml:lang { text } #xmlbase = attribute xml:base { text } results = element res:results { xmllang?, schemaLoc?, result* } # Actually value is a whitespace-separated pair of namespace / XSD location schemaLoc = attribute xsi:schemaLocation { string } result = element res:result { xmllang?, var* } var = element res:var { xmllang?, nameAttr?, hrefAttr?, datatypeAttr?, literal } nameAttr = attribute name { string } hrefAttr = attribute href { URI-reference } datatypeAttr = attribute datatype { URI-reference } URI-reference = string # xsd:anyURI literal = string