<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sonar.codehaus.org/schema/views"
	xmlns:tns="http://sonar.codehaus.org/schema/views" elementFormDefault="qualified">

	<element name="views">
		<complexType>
			<sequence>
				<element name="vw" type="tns:vwType" maxOccurs="unbounded"
					minOccurs="0" />
			</sequence>
		</complexType>
	</element>

	<complexType name="vwType">
		<sequence>
			<element name="name" maxOccurs="1" minOccurs="1">
				<simpleType>
					<restriction base="string">
						<maxLength value="256" />
					</restriction>
				</simpleType>
			</element>
			<element name="desc" maxOccurs="1" minOccurs="1">
				<simpleType>
					<restriction base="string">
						<maxLength value="256" />
					</restriction>
				</simpleType>
			</element>
			<element name="p" maxOccurs="unbounded" minOccurs="0">
				<simpleType>
					<restriction base="string">
						<maxLength value="400" />
					</restriction>
				</simpleType>
			</element>
		</sequence>
		<attribute name="key" use="required">
			<simpleType>
				<restriction base="ID">
					<maxLength value="400" />
				</restriction>
			</simpleType>
		</attribute>
		<attribute name="def" type="boolean" use="required" />
		<attribute name="root" type="IDREF" />
		<attribute name="parent" type="IDREF" />
	</complexType>

</schema>

