Web author: hide processing instructions

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
odovao
Posts: 12

Web author: hide processing instructions

Tue Oct 04, 2016 12:33 pm

Hi,

is it possible to hide processing instructions on oxygen web author 18.0.0?

We have tried to do this via CSS and options.xml, however both attempts failed to remove processing instructions from display.

- CSS solution:
@namespace oxy "http://www.oxygenxml.com/extensions/author";
oxy|processing-instruction[*]
{
display:none !important;
}
- Options.xml solution:
<entry>
<String>author.show.processing.instructions</String>
<Boolean>false</Boolean>
</entry>

Is there a way to do this or it's not supported?

Thanks
Gabriel Titerlea
Posts: 39

Re: Web author: hide processing instructions

Tue Oct 04, 2016 2:14 pm

Hello,

The option author.show.processing.instructions does not work in 18.0.x. It will be available in version 18.1.x

oxy|processing-instruction[*]
{
display:none !important;
}


You need to remove the "[*]" at the end of the selector and PIs will be hidden.

Best,
Gabriel
odovao
Posts: 12

Re: Web author: hide processing instructions

Tue Oct 04, 2016 5:08 pm

Thanks Gabriel for you answer,

However removing the selector [*] has not worked either.

This is an example of the processing instructions we want to hide;

<?diffStats guid=nulllangcountry=enUSAversion=00000 ... ran.comwid=null?>
<?segment-crc 33f079c3?>

Could you please advise?

Thanks
cristi_talau
Posts: 176

Re: Web author: hide processing instructions

Tue Oct 04, 2016 5:40 pm

Hello,

Can you try something like:

Code: Select all

oxy|processing-instruction {
  background-color: red;
}


or

Code: Select all

/* assuming DITA here */
title {
  background-color: red;
}


to make sure that your CSS is properly picked up by Web Author?

Best,
Cristian
odovao
Posts: 12

Re: Web author: hide processing instructions

Tue Oct 04, 2016 6:24 pm

Hi,

background-color: red; works on all elements except for oxy|processing-instruction.

We have @namespace oxy "http://oxygenxml.com/extensions/author"; on the beginning of the CSS, do we need anything else to make the oxy/* elements work?

Thanks,
Oscar
cristi_talau
Posts: 176

Re: Web author: hide processing instructions

Tue Oct 04, 2016 6:37 pm

Hello,

Try removing the @namespace ... line.

Best,
Cristian
odovao
Posts: 12

Re: Web author: hide processing instructions

Tue Oct 04, 2016 6:49 pm

Thanks but it wasn't that,

It turns out that having comments '#comment' in the CSS breaks somehow the oxy|* references.
cristi_talau
Posts: 176

Re: Web author: hide processing instructions

Wed Oct 05, 2016 9:25 am

Hello,

Comments in CSS are delimited by /* ... */. You can use the desktop version of oXygen to validate your CSS-es.

Best,
Cristian

Return to “Common Problems”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest