<
From version < 49.4 >
edited by Silvia Macovei
on 2012/03/13
To version < 50.1 >
edited by Vincent Massol
on 2012/12/04
>
Change comment: Added raw explanation

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.SilviaRusu
1 +XWiki.VincentMassol
Content
... ... @@ -72,9 +72,12 @@
72 72  
73 73  ==== xpage ====
74 74  
75 -* plain: this value indicates that only the content of the page is printed (no UI). With document not in 1.0 syntax you can control the output syntax using outputSyntax and outputSyntaxVersion.
76 -* xml: print the exported form of a document. This is what you can find in the xar for each document.
75 +* ##plain##: this value indicates that only the content of the page is printed (no UI). With document not in 1.0 syntax you can control the output syntax using ##outputSyntax## and ##outputSyntaxVersion##. You can also pass another parameter named ##raw## which allow you more control:
76 +** ##raw=1##: Returns the page source as is without any formatting but XML-escaped
77 +** ##raw=2##: Returns the page source as is without any formatting (without any escaping)
78 +* ##xml##: print the exported form of a document. This is what you can find in the xar for each document.
77 77  
80 +
78 78  ==== outputSyntax and outputSyntaxVersion ====
79 79  
80 80  With non 1.0 syntax document its possible to explicitly indicate the renderer to use for the page content. For example with ##outputSyntax=plain## you will get the result in plain text. ##outputSyntaxVersion## is an optional parameter, if it's not provided XWiki will search for the last version of the renderer for the given ##outputSyntax## syntax name. Note that outputSyntax controls only the document content output syntax. If you only want the document content you can use ##xpage=plain##.

Get Connected