Web author: hide processing instructions

Having trouble installing Oxygen? Got a bug to report? Post it all here.
odovao
Posts: 12
Joined: Tue Oct 04, 2016 12:18 pm

Web author: hide processing instructions

Post by odovao »

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
Site Admin
Posts: 95
Joined: Thu Jun 09, 2016 2:01 pm

Re: Web author: hide processing instructions

Post by Gabriel Titerlea »

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
Joined: Tue Oct 04, 2016 12:18 pm

Re: Web author: hide processing instructions

Post by odovao »

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=000000creationdate=totalelements=2totalwords=9newelements=0changedelements=0deletedelements=0changedwords=0newwords=0username=gordon.harradine@cognitran.comwid=null?>
<?segment-crc 33f079c3?>

Could you please advise?

Thanks
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Web author: hide processing instructions

Post by cristi_talau »

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
Joined: Tue Oct 04, 2016 12:18 pm

Re: Web author: hide processing instructions

Post by odovao »

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: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Web author: hide processing instructions

Post by cristi_talau »

Hello,

Try removing the @namespace ... line.

Best,
Cristian
odovao
Posts: 12
Joined: Tue Oct 04, 2016 12:18 pm

Re: Web author: hide processing instructions

Post by odovao »

Thanks but it wasn't that,

It turns out that having comments '#comment' in the CSS breaks somehow the oxy|* references.
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Web author: hide processing instructions

Post by cristi_talau »

Hello,

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

Best,
Cristian
Post Reply