Wiki source code of XWiki Rendering Architecture

Last modified by Gabriel Răileanu on 2020/07/01 12:57

Show last authors
1 image:rendering-architecture-advanced.png
2
3 * **Parser**: Parses some textual input in a given syntax and generates a XDOM object which is an AST representing the input into structured blocks.
4 * **Renderer**: Takes a XDOM as input and generates some output.
5 * **Transformation**: Takes some XDOM and modifies it to generate modified XDOM (see the list of [[Transformations]]). One important transformation is the [[MacroTransformation>>extensions:Extension.RenderingMacroTransformation.WebHome]] which looks for all macro blocks in the XDOM tree and replaces them by blocks generated by various macros. Note that executing transformations is an optional step and if you don't run them then you'll get a XDOM object without any transformation applied on it (e.g. without macros executed). Also note that there's a **TransformationContext** used that holds various information about the context: the XDOM being transformed, the syntax, and more.
6 * **Macro**: Takes a macro definition as input and generates XDOM Blocks (see the list of [[Macros]]).
  • Powered by XWiki 14.10.18-node2. Hosted and managed by XWiki SAS

Get Connected