﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="cardoTemplates"
					 xmlns:btn="http://schemas.webs.idu.de/cardo3/Button"
					 targetNamespace="http://schemas.webs.idu.de/cardo3/templates"
					 elementFormDefault="qualified"
					 xmlns="http://schemas.webs.idu.de/cardo3/templates"
					 xmlns:mstns="http://schemas.webs.idu.de/cardo3/templates"
					 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
					 xmlns:xslt="http://www.w3.org/1999/XSL/Transform"
					 xmlns:xs="http://www.w3.org/2001/XMLSchema"
					 >
	<xs:import namespace="http://schemas.webs.idu.de/cardo3/Button" schemaLocation="button.xsd" />
	<xs:element name="func">
		<xs:annotation>
			<xs:documentation>Kann nur innerhalb eines Templates verwendet werden.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="btn:ButtonFunction"></xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Tpl">
		<xs:complexType>
			<xs:choice minOccurs="1" maxOccurs="unbounded">
				<xs:element name="plain" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation></xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="if" minOccurs="0" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element ref="btn:ButtonComparision" minOccurs="1" maxOccurs="1"/>
							<xs:choice minOccurs="1" maxOccurs="2">
								<xs:element name="then" minOccurs="0" maxOccurs="1"></xs:element>
								<xs:element name="else" minOccurs="0" maxOccurs="1"></xs:element>
							</xs:choice>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element ref="func" minOccurs="0" maxOccurs="unbounded"></xs:element>
			</xs:choice>
		</xs:complexType>
	</xs:element>
</xs:schema>
