Wiki source code of XWiki XML Files Code Style
Last modified by Eduard Moraru on 2018/09/03 17:00
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | XWiki XML Files should follow these rules: | ||
2 | |||
3 | * Have a proper License header | ||
4 | * Use ##xwiki:XWiki.Admin## as the ##author##, ##contentauthor## and ##creator## | ||
5 | * Use ##1.1## as the ##version## | ||
6 | * Use ##false## for ##minoredit## | ||
7 | * Have an empty ##defaultLanguage## entry | ||
8 | * Have an empty ##comment## entry | ||
9 | * Indent the XML using 2 characters for indentation | ||
10 | * Set a mime type for attachments | ||
11 | * Must not include ##date##, ##creationDate##, ##contentUpdateDate## or attachment ##date## fields | ||
12 | |||
13 | This cleanup can be done automatically, by using the "mvn xar:format" Maven command, see [[Generating a XAR for your build>>Community.Building||anchor="HGeneratingaXAR"]]. |