Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
5 {{info}}
6 **Mission**: Transform some textual input content in a given syntax into an output content in another syntax.
7 {{/info}}
9 = General Architecture =
11 image:rendering-architecture-simple.png
13 * **{{scm project="xwiki-rendering" path="xwiki-rendering-api/src/main/java/org/xwiki/rendering/block/"}}XDOM{{/scm}}**: A Java object representing the input as a tree made of Java {{scm project="xwiki-rendering" path="xwiki-rendering-api/src/main/java/org/xwiki/rendering/block/"}}Block objects{{/scm}} (a.k. as an AST).
14 * **{{scm project="xwiki-rendering" path="xwiki-rendering-api/src/main/java/org/xwiki/rendering/parser/"}}Parser{{/scm}}**: Parses some textual input in a given syntax and generate a XDOM object.
15 * **{{scm project="xwiki-rendering" path="xwiki-rendering-api/src/main/java/org/xwiki/rendering/renderer/"}}Renderer{{/scm}}**: Takes a XDOM as input and generates some output.
16 * **{{scm project="xwiki-rendering" path="xwiki-rendering-api/src/main/java/org/xwiki/rendering/transformation/"}}Transformation{{/scm}}**: Takes some XDOM and modifies it to generate a modified XDOM.
18 See [[Advanced Architecture>>Main.Architecture]] for more details.
20 = Features =
22 * Parsers for [[multiple syntaxes>>||anchor="HSupportedSyntaxes"]].
23 * Offers both a streaming API (useful for rendering large content) and an XDOM-based API (generates an intermediary AST on which transformations - such as macros - can be applied)
24 * Round trip between [[XWiki Syntax 2.0>>Main.XWikiSyntax]] and XHTML. This features allows for example to have a strong WYSIWYG editor that doesn't loose information when editing wiki pages. Another use case is the ability to import Office documents in HTML and transform them into XWiki Syntax 2.0 without loosing information.
25 * Ability to get the result of the parsing as an AST tree (called XDOM) which can then be used to get access to all structured elements from the flat text input.
26 * Ability to transform the XDOM through a Transformation (list of of [[available Transformations>>Main.Transformations]]).
27 * Macro support (list of [[available Macros>>Main.Macros]]). Note that Macro support is implemented as a Transformation (see [[Architecture>>Main.Architecture]]).
28 * Supports wiki syntax in link labels even for input syntaxes that don't support it.
29 * Automatic conversion from any of the supported input syntaxes to XWiki Syntax 2.0 or to XHTML.
30 * Strong Parsers:
31 ** Based on Grammars (JavaCC)
32 ** Fix user mistakes (not closed or overlapping markup elements...).
33 ** Each block element (paragraph, table cells, list items, headers...) can spread over multiply lines.
34 ** Support for groups, i.e. ability to include content inside other content (equivalent of DIV in HTML).
35 ** All elements can have parameters associated to them.
36 * Been used in [[XWiki Enteprise>>enterprise:Main.WebHome]] for several years and is stable and performant.
37 * Can be used standalone since it's independent of other XWiki projects such as XWiki Platform, etc.
39 The XWiki Rendering modules are all released under the [[LGPL license>>xwiki:Main.License]].
41 = Supported Syntaxes =
43 ; Input Syntax
44 : It means there's a Parser that can be used to parse this syntax into a XDOM object
46 ; Output Syntax
47 : It means there's a Renderer that can be used to render an XDOM into this syntax
49 |=Name|=Id|=Input Syntax?|=Output Syntax?|=Extension?|=Description
50 |[[XWiki 2.0>>XWiki.XWikiSyntax||queryString="syntax=2.0"]]|##xwiki/2.0##|(/)|(/)|(x)|
51 |[[XWiki 2.1>>XWiki.XWikiSyntax||queryString="syntax=2.1"]]|##xwiki/2.1##|(/)|(/)|(x)|Experimental at this stage which means it can still change before it's released as final.
52 |XHTML 1.0|##xhtml/1.0##|(/)|(/)|(x)|
53 |HTML 5.0|##html/5.0##|(x)|(/)|(x)|Available in XWiki Rendering 6.4+ only.
54 |HTML 4.01|##html/4.01##|(/)|(/)|(x)|
55 |Plain Text|##plain/1.0##|(/)|(/)|(x)|Print all than can be rendered in a simple notepad-like editor such as words, special symbols and spaces. It also generates link labels for links that have no labels and print the generated labels. Last it provides very basic formatting (e.g. separates paragraphs with new lines and separates list items with new lines).
56 |[[DocBook 4.4>>]]|##docbook/4.4##|(/)|(/)|(x)|Available in XWiki Rendering 3.2+ only.
57 |[[XDOM XML Current>>Syntax.XDOMXML]]|##xdom+xml/curent##|(/)|(/)|(x)|Available in XWiki Rendering 3.3+ only.
58 |[[XDOM XML 1.0>>Syntax.XDOMXML]]|##xdom+xml/1.0##|(/)|(/)|(x)|Available in XWiki Rendering 3.3+ only.
59 |[[XWiki 1.0>>XWiki.XWikiSyntax||queryString="syntax=1.0"]]|##xwiki/1.0##|(/)|(x)|(/)|
60 |[[Confluence 1.0>>extensions:Extension.Confluence.Syntax 10]]|##confluence/1.0##|(/)|(x)|(/)|Removed in 9.0. Should use 1.1 instead. See [[Confluence>>extensions:Extension.Confluence||anchor="H9.0"]].
61 |[[Confluence 1.1>>extensions:Extension.Confluence.Syntax 11]]|##confluence/1.1##|(/)|(x)|(/)|Moved to contrib in 9.0. See [[Confluence>>extensions:Extension.Confluence||anchor="H9.0"]].
62 |[[Confluence XHTML>>extensions:Extension.Confluence.Syntax XHTML]]|##confluence+xhtml/1.0##|(/)|(x)|(/)|Moved to contrib in 9.0. See [[Confluence>>extensions:Extension.Confluence||anchor="H9.0"]].
63 |JSPWiki|##jspwiki/1.0##|(/)|(x)|(x)|
64 |TWiki|##twiki/1.0##|(/)|(x)|(x)|
65 |LaTeX|tex/1.0|(x)|(/)|(x)|Removed in 10.2 and replaced by ##latex/1.0## (see below)
66 |[[MediaWiki 1.0>>MediaWikiSyntax]]|##mediawiki/1.0##|(/)|(x)|(/)|Deprecated and moved to [[the attic>>]] in 8.2RC1.
67 |[[MediaWiki 1.6>>doc:extensions:Extension.MediaWiki.MediaWiki Syntax.WebHome]]|##mediawiki/1.6##|(/)|(x)|(/)|Comes with the new [[MediaWiki contrib project>>doc:extensions:Extension.MediaWiki.WebHome]].
68 |Creole 1.0|##creole/1.0##|(/)|(x)|(x)|
69 |[[Markdown 1.0>>extensions:Extension.Markdown Syntax 1\.0]]|##markdown/1.0##|(/)|(/)|(/)|Extracted out of XWiki starting 8.2M1. Output syntax supported starting with version 8.2 of the Markdown module. Deprecated and remove in version 8.6 of the Markdown module.
70 |[[Markdown 1.1>>extensions:Extension.Markdown Syntax 1\.1]]|##markdown/1.1##|(/)|(/)|(/)|Extracted out of XWiki starting 8.2M1. Adds syntax for macros, superscript and subscript support over Markdown 1.0 syntax. Output syntax supported starting with version 8.2 of the Markdown module. Deprecated and remove in version 8.6 of the Markdown module.
71 |[[Markdown 1.2>>extensions:Extension.Markdown Syntax 1\.2]]|##markdown/1.2##|(/)|(/)|(/)|Added in version 8.4 of the Markdown module.
72 |[[APT>>]]|##apt/1.0##|(/)|(/)|(x)|Available in XWiki Rendering 4.3+ only.
73 |[[DokuWiki 1.0>>doc:extensions:Extension.DokuWiki.DokuWiki Syntax Parser.WebHome]]|##dokuwiki/1.0##|(/)|(x)|(/)|Comes with the new [[DokuWiki contrib project>>doc:extensions:Extension.DokuWiki.WebHome]]
74 |[[LaTeX 1.0>>doc:extensions:Extension.LaTeX.Syntax 1\.0.WebHome]]|latex/1.0|(x)|(/)|(/)|Added as a [[Contrib Extension>>doc:extensions:Extension.LaTeX.WebHome]].
75 |[[Annotated XHTML>>doc:Syntax.HTMLVariants.WebHome||anchor="HAnnotatedXHTML"]]|annotatedxhtml/1.0|(x)|(/)|(x)|
76 |[[Annotated HTML5>>doc:Syntax.HTMLVariants.WebHome||anchor="HAnnotatedHTML5"]]|annotatedhtml5/1.0|(x)|(/)|(x)|
78 = Demo =
80 {{include document="Demo"/}}
82 = Documentation =
84 * [[Getting started tutorial>>Main.GettingStarted]]
85 * [[Javadocs>>JavaDoc]]
86 * [[Advanced Architecture>>Main.Architecture]]
87 * [[Extending XWiki Rendering>>Main.Extending]]
88 * [[Available Macros>>Main.Macros]]
89 * [[Available Transformations>>Main.Transformations]]
91 = Download =
93 Check the [[getting started tutorial>>Main.GettingStarted]] which contains all information to access the XWiki Rendering binaries.
95 Source files are available {{scm project="xwiki-rendering"}}here{{/scm}}.
97 = Projects using XWiki Rendering =
99 * [[XWiki>>xwiki:Main.WebHome]]: of course...
100 * [[eXo Platform>>]]: Uses both the XWiki Rendering and the XWiki WYSIWYG Editor to provide a simple wiki inside their tools
101 * [[Wikbook>>]]: Uses XWiki Rendering to generate DocBook from content written using a wiki syntax
102 * [[Jahia>>]]: Uses XWiki Rendering in its [["Jahia Wiki module">>]]
103 * [[Grails XWiki Rendering Plugin>>]]: Grails plugin that allows to convert text using the XWiki Rendering Framework.
105 = Alternatives =
107 Here are some libraries similar to XWiki Rendering in purpose:
109 * [[WikiModel>>]]: XWiki Rendering actually uses WikiModel and extends it. Note that since WikiModel wasn't active anymore, the XWiki project has forked it and incorporated it in its own sources.
110 * [[Eclipse Mylyn WikiText>>]]
111 * [[Maven Doxia>>]]: Note that XWiki Rendering has a basic bridge to Doxia
112 * [[Sweble>>]] provides a MediaWiki syntax parser and renderer (see [[Sweble 2.0 architecture>>]].
113 * [[MediaWiki Parsers>>]].
  • Powered by XWiki 11.10.2-node2. Hosted and managed by XWiki SAS

Get Connected