<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://www.robertbienert.de/dokumente/web/sitemap/"
	elementFormDefault="qualified"
	xmlns="http://www.robertbienert.de/dokumente/web/sitemap/">

<xsd:annotation><xsd:documentation xml:lang="de">
Dieses Schema definiert den XML-Dokumenttyp »directory«, wie er für
meine Sitemap verwendet wird. Das Toplevel-Element heißt auch dem
entsprechened „directory“. Für die Validierung einer Sitemap
ist es außerdem notwendig, diesem Element den Namensraum
„http://www.robertbienert.de/dokumente/web/sitemap/“ zuzuweisen.

Copyright (C) 2006 Robert Bienert,
http://www.robertbienert.de/dokumente/web/sitemap/

Dieser Inhalt steht unter der Creative Commons »Namensnennung 2.0
Deutschland« Lizenz,
siehe http://creativecommons.org/licenses/by/2.0/de/
</xsd:documentation></xsd:annotation>

<xsd:element name="directory" type="SitemapDirectory" />

<xsd:complexType name="SitemapDirectory">
	<xsd:annotation><xsd:documentation xml:lang="de">
	Dieser „komplexe Datentyp“ definiert uns ein »directory«:
	Es besteht aus mindestens einem »item« und kann optional eine
	Pfad-Angabe besitzen.
	</xsd:documentation></xsd:annotation>

	<xsd:sequence>
		<xsd:element name="item" type="DirectoryItem" minOccurs="1" maxOccurs="unbounded" />
	</xsd:sequence>

	<xsd:attribute name="path" type="xsd:anyURI" use="optional" />
	<xsd:attribute name="subpath" type="xsd:anyURI" use="optional" />
</xsd:complexType>

<xsd:complexType name="DirectoryItem">
	<xsd:annotation><xsd:documentation xml:lang="de">
	Dieser Datentyp definiert einen Verzeichniseintrag namens
	»item«, der maximal drei Attribute besitzt:
	• path oder subpath für die Pfadangabe
	• title ist der (erforderliche) Titel eines Eintrags
	• desc ist eine optionale Beschreibung
	</xsd:documentation></xsd:annotation>
	<xsd:sequence>
		<xsd:element name="directory" type="SitemapDirectory" minOccurs="0" />
	</xsd:sequence>

	<xsd:attribute name="path" type="xsd:anyURI" use="optional" />
	<xsd:attribute name="subpath" type="xsd:anyURI" use="optional" />
	<xsd:attribute name="title" type="xsd:string" use="required" />
	<xsd:attribute name="desc" type="xsd:string" use="optional" />
</xsd:complexType>

</xsd:schema>
