Mixed content in outline view

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Johann
Posts: 198
Joined: Wed Jun 17, 2015 12:46 pm

Mixed content in outline view

Post by Johann »

Hello,

I have a question about the outline view in Author Web.

In the case of a tag containing mixed content, only the first text node is displayed in the outline view, the other text nodes do not appear. This can give the impression of an inconsistency when reading the Outline view.

Example:

Code: Select all

<para>First part<abb>element 1</abb>second part<abb>element 2</abb> last part</para>
will be displayed like this :
- para First part
- abb element 1
- abb element 2

So we lost "second part" and "last part" text nodes.

Wouldn't it be possible to display all text nodes, especially in the case of mixed content?

Thanks,

Johann
mihaela
Posts: 489
Joined: Wed May 20, 2009 2:40 pm

Re: Mixed content in outline view

Post by mihaela »

Hello,

I tried to reproduce the problem you reported using a Docbook sample and all the text from the paragraph is presented in the "Structure" view of the Outline. Here is the sample that I used (the Web Author is a sample server, the last version, hosted on our website):
https://www.oxygenxml.com/oxygen-xml-we ... n%22%7D%5D

So, in order to reproduce your problem please give us more details:
- What is the version of your Web Author server?
- What is the document type that you use?
- Do you use a custom Outline configuration?
If you need to provide some sample files or custom configuration or document type files, you can use our email address support@oxygenxml.com or our Technical Support Form (that allows you to attach files): https://www.oxygenxml.com/techSupport.html .
Mihaela Calotescu
http://www.oxygenxml.com
mihaela
Posts: 489
Joined: Wed May 20, 2009 2:40 pm

Re: Mixed content in outline view

Post by mihaela »

Hi,

Thank you for the sample file, we managed to reproduce the problem. The document is a simple xml file, with no CSS associated.

The Outline renders the text that is encountered inside an element, until a block child node is encountered. In your sample, a CSS is not specified and this means that, by default, the Web Author server considers that "abb" elements have block display (even if they are rendered as inline). To fix this, you must associate a CSS with your document and specify that the "abb" elements (or, by default, all elements) have inline display. In this way the Outline will present the entire text from the para element.

Please let us know if this solution works for you.

Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Johann
Posts: 198
Joined: Wed Jun 17, 2015 12:46 pm

Re: Mixed content in outline view

Post by Johann »

Hello,

Indeed, it corrects the issue. Thank you!
By default, the Web Author server considers that "abb" elements have block display (even if they are rendered as inline)
Why is there a difference between the interpretation (block) and the rendering (inline) ?

Johann
mihaela
Posts: 489
Joined: Wed May 20, 2009 2:40 pm

Re: Mixed content in outline view

Post by mihaela »

Hi,

We are glad that your problem is solved.
The difference between the interpretation and the rendering is not intended. We added an issue in our internal issue tracker for this and we will update this thread when we will release a version that contains the fix.

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply