Author Moe CSS Extensions

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Arty
Posts: 2
Joined: Wed Mar 04, 2009 10:33 pm

Author Moe CSS Extensions

Post by Arty »

How can or can I set a css style to a processing instruction within an XML documents structure ? Can I turn it's display none or block with in Author mode and change it's color ? I also went into options > preferences > author > edit and unchecked the processing instruction and comments. Are processing instructions controlled by the software prefs or can they also be controlled by CSS. ?

Code: Select all


<paragraph>
<num>b</num>
<text> make recommendations to the minister under section 9 (5) (b) of the Special Accounts Appropriation and Control
<?insert author="Dylan.Dawson" revision="2">if you can make this underlined in red, i will not kill you</insert?> Act respecting the payment of amounts out of the BC150 Cultural Fund Sub-account of the BC Arts and Culture Endowment special account, and.</text>
</paragraph>
here is my css

Code: Select all



@namespace oxy url('http://www.oxygenxml.com/extensions/author');

oxy|processing-instruction {
display:inline;
color:red;
text-decoration:underline;
}
Radu
Posts: 9438
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author Moe CSS Extensions

Post by Radu »

Hi,

Thank you for contacting us.

If you decide to show the PI's from the Oxygen options then the styles set for them in the CSS should all work.
With one condition: we specify some styles for PI's in the builtin "authorDefaults.css" using the "important" flag.

Those styles that we specify by default are:

Code: Select all


oxy|processing-instruction {
display:block !important;
color: rgb(139, 38, 201) !important;
white-space:pre !important;
border-width:0px !important;
margin:0px !important;
padding: 0px !important;
}
So in order to override our styles in your CSS you also have to specify the "important" flag like:

Code: Select all


@namespace oxy url('http://www.oxygenxml.com/extensions/author');

oxy|processing-instruction {
display:inline !important;
color:red !important;
background:blue !important;
text-decoration:underline !important;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Arty
Posts: 2
Joined: Wed Mar 04, 2009 10:33 pm

Re: Author Mode CSS Extensions

Post by Arty »

Thats great is it possible to hide the insert tag along with the attributes that I have inserted in.

Code: Select all


<?insert author="Dylan.Dawson" revision="2">if you can make this underlined in red, i will not kill you</insert?>
in author mode is there a way to be able to hide the insert tag and the attributes so it just shows the content within. It show like this right now. The PI still show the insert tag partially without the <? on each end of the node.

Code: Select all


insert author="Dylan.Dawson" revision="2">if you can make this underlined in red, i will not kill you</insert
Is it possible to omit the tags and attributes ?
Radu
Posts: 9438
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author Moe CSS Extensions

Post by Radu »

Hi Arty,

The code sample above is a single huge processing instruction.

You can hide the entire processing instruction:

Code: Select all


oxy|processing-instruction {
display:none !important;
}
But you cannot by any means show just a part of it (in your case show what you regard as "content" and hide what you regard as "attributes").

I will give you more details about a way change tracking could get implemented by email.

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