# CHART OOL Limits definition files

namespace xsi = "http://www.w3.org/2001/XMLSchema-instance"

grammar {

	start =
		element limits {
			attribute xsi:noNamespaceSchemaLocation { "http://chart/schemas/limits.xsd" } ? &
			element yellow { limit + } * &
			element red { limit + } *
		}

	limit =
		element order { xsd:integer { minInclusive="1" } } &
		element low { xsd:float ? } &
		element high { xsd:float ? } &
		element applicability {
			element parameter { text } &
			element value { xsd:float }
		} ?
}

Download as raw Relax-NG Compact here or as raw XSD here