[oXygen-user] Preserving whitespaces for PRE-like elements

George Cristian Bina
Tue May 26 01:31:14 CDT 2009

Hi Florent,


One way is to add an eg entry in Options -> Editor -- Format -- XML in 
the "Preserve space elements (XPath)" list.

Another possibility is to use xml:space="preserve" on the elements that 
you want to have the spaces preserved.

If you edit the file in the Author mode then if you specify in the CSS 
that eg is a witespace preserve element and oXygen takes the CSS 
information into account and does not change the whitespaces in those 


Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Florent Georges wrote:
>   Hi,
>   I am writing a document using the XML Spec format.  The element
> 'eg' in this format is a bit like HTML's pre element: it contains
> formatted text, within which whitespaces are significant.  When I
> use the 'Format and Indent' action, oXygen indent the whole doc,
> including those elements (so destroying in part the semantics of
> their content.)
>   Is there any way to tell oXygen to not indent some specific
> elements?  I use oXygen 10.2.
>   Regards,

More information about the oXygen-user mailing list