
Hello, The line breaks could be ignored in elements like <choice> if they are declared in the DTD/schema as having element only content and we will consider that for a future version. Ignoring the whitespace between the subelements of an element with content of type element only is connected with the reverse process, that is inserting some line breaks back in the XML document when switching from the Author mode to the Text mode with the purpose of pretty-printing the document. This process of pretty-printing the document must also be schema aware, that is insert the line breaks in elements having an element only type of content declared in the schema. Regards, Sorin Philipp Steinkrüger wrote:
Hi,
thanks for your answer, Sorin. I understand Oxygen Author-Mode is not able to do what i want, but i think it should be! There should be an option telling the renderer to just ignore line-breaks. I fail to see any reason why the transformation into whitespaces is necessary. Can this be added to the feature request list?
Best, Philipp
Message: 2 Date: Thu, 14 Aug 2008 18:05:51 +0300 From: Sorin Ristache <sorin@oxygenxml.com> Subject: Re: [oXygen-user] Whitespace Problem To: oxygen-user@oxygenxml.com Message-ID: <48A449CF.2070307@oxygenxml.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Hello,
The whitespaces including line breaks are normalized when the XML document is rendered in the Author mode. That means the line breaks between <orig>E</orig> and <reg>e</reg>, between <reg>e</reg> and </choice>, etc are replaced with a space character. If the Author mode removes them without replacing them with a space character then the new XML document is not the normalized version of the old one.
The only way to display "Der Eerwirdigen" in the Author mode is to remove the whitespaces yourself from the XML document before switching to the Author mode:
<p> Der <choice> <orig>E</orig><reg>e</reg></choice>rwirdigen in <choice> ...
Regards, Sorin