Files
JIMRI/xml/schema/mfginfo.xsd
T
2026-06-17 14:00:51 +02:00

84 lines
3.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="schema2xhtml.xsl" type="text/xsl"?>
<!-- Schema for JMRI equipmment-manufacturer info -->
<!-- This schema is part of JMRI. Copyright 2009, 2010, 2015 -->
<!-- -->
<!-- JMRI is free software; you can redistribute it and/or modify it under -->
<!-- the terms of version 2 of the GNU General Public License as published -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy -->
<!-- of this license. -->
<!-- -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -->
<!-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -->
<!-- for more details. -->
<xs:schema xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"
xmlns:docbook="http://docbook.org/ns/docbook"
xmlns:jmri="http://jmri.org/xml/schema/JMRIschema"
xsi:schemaLocation="
http://jmri.org/xml/schema/JMRIschema http://jmri.org/xml/schema/JMRIschema.xsd
http://docbook.org/ns/docbook http://jmri.org/xml/schema/docbook/docbook.xsd
"
>
<xs:include schemaLocation="http://jmri.org/xml/schema/types/general.xsd"/>
<xs:include schemaLocation="http://jmri.org/xml/schema/types/panetype.xsd"/>
<xs:import namespace='http://docbook.org/ns/docbook' schemaLocation='http://jmri.org/xml/schema/docbook/docbook.xsd'/>
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd" />
<xs:import namespace="http://www.w3.org/2001/XInclude" schemaLocation="http://www.w3.org/2001/XInclude.xsd"/>
<xs:annotation>
<xs:documentation>
Defines the equipment-manufacturer information kept by JMRI.
</xs:documentation>
<xs:appinfo>
<jmri:usingclass configurexml="false">jmri.jmrit.decoderdefn.DecoderFile</jmri:usingclass>
</xs:appinfo>
</xs:annotation>
<xs:complexType name="VersionType">
<xs:attribute name="author" type="xs:string" />
<xs:attribute name="version" type="xs:string" />
<xs:attribute name="lastUpdated" type="xs:string" />
</xs:complexType>
<xs:element name="decoderIndex-config">
<xs:annotation><xs:documentation>
Defines the content of the JMRI decoderIndex.xml file.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="decoderIndex" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="mfgList" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="manufacturer" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="mfg" type="xs:string"/>
<xs:attribute name="mfgID" type="xs:int"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="nmraListDate" type="xs:string"/>
<xs:attribute name="updated" type="xs:string"/>
<xs:attribute name="lastadd" type="xs:int"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="version" type="xs:int"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>