Files
JIMRI/xml/schema/auxiliary-configuration/perform-2-9-6.xsd
T
2026-06-17 14:00:51 +02:00

91 lines
4.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="schema2xhtml.xsl" type="text/xsl"?>
<!-- This schema is part of JMRI. Copyright 2009, 2010 -->
<!-- -->
<!-- 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. -->
<!-- Not in Venetian blind form -->
<!-- 'operation' element not complete -->
<!-- Need annotations -->
<!-- Attributes need to get types right esp. for enumerated -->
<!-- Attributes need REQUIRED/IMPLIED -->
<!--
Top Level Elements not brought over from DTD
securityelements - thought to be obsolete
aspectgenerator - thought to be obsolete
application - obsolete container element for gui/connection/programmer
preferences - never fully defined in DTD
signals - obsolete, EMPTY, never used
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xi="http://www.w3.org/2001/XInclude"
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:import namespace='http://docbook.org/ns/docbook' schemaLocation='http://jmri.org/xml/schema/docbook/docbook.xsd'/>
<xs:annotation>
<xs:documentation>
This is the schema representing panel files, including
both the panels themselves and configuration information.
<p/>
This version of the schema is for files created by JMRI
version 2.9.6 and later.
It is the current development version.
</xs:documentation>
<xs:appinfo>
<jmri:usingclass configurexml="yes" /> <!-- too many to list -->
</xs:appinfo>
</xs:annotation>
<xs:complexType name="PerformType">
<xs:annotation>
<xs:documentation>
Defines things to do when the file is loaded (usually when the app starts up, as this is in config file)
</xs:documentation>
<xs:appinfo>
<jmri:usingclass configurexml="yes">apps.configurexml.PerformActionModelXml</jmri:usingclass>
<jmri:usingclass configurexml="yes">apps.configurexml.CreateButtonModelXml</jmri:usingclass>
<jmri:usingclass configurexml="yes">apps.configurexml.PerformFileModelXml</jmri:usingclass>
<jmri:usingclass configurexml="no">apps.StartupActionsManager</jmri:usingclass>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:attribute name="class" type="classType" use="required"/>
<xs:attribute name="type" default="Action">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="Action"/>
<xs:enumeration value="ScriptFile"/>
<xs:enumeration value="XmlFile"/>
<xs:enumeration value="Button"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
</xs:complexType>
</xs:schema>