1 <?xml version="1.0" encoding="utf-8"?>
3 <!-- ============================================================
4 $Header: /home/amb/routino/xml/RCS/routino-tagging.xsd,v 1.1 2010/05/18 18:35:01 amb Exp $
6 An XML Schema Definition for the Routino tagging rules XML format
8 Part of the Routino routing software.
9 ============================================================
10 This file Copyright 2010 Andrew M. Bishop
12 This program is free software: you can redistribute it and/or modify
13 it under the terms of the GNU Affero General Public License as published by
14 the Free Software Foundation, either version 3 of the License, or
15 (at your option) any later version.
16 ============================================================ -->
18 <xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
20 <!-- The top level Routino tagging rules -->
22 <xsd:element name="routino-tagging" type="RoutinoTaggingType"/>
24 <xsd:complexType name="RoutinoTaggingType">
26 <xsd:element name="node" type="NodeType"/>
27 <xsd:element name="way" type="WayType"/>
28 <xsd:element name="relation" type="RelationType"/>
32 <!-- The second level node, way and relation tagging rules -->
34 <xsd:complexType name="NodeType">
37 <xsd:complexType name="WayType">
39 <xsd:element name="if" type="IfType" minOccurs="0" maxOccurs="unbounded"/>
43 <xsd:complexType name="RelationType">
46 <!-- The if tag and its contents -->
48 <xsd:complexType name="IfType">
50 <xsd:element name="set" type="SetType" minOccurs="0" maxOccurs="unbounded"/>
51 <xsd:element name="output" type="OutputType" minOccurs="0" maxOccurs="unbounded"/>
53 <xsd:attribute name="k" type="xsd:string"/>
54 <xsd:attribute name="v" type="xsd:string"/>
57 <xsd:complexType name="SetType">
58 <xsd:attribute name="k" type="xsd:string"/>
59 <xsd:attribute name="v" type="xsd:string"/>
62 <xsd:complexType name="OutputType">
63 <xsd:attribute name="k" type="xsd:string"/>
64 <xsd:attribute name="v" type="xsd:string"/>