Author Moe CSS Extensions
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 2
- Joined: Wed Mar 04, 2009 10:33 pm
Author Moe CSS Extensions
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. ?
here is my 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>
Code: Select all
@namespace oxy url('http://www.oxygenxml.com/extensions/author');
oxy|processing-instruction {
display:inline;
color:red;
text-decoration:underline;
}
-
- Posts: 9438
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author Moe CSS Extensions
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:
So in order to override our styles in your CSS you also have to specify the "important" flag like:
Regards,
Radu
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;
}
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;
}
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Wed Mar 04, 2009 10:33 pm
Re: Author Mode CSS Extensions
Thats great is it possible to hide the insert tag along with the attributes that I have inserted in.
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.
Is it possible to omit the tags and attributes ?
Code: Select all
<?insert author="Dylan.Dawson" revision="2">if you can make this underlined in red, i will not kill you</insert?>
Code: Select all
insert author="Dylan.Dawson" revision="2">if you can make this underlined in red, i will not kill you</insert
-
- Posts: 9438
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author Moe CSS Extensions
Hi Arty,
The code sample above is a single huge processing instruction.
You can hide the entire processing instruction:
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
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;
}
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service