Description of the Update Information

From Apache OpenOffice Wiki
< Documentation‎ | DevGuide
Revision as of 12:13, 1 November 2007 by Jsc (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search




The update information can be contained in a file which can be directly accessed through a URL or it can be generated on demand (HTTP get request). If it is a file then it could be named according to this pattern:

 <extension_file_name>.update.xml

For example, the update information file for the extension myextension.oxt is myextension.update.xml. The .oxt file extension is not used.

It follows the description of the XML structure of the update information data:

Element <description>

<description> is the root element of the update information XML document.

Attribute <description>
Attribute Description
xmlns The default namespace of element description and all children must be defined as

http://openoffice.org/extensions/update/2006

xmlns:dep The namespace for dependency information must be defined as

http://openoffice.org/extensions/description/2006

xmlns:xlink The xlink namespace must be defined as

http://www.w3.org/1999/xlink

other namespace definitions Other namespaces can be added as necessary.

Element <identifier>

  • XPath: /description/identifier
  • Parent element: <description>
  • Child elements: none
Attributes of <identifier>
Attribute Description
value Required. The extension identifier.

Element <version>

  • XPath: /description/version
  • Parent element: <description> (page 4)
  • Child elements: none
Attributes of <version>
Attribute Description
value Required. A textual representation of the extension version.

Element <update-download>

<code><update-download> must have one or more <src> children. The second, third, etc. <src> element are regarded as fallback, that is, the elements provide URLs to mirrors. The Extension Manager will try to download the extension by using the first URL and only uses the next URL if an error occurred, for example because the the connection was interrupted.

Element <dependencies>

Element <src>

  • XPath: /description/update-download/src
  • Parent element: <update-download>
  • Child elements: none
Attributes of <src><code>
Attribute Description
<code>xlink:href<code> Required. The value is a URL which refers to the extension

Element <code><dep:OpenOffice.org-minimal-version><code>

  • XPath: <code>/description/dependencies/dep:OpenOffice.org-minimal-version<code>
  • Parent element: <code><dependencies>
  • Child elements: none
Attributes of <dep:OpenOffice.org-minimal-version>
Attribute Description
xmlns:dep The namespace for dependency information (inherited from <description>) must be defined as

http://openoffice.org/extensions/description/2006

dep:name Required. The string “OpenOffice.org value” (where value is the value of the attribute value).
value Required. The required underlying OpenOffice.org version (“2.1”, “2.2”, etc.), starting with OpenOffice.org 2.1.
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools