namespace open = "http://a9.com/-/spec/opensearch/1.1/" # Open Search start = osTotalResults | osStartIndex | osItemsPerPage | osQuery osTotalResults = element open:totalResults { xsd:int } osStartIndex = element open:startIndex { xsd:int } osItemsPerPage = element open:itemsPerPage { xsd:int } osQuery = element open:Query { attribute role { roleValue }, attribute title { xsd:string { maxLength = "256" } }?, attribute totalResults { xsd:int }?, attribute searchTerms { text }?, attribute count { text }?, attribute startIndex { text }?, attribute startPage { text }?, attribute language { text }?, attribute inputEncoding { text }?, attribute outputEncoding { text }? } roleValue = "request" | "example" | "related" | "correction" | "subset" | "superset"