Page 1 of 1

Web author: hide processing instructions

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

Re: Web author: hide processing instructions

Posted: Tue Oct 04, 2016 2:14 pm
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

Re: Web author: hide processing instructions

Posted: Tue Oct 04, 2016 5:08 pm
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

Re: Web author: hide processing instructions

Posted: Tue Oct 04, 2016 5:40 pm
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

Re: Web author: hide processing instructions

Posted: Tue Oct 04, 2016 6:24 pm
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

Re: Web author: hide processing instructions

Posted: Tue Oct 04, 2016 6:37 pm
by cristi_talau
Hello,

Try removing the @namespace ... line.

Best,
Cristian

Re: Web author: hide processing instructions

Posted: Tue Oct 04, 2016 6:49 pm
by odovao
Thanks but it wasn't that,

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

Re: Web author: hide processing instructions

Posted: Wed Oct 05, 2016 9:25 am
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