New schema as discussed on the firmware-dev ml, cf this thread:
[pandora-libraries.git] / docs / examples / PXML.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- This is a sample PXML.xml file making use of many different things.-->
3 <PXML xmlns="http://openpandora.org/namespaces/PXML">
4
5   <package id="some_unique_package_id">
6
7     <version major="1" minor="17" release="3" build="4" type="beta"/>
8
9     <author name="the packagers name" website="http://www.openpandora.org"/>
10
11     <titles>
12       <title lang="en_US">Program Title</title>
13       <title lang="de_DE">German Program Title</title>
14     </titles>
15
16     <descriptions>
17       <description lang="en_US">This is the English Description of the file.</description>
18       <description lang="de_DE">This would be the German description.</description>
19     </descriptions>
20
21     <icon src="my-icon.png"/>
22
23   </package>
24
25
26   <application id="youruniqueID">
27     <exec background="true" startdir="/usr/share/icons/" standalone="true" command="program.exe"/>
28
29     <version major="1" minor="1" release="1" build="2" type="release"/> <!--This program's version-->
30
31     <osversion major="1" minor="0" release="0" build="0"/> <!--The minimum OS version required-->
32
33     <author name="EvilDragon" website="http://www.openpandora.org"/> <!--Optional email and website, name required-->
34
35     <titles>
36       <title lang="en_US">Program Title</title>
37       <title lang="de_DE">German Program Title</title>
38     </titles>
39     <title lang="en_US">Program Title</title> <!--Extra <title> block for compatibility with OS versions before HF6-->
40
41     <descriptions>
42       <description lang="en_US">This is the English Description of the file.</description>
43       <description lang="de_DE">This would be the German description.</description>
44     </descriptions>
45     <description lang="en_US">This is the English Description of the file.</description> <!--Extra <description> block for compatibility with OS versions before HF6-->
46
47     <icon src="my-icon.png"/>
48
49     <licenses>
50       <license name="GPLv2+" url="http://www.gnu.org/licenses/gpl-2.0.html" sourcecodeurl="http://openpandora.org/sources/package.tar.bz2"/><!--Optional url and sourcecodeurl, mandatory name-->
51     </licenses>
52
53     <previewpics>
54       <pic src="./preview/pic1.jpg"/>
55       <pic src="./preview/pic2.jpg"/>
56     </previewpics>
57
58     <info name="Readme" type="text/html" src="readme.html"/>
59
60     <!--the categories has to conform to the FDO categories, those will be enforced by the schema and libpnd!-->
61     <categories>
62       <category name="Utility"><!--Main category: a category like "Game", "Graphics", "Network", etc-->
63         <subcategory name="FileTools"/><!--Subcategory 1: a subcategory, like "BoardGame", "StrategyGame", "ActionGame"-->
64         <subcategory name="Archiving"/><!--Subcategory2: another subcategory, but make sure to match the main category, too!-->
65       </category>
66           <category name="System"><!--Alternative category-->
67         <subcategory name="Filesystem"/><!--Alternative Subcategory 1-->
68       </category>
69     </categories>
70
71     <associations>
72       <!--File associations, with a short description, an extension, and start params.-->
73       <association name="View Word File" filetype="application/msword" exec="-f %s -t doc"/>
74     </associations>
75
76     <clockspeed frequency="600"/><!--Frequency in Hz-->
77
78   </application>
79
80 </PXML>