Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 This page gathers the documentation about the HTML variants syntaxes and their specificities.
6
7 = Annotated XHTML =
8
9 This syntax puts supplementary information in the rendered XHTML in order to be used by the CKEditor.
10
11 == Metadata Annotation ==
12
13 Metadata provided in the page structure (XDOM) are now output when using the Annotated XHTML renderer, using the following rules:
14
15 * it produces a container with the class ##xwiki-metadata-container##
16 * the container is a ##div## or a ##span## depending if the metadata is an inline context or not
17 * all metadata are provided in dedicated attribute named on the schema ##data-xwiki-key## where key is the metadata name.
18
19 Then the following XDOM:
20
21 {{code}}
22 beginDocument
23 beginMetaData [[syntax]=[xwiki/2.0]]
24 beginParagraph
25 onWord [Heading]
26 endParagraph
27 endMetaData [[syntax]=[xwiki/2.0]]
28 endDocument
29 {{/code}}
30
31 will be interpreted like this:
32
33 {{code}}
34 <div class="xwiki-metadata-container" data-xwiki-syntax="xwiki/2.0">
35 <span>Heading</span>
36 </div>
37 {{/code}}
38
39 == Macro Annotation ==
40
41 {{warning}} TODO {{/warning}}
42
43 = Annotated HTML5 =
44
45 {{warning}}TODO{{/warning}}
  • Powered by XWiki 11.10.2-node2. Hosted and managed by XWiki SAS

Get Connected