Wiki source code of XWiki XML Files Code Style
Last modified by Alexandru Brassat on 2026/01/13 18:28
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 spaces for indentation | ||
| 10 | * Set a mime type for attachments | ||
| 11 | * Must not include ##date##, ##creationDate##, ##contentUpdateDate## or attachment ##date## fields | ||
| 12 | * Avoid using H1 in the content in order to provide the best heading hierarchy (all page content is under the page title in this hierarchy). | ||
| 13 | |||
| 14 | 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"]]. |