Table row not shown in Oxygen Author mode!

Post here questions and problems related to oXygen frameworks/document types.
mu258770
Posts: 132
Joined: Mon Aug 18, 2014 4:11 pm

Table row not shown in Oxygen Author mode!

Post by mu258770 » Tue Mar 31, 2020 5:04 pm

Hi team,

We are using Oxygen XML Author 20.1 Eclipse version. We see that the table <row> element is not shown in Author mode even in fulltags mode.

Could you please suggest how we can enable it. We searched in CSS, but could not find it. Is it easily configurable?

Regards,
Shabeer

Radu
Posts: 7032
Joined: Fri Jul 09, 2004 5:18 pm

Re: Table row not shown in Oxygen Author mode!

Post by Radu » Wed Apr 01, 2020 8:29 am

Hi Shabeer,

I'm afraid we do not have a setting to show the full tags for table rows. We do have an internal issue registered for this and I added your contact details on it.
In the meantime if you want to select an entire table row you can click with the mouse just before the start of the row. You can also use the Outline view.
Could you tell us why you want the full tag to appear before the table row?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

mu258770
Posts: 132
Joined: Mon Aug 18, 2014 4:11 pm

Re: Table row not shown in Oxygen Author mode!

Post by mu258770 » Wed Apr 01, 2020 9:52 am

Hi Radu,

The purpose is to use conditional attributes on the row level. We can insert the conditional attribute by selecting the entire row and using the edit profiling attributes window. But currently it is not easy to understand if a conditional attribute is applied on row. There is a tooltip shows the conditional attribute, but it is hard to understand where it is present.

Users would want to see the row element along with its attributes while editing the table because of the above use case.

Could you please suggest a way forward on this.

Regards,
Shabeer

Radu
Posts: 7032
Joined: Fri Jul 09, 2004 5:18 pm

Re: Table row not shown in Oxygen Author mode!

Post by Radu » Wed Apr 01, 2020 12:29 pm

Hi Shabeer,

Right now there is no way to display content before or after a table's row.
Maybe with a small CSS:

Code: Select all

row[platform] entry:first-of-type:before{
    color:blue;
    content: "[" oxy_xpath("../@platform") "]";
}
you could display the profiling attribute value in the first table cell but I have no other workaround.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

saiteja346
Posts: 1
Joined: Tue Apr 14, 2020 4:34 am

Re: Table row not shown in Oxygen Author mode!

Post by saiteja346 » Wed May 13, 2020 8:19 pm

Hi Radu,

The CSS you have provided is only for one profiling attribute. But we have multiple profiling attributes

If multiple profiling attributes are given for one row, do we need to define all the possibilities in the CSS code as you have mentioned.

For example if there are four profiling attributes do we need to define all the 24 ways in the CSS code or Is there any other alternative.

Please suggest.

Thanks in advance!

Regards,
SaiTeja

Radu
Posts: 7032
Joined: Fri Jul 09, 2004 5:18 pm

Re: Table row not shown in Oxygen Author mode!

Post by Radu » Thu May 14, 2020 7:16 am

Hi SaiTeja,

We have a special CSS property called -oxy-append-content, it can be used to add to the content instead of overwriting it on each selector:

Code: Select all

row[platform] entry:first-of-type:before{
    color:blue;
    -oxy-append-content: "[" oxy_xpath("../@platform") "]";
}

row[audience] entry:first-of-type:before{
    color:blue;
    -oxy-append-content: "[" oxy_xpath("../@audience") "]";
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply