Problem with Authormode - Bug?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Problem with Authormode - Bug?

Post by stdu »

I have a strange problem in Oxygen XML 13.2. If Oxygen XML doesn't find the connected schema (RNG with <?oxygen> in the XML-TEI-file), the view in authormode is wrong: the CSS is basically correct connected (and unmodified), but the lines were not correctly displayed. There is a great gap between several elements. For a better understanding you can look at the two images below.

Is this behaviour intended or a bug? Has anyone a hint how to avoid this behaviour?

Thx, Stefan

With connected schema (right view):
Image

Without connected schema (wrong view):
Image
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Problem with Authormode - Bug?

Post by Radu »

Hi Stefan,

Oxygen uses the associated schema (in your case RNG schema) to know for which elements it can normalize or ignore whitespaces when presenting them in the Author page. So if the schema specifies that an element can only have child elements then Oxygen knows that it can remove the extra indent which usually appears in the XML content between child elements.

Once you remove the associated schema, Oxygen will only rely on the associated CSS to know for which elements the indent can be removed.
For example if in the CSS an element is considered as being inline then all whitespaces between its child elements will be normalized to a single space (but will not be removed).

The main CSS used by Oxygen for editing TEI in the Author page is this one:

OXYGEN_INSTALL_DIR/frameworks/tei/xml/tei/css/tei_oxygen.css

After you open your XML document without a schema specified you can use a toolbar drop down button to switch to a Full Tags view of the document.
This should give us a better idea in which elements the extra spaces are preserved.
You can also send us a sample TEI document to: support@oxygenxml.com

The CSS files are taken from the TEI project and only slightly modified by Oxygen but we can make updates to them if necessary.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Re: Problem with Authormode - Bug?

Post by stdu »

Thx for your reply - that helped much to locate the problem! Indeed, the (missing) whitespace-handling causes the problem. We`re using a special CSS (not the standard CSS for TEI in Oxygen), so the problem are more obvious. With the property "white-space" we can control the white-space-handling via CSS - but this is a little bit tricky, because you have to replace all the block-level properties with it. Have to see what can be done...
Post Reply