From version 1.1 >
edited by Thomas Mortagne
on 2015/07/13 10:37
To version < 2.1 >
edited by Thomas Mortagne
on 2015/07/15 15:08
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,1 +1,145 @@
1 -{{todo/}}
1 +A XAR file is a ZIP file with extension ".xar" containing a "package.xml" descriptor file and in which each document (including document history, objects, attachments, etc.) is in a XML file.
2 +
3 += package.xml =
4 +
5 +{{todo}}Put some documentation for each element{{/todo}}
6 +
7 +{{code language="xml"}}
8 +<package>
9 + <infos>
10 + <name>Package Name</name>
11 + <description>A description of the package</description>
12 + <licence>Some License 2.0</licence>
13 + <author>XWiki.User</author>
14 + <extensionId>extension-id</extensionId>
15 + <version>1.0</version>
16 + <backupPack>false</backupPack>
17 + </infos>
18 + <files>
19 + <file language="" defaultAction="0">Space.Page</file>
20 + <file language="" defaultAction="0">Space.TranslatedPage</file>
21 + <file language="fr" defaultAction="0">Space.TranslatedPage</file>
22 + </files>
23 +</package>
24 +{{/code}}
25 +
26 += Document XML file =
27 +
28 +{{todo}}Put some documentation for each element{{/todo}}
29 +
30 +{{code}}
31 +<xwikidoc version="1.2" reference="Space.Page" locale="">
32 + <web>Space</web>
33 + <name>Page</name>
34 + <language/>
35 + <defaultLanguage>en</defaultLanguage>
36 + <translation>0</translation>
37 + <creator>XWiki.creator</creator>
38 + <creationDate>946684800000</creationDate>
39 + <versions>jrcsrevisions</versions>
40 + <parent>parent</parent>
41 + <author>XWiki.author</author>
42 + <customClass>customclass</customClass>
43 + <contentAuthor>XWiki.contentAuthor</contentAuthor>
44 + <date>946771200000</date>
45 + <contentUpdateDate>946857600000</contentUpdateDate>
46 + <version>1.1</version>
47 + <title>title</title>
48 + <defaultTemplate>defaultTemplate</defaultTemplate>
49 + <validationScript>validationScript</validationScript>
50 + <comment>comment</comment>
51 + <minorEdit>false</minorEdit>
52 + <syntaxId>syntax/1.0</syntaxId>
53 + <hidden>true</hidden>
54 + <content>content</content>
55 + <renderedcontent/>
56 + <attachment>
57 + <filename>attachment.txt</filename>
58 + <versions>jrcsrevisions</versions>
59 + <author>XWiki.author</author>
60 + <date>947030400000</date>
61 + <version>1.1</version>
62 + <comment>comment</comment>
63 + <content>AAECAwQFBgcICQ==</content>
64 + <filesize>10</filesize>
65 + </attachment>
66 + <class>
67 + <name>Space.Page</name>
68 + <customClass>customClass</customClass>
69 + <customMapping>customMapping</customMapping>
70 + <defaultViewSheet>defaultViewSheet</defaultViewSheet>
71 + <defaultEditSheet>defaultEditSheet</defaultEditSheet>
72 + <defaultWeb>defaultWeb</defaultWeb>
73 + <nameField>nameField</nameField>
74 + <validationScript>validationScript</validationScript>
75 + <prop1>
76 + <disabled>0</disabled>
77 + <name>prop1</name>
78 + <number>1</number>
79 + <numberType>long</numberType>
80 + <prettyName>Prop1</prettyName>
81 + <size>30</size>
82 + <unmodifiable>0</unmodifiable>
83 + <classType>com.xpn.xwiki.objects.classes.NumberClass</classType>
84 + </prop1>
85 + </class>
86 + <object>
87 + <name>Space.Page</name>
88 + <number>0</number>
89 + <className>Space.Page</className>
90 + <guid>e2167721-2a64-430c-9520-bac1c0ee68cb</guid>
91 + <class>
92 + <name>Space.Page</name>
93 + <customClass>customClass</customClass>
94 + <customMapping>customMapping</customMapping>
95 + <defaultViewSheet>defaultViewSheet</defaultViewSheet>
96 + <defaultEditSheet>defaultEditSheet</defaultEditSheet>
97 + <defaultWeb>defaultWeb</defaultWeb>
98 + <nameField>nameField</nameField>
99 + <validationScript>validationScript</validationScript>
100 + <prop1>
101 + <disabled>0</disabled>
102 + <name>prop1</name>
103 + <number>1</number>
104 + <numberType>long</numberType>
105 + <prettyName>Prop1</prettyName>
106 + <size>30</size>
107 + <unmodifiable>0</unmodifiable>
108 + <classType>com.xpn.xwiki.objects.classes.NumberClass</classType>
109 + </prop1>
110 + </class>
111 + <property>
112 + <prop1>1</prop1>
113 + </property>
114 + </object>
115 + <object>
116 + <name>Space.Page</name>
117 + <number>0</number>
118 + <className>otherclass</className>
119 + <guid>8eaeac52-e2f2-47b2-87e1-bc6909597b39</guid>
120 + <class>
121 + <name>otherclass</name>
122 + <customClass>customClass2</customClass>
123 + <customMapping>customMapping2</customMapping>
124 + <defaultViewSheet>defaultViewSheet2</defaultViewSheet>
125 + <defaultEditSheet>defaultEditSheet2</defaultEditSheet>
126 + <defaultWeb>defaultWeb2</defaultWeb>
127 + <nameField>nameField2</nameField>
128 + <validationScript>validationScript2</validationScript>
129 + <prop2>
130 + <disabled>0</disabled>
131 + <name>prop2</name>
132 + <number>1</number>
133 + <numberType>long</numberType>
134 + <prettyName>Prop2</prettyName>
135 + <size>30</size>
136 + <unmodifiable>0</unmodifiable>
137 + <classType>com.xpn.xwiki.objects.classes.NumberClass</classType>
138 + </prop2>
139 + </class>
140 + <property>
141 + <prop2>2</prop2>
142 + </property>
143 + </object>
144 +</xwikidoc>
145 +{{/code}}

Get Connected