Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<!-- definition of attributes -->
	<xs:attribute name="file">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:minLength value="1"></xs:minLength>
			</xs:restriction>
		</xs:simpleType>
	</xs:attribute>
	<xs:attribute name="name">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:minLength value="1"></xs:minLength>
			</xs:restriction>
		</xs:simpleType>
	</xs:attribute>
	<xs:attribute name="option">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:pattern value="true|false"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:attribute>
	<xs:attribute name="class" type="xs:string" />
	<xs:attribute name="regex" type="xs:string" />
	<xs:attribute name="url" type="xs:string" />
	<xs:attribute name="method" type="xs:string" />
	
	<xs:attribute name="info" type="xs:string" />
	<xs:attribute name="focus" type="xs:string" />
	<xs:attribute name="success" type="xs:string" />
	<xs:attribute name="error" type="xs:string" />
	
	<!-- definition of simple type elements -->
	<xs:element name="desc" type="xs:string"/>
	<xs:element name="js" type="xs:string"/>
	<xs:element name="cachescript" type="xs:string"/>
	<xs:element name="cleanCache" type="xs:string"/>
	<!-- definition of complex type elements -->
	<xs:element name="include">
		<xs:complexType>
			<xs:sequence>
			</xs:sequence>
			<xs:attribute ref="file" use="required" />
		</xs:complexType>
	</xs:element>
	<xs:element name="interceptor">
		<xs:complexType mixed="true">
			<xs:sequence>
			</xs:sequence>
			<xs:attribute ref="class" />
			<xs:attribute ref="regex" />
		</xs:complexType>
	</xs:element>
	<xs:element name="var">
		<xs:complexType mixed="true">
			<xs:attribute ref="name"></xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="v">
		<xs:complexType mixed="true">
			<xs:attribute ref="name" />
			<xs:attribute ref="info" />
			<xs:attribute ref="focus" />
			<xs:attribute ref="success" />
			<xs:attribute ref="error" />
			<xs:attribute ref="option" />
		</xs:complexType>
	</xs:element>
	<xs:element name="vars">
		<xs:complexType mixed="true">
			<xs:sequence>
				<xs:element ref="var" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="params">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="v" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="action">
		<xs:complexType mixed="true">
			<xs:sequence>
				<xs:element ref="desc" minOccurs="0"/> 
				<xs:element ref="vars" minOccurs="0" maxOccurs="1"/> 
				<xs:element ref="params" minOccurs="0" maxOccurs="1"/> 
				<xs:element ref="js" minOccurs="0" maxOccurs="1"/>
				 <xs:element ref="cachescript" minOccurs="0" maxOccurs="1"/> 
				 <xs:element ref="cleanCache" minOccurs="0" maxOccurs="1"/> 
			</xs:sequence>
			<xs:attribute ref="url" />
			<xs:attribute ref="class" />
			<xs:attribute ref="method" />
		</xs:complexType>
	</xs:element>
	<xs:element name="config">
	<!-- 	<xs:complexType mixed="true">
			<xs:sequence>
				<xs:element ref="include" minOccurs="0" maxOccurs="unbounded"/> 
				<xs:element ref="interceptor" minOccurs="0" maxOccurs="unbounded"/> 
				<xs:element ref="action" minOccurs="0" maxOccurs="unbounded"/> 
			</xs:sequence>
		</xs:complexType> -->
	</xs:element>

</xs:schema>
New to GrepCode? Check out our FAQ X