|
@@ -20,6 +20,9 @@
|
|
|
|
|
|
|
|
|
<xs:element name="KLISH" type="klish_t"/>
|
|
|
+ <xs:element name="PLUGIN" type="plugin_t"/>
|
|
|
+ <xs:element name="HOTKEY" type="hotkey_t"/>
|
|
|
+ <xs:element name="ACTION" type="action_t"/>
|
|
|
<xs:element name="ENTRY" type="entry_t"/>
|
|
|
<xs:element name="VIEW" type="view_t"/> <!-- Wrapper -->
|
|
|
<xs:element name="COMMAND" type="command_t"/> <!-- Wrapper -->
|
|
@@ -27,73 +30,68 @@
|
|
|
<xs:element name="COMPL" type="command_t"/> <!-- Wrapper -->
|
|
|
<xs:element name="HELP" type="command_t"/> <!-- Wrapper -->
|
|
|
<xs:element name="FILTER" type="command_t"/> <!-- Wrapper -->
|
|
|
- <xs:element name="STARTUP" type="startup_t"/>
|
|
|
- <xs:element name="ACTION" type="action_t"/>
|
|
|
- <xs:element name="OVERVIEW" type="overview_t"/>
|
|
|
- <xs:element name="DETAIL" type="detail_t"/>
|
|
|
<xs:element name="PTYPE" type="ptype_t"/> <!-- Wrapper -->
|
|
|
<xs:element name="PARAM" type="param_t"/> <!-- Wrapper -->
|
|
|
<xs:element name="SWITCH" type="param_t"/> <!-- Wrapper -->
|
|
|
<xs:element name="SUBCOMMAND" type="param_t"/> <!-- Wrapper -->
|
|
|
<xs:element name="MULTI" type="param_t"/> <!-- Wrapper -->
|
|
|
<xs:element name="NSPACE" type="nspace_t"/> <!-- Wrapper -->
|
|
|
- <xs:element name="VAR" type="var_t"/>
|
|
|
- <xs:element name="WATCHDOG" type="wdog_t"/>
|
|
|
- <xs:element name="HOTKEY" type="hotkey_t"/>
|
|
|
- <xs:element name="PLUGIN" type="plugin_t"/>
|
|
|
- <xs:element name="HOOK" type="hook_t"/>
|
|
|
|
|
|
|
|
|
+<!--
|
|
|
+*******************************************************
|
|
|
+* <KLISH>
|
|
|
+********************************************************
|
|
|
+-->
|
|
|
+ <xs:group name="klish_group_t">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:element ref="PLUGIN" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
+ <xs:element ref="HOTKEY" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
+ <xs:element ref="ENTRY" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
+ <xs:element ref="PTYPE" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
+ <xs:element ref="VIEW" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:group>
|
|
|
+
|
|
|
<xs:complexType name="klish_t">
|
|
|
<xs:annotation>
|
|
|
<xs:documentation xml:lang="en">
|
|
|
- 'KLISH' is the top level container. Any object (command,
|
|
|
- type, var) which are defined within this tag are global
|
|
|
- in scope i.e. it is visible from all 'VIEW's.
|
|
|
+ 'KLISH' is the top level container.
|
|
|
</xs:documentation>
|
|
|
<xs:documentation xml:lang="ru">
|
|
|
Тег 'KLISH' - контейнер верхнего уровня. Все остальные
|
|
|
- теги должны быть вложенными. Любой объект (команда,
|
|
|
- тип, переменная т.д.), заданный внутри этого тега,
|
|
|
- считается глобальным, т.е. видимым их любых 'VIEW".
|
|
|
+ теги должны быть вложенными.
|
|
|
</xs:documentation>
|
|
|
</xs:annotation>
|
|
|
+ <!-- Any order of tags and any number -->
|
|
|
<xs:sequence>
|
|
|
- <xs:element ref="PLUGIN" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
- <xs:element ref="HOOK" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
- <xs:element ref="HOTKEY" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
- <xs:element ref="WATCHDOG" minOccurs="0" maxOccurs="1"/>
|
|
|
- <xs:element ref="PTYPE" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
- <xs:element ref="OVERVIEW" minOccurs="0"/>
|
|
|
- <xs:element ref="STARTUP" minOccurs="0"/>
|
|
|
- <xs:element ref="VAR" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
- <xs:element ref="VIEW" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
- <xs:element ref="ENTRY" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
+ <xs:group ref="klish_group_t" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
</xs:sequence>
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
|
<!--
|
|
|
*******************************************************
|
|
|
-* <PTYPE> is used to define the syntax for a parameter type.
|
|
|
-*
|
|
|
-* name="<string>" - A textual name for this type. This name can be used to
|
|
|
-* reference this type within a PARAM's ptype attribute.
|
|
|
-*
|
|
|
-* help="<string>" - Help string.
|
|
|
+* <PLUGIN> is used to dynamically load plugins.
|
|
|
+* Plugin contains symbols that can be used for ACTIONs.
|
|
|
*
|
|
|
+* name - Plugin name. If "file" attribute is not specified then plugin's
|
|
|
+* filename is autogenerated as "klish-plugin-<name>.so".
|
|
|
+* [id] - Internal plugin name. Can be the same as "name".
|
|
|
+* [file] - File name if standard autogenerated filename (using "name" field)
|
|
|
+* is not appropriate.
|
|
|
********************************************************
|
|
|
-->
|
|
|
- <xs:complexType name="ptype_t">
|
|
|
- <xs:sequence>
|
|
|
- <xs:element ref="ACTION" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
- <xs:element ref="ENTRY" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
- </xs:sequence>
|
|
|
- <xs:attribute name="name" type="xs:string" use="required"/>
|
|
|
- <xs:attribute name="help" type="xs:string" use="required"/>
|
|
|
+ <xs:complexType name="plugin_t">
|
|
|
+ <xs:simpleContent>
|
|
|
+ <xs:extension base="xs:string">
|
|
|
+ <xs:attribute name="name" type="xs:string" use="required"/>
|
|
|
+ <xs:attribute name="id" type="xs:string" use="optional"/>
|
|
|
+ <xs:attribute name="file" type="xs:string" use="optional"/>
|
|
|
+ </xs:extension>
|
|
|
+ </xs:simpleContent>
|
|
|
</xs:complexType>
|
|
|
|
|
|
-
|
|
|
<!--
|
|
|
*******************************************************
|
|
|
* <ENTRY> This tag is used to define wide class of elements.
|
|
@@ -203,6 +201,27 @@
|
|
|
<xs:attribute name="filter" type="xs:boolean" use="optional" default="false"/>
|
|
|
</xs:complexType>
|
|
|
|
|
|
+<!--
|
|
|
+*******************************************************
|
|
|
+* <PTYPE> is used to define the syntax for a parameter type.
|
|
|
+*
|
|
|
+* name="<string>" - A textual name for this type. This name can be used to
|
|
|
+* reference this type within a PARAM's ptype attribute.
|
|
|
+*
|
|
|
+* help="<string>" - Help string.
|
|
|
+*
|
|
|
+********************************************************
|
|
|
+-->
|
|
|
+ <xs:complexType name="ptype_t">
|
|
|
+ <xs:sequence>
|
|
|
+ <xs:element ref="ACTION" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
+ <xs:element ref="ENTRY" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
+ </xs:sequence>
|
|
|
+ <xs:attribute name="name" type="xs:string" use="required"/>
|
|
|
+ <xs:attribute name="help" type="xs:string" use="required"/>
|
|
|
+ </xs:complexType>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<!--
|
|
|
*******************************************************
|
|
@@ -262,7 +281,6 @@
|
|
|
-->
|
|
|
<xs:complexType name="startup_t">
|
|
|
<xs:sequence>
|
|
|
- <xs:element ref="DETAIL" minOccurs="0"/>
|
|
|
<xs:element ref="ACTION" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
</xs:sequence>
|
|
|
<xs:attribute name="view" type="xs:string" use="required"/>
|
|
@@ -458,7 +476,6 @@
|
|
|
-->
|
|
|
<xs:complexType name="command_t">
|
|
|
<xs:sequence>
|
|
|
- <xs:element ref="DETAIL" minOccurs="0"/>
|
|
|
<!-- Any order of PARAM tags and any number -->
|
|
|
<xs:group ref="param_group_t" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
<xs:element ref="ACTION" minOccurs="0" maxOccurs="unbounded"/>
|
|
@@ -597,27 +614,6 @@
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
|
-<!--
|
|
|
-*******************************************************
|
|
|
-* <PLUGIN> is used to dynamically load plugins.
|
|
|
-* Plugin contains symbols that can be used for ACTIONs.
|
|
|
-*
|
|
|
-* name - Plugin name. If "file" attribute is not specified then plugin's
|
|
|
-* filename is autogenerated as "klish-plugin-<name>.so".
|
|
|
-* [id] - Internal plugin name. Can be the same as "name".
|
|
|
-* [file] - File name if standard autogenerated filename (using "name" field)
|
|
|
-* is not appropriate.
|
|
|
-********************************************************
|
|
|
--->
|
|
|
- <xs:complexType name="plugin_t">
|
|
|
- <xs:simpleContent>
|
|
|
- <xs:extension base="xs:string">
|
|
|
- <xs:attribute name="name" type="xs:string" use="required"/>
|
|
|
- <xs:attribute name="id" type="xs:string" use="optional"/>
|
|
|
- <xs:attribute name="file" type="xs:string" use="optional"/>
|
|
|
- </xs:extension>
|
|
|
- </xs:simpleContent>
|
|
|
- </xs:complexType>
|
|
|
|
|
|
|
|
|
<!--
|