diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2005-03-23 21:24:19 +0000 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2005-03-23 21:24:19 +0000 |
commit | a61b06aa1aee4743f50024b0695795fe9568d929 (patch) | |
tree | 58d97c630ef992299316e93f734509c4fc9b142c /menu | |
parent | ed47fd4b1c2bb86864c3ddd0439c39892e64858c (diff) | |
download | xdg-specs-a61b06aa1aee4743f50024b0695795fe9568d929.tar.xz |
Clearify DTD conformance and version compatibility
Diffstat (limited to 'menu')
-rw-r--r-- | menu/ChangeLog | 4 | ||||
-rw-r--r-- | menu/menu-spec.xml | 45 |
2 files changed, 33 insertions, 16 deletions
diff --git a/menu/ChangeLog b/menu/ChangeLog index c4ff5a5..0a19e5f 100644 --- a/menu/ChangeLog +++ b/menu/ChangeLog @@ -1,3 +1,7 @@ +2005-03-23 Waldo Bastian <bastian@kde.org> + + * menu-spec.xml: Clearify DTD conformance and version compatibility + 2005-03-22 Waldo Bastian <bastian@kde.org> * menu-spec.xml, menu.dtd: Added type attribute to <MergeFile> diff --git a/menu/menu-spec.xml b/menu/menu-spec.xml index b61063e..0da49e7 100644 --- a/menu/menu-spec.xml +++ b/menu/menu-spec.xml @@ -1,10 +1,13 @@ <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ + <!ENTITY version "0.92"> + <!ENTITY dtd-version "1.0"> ]> + <article id="index"> <articleinfo> <title>Desktop Menu Specification</title> - <releaseinfo>Version 0.91</releaseinfo> + <releaseinfo>Version &version;</releaseinfo> <date>15 March 2005</date> <authorgroup> <author> @@ -249,11 +252,20 @@ entries</ulink>: <varname>Categories</varname>, <sect1 id="menu-file-format"> <title>Format of menu files</title> <para> - Menu files must be well-formed XML files, conform to the menu file DTD, - and end in the extension ".menu". DTD conformance implies that - implementation-specific extensions to the file format are not allowed; - implementations are expected to stop processing if they encounter XML - elements or attributes that are not specified in this document. + Menu files must be well-formed XML files and end in the extension + ".menu". They should also conform to the menu file DTD which implies + that implementation-specific extensions to the file format are not + allowed. Implementations may stop processing if they encounter a menu + file which does not comply with the associated DTD. Note that the + associated DTD may differ in version from the one defined in this document. + </para> + <para> + When an implementation updates an existing menu file it may need to + update the identifier to a newer version of the DTD. Implementations + should never update the identifier of an existing menu file to an + older version. In order to remain compatible with newer versions, + implementations should ignore and preserve any XML elements, + attributes and attribute values that it does not know how to handle. </para> <sect2 id="menu-file-doctype"> <title>Document Type Declaration</title> @@ -270,18 +282,19 @@ entries</ulink>: <varname>Categories</varname>, </listitem> </varlistentry> <varlistentry> - <term>Public Identifier for 0.8</term> + <term>Public Identifier for &version;</term> <listitem> <para> - <literal>PUBLIC "-//freedesktop//DTD Menu 0.8//EN"</literal> + <literal>PUBLIC "-//freedesktop//DTD Menu &dtd-version;//EN"</literal> </para> </listitem> </varlistentry> <varlistentry> - <term>System Identifier for 0.8</term> + <term>System Identifier for &version;</term> <listitem> <para> - <literal>http://www.freedesktop.org/standards/menu-spec/menu-0.8.dtd</literal> + +<literal>http://www.freedesktop.org/standards/menu-spec/menu-&dtd-version;.dtd</literal> </para> </listitem> </varlistentry> @@ -290,8 +303,8 @@ entries</ulink>: <varname>Categories</varname>, Here is a sample document type declaration: <informalexample> <programlisting> - <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 0.8//EN" - "http://www.freedesktop.org/standards/menu-spec/menu-0.8.dtd"> + <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu &dtd-version;//EN" + "http://www.freedesktop.org/standards/menu-spec/menu-&dtd-version;.dtd"> </programlisting> </informalexample> @@ -1191,8 +1204,8 @@ entries</ulink>: <varname>Categories</varname>, Conceptually that is converted to the following <Menu>: <informalexample> <programlisting> - <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 0.8//EN" - "http://www.freedesktop.org/standards/menu-spec/menu-0.8.dtd"> + <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu &dtd-version;//EN" + "http://www.freedesktop.org/standards/menu-spec/menu-&dtd-version;.dtd"> <Menu> <Name>Applications</Name> @@ -1224,8 +1237,8 @@ entries</ulink>: <varname>Categories</varname>, <para> <informalexample> <programlisting> - <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 0.8//EN" - "http://www.freedesktop.org/standards/menu-spec/menu-0.8.dtd"> + <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu &dtd-version;//EN" + "http://www.freedesktop.org/standards/menu-spec/menu-&dtd-version;.dtd"> <Menu> <Name>Applications</Name> |