Oxygen XML Author Eclipse plugin provides support for selecting additional types of nodes. These custom selectors apply to: document, doctype, processing-instruction, comment, CDATA sections, entities, and reference sections. Processing-instructions are not displayed by default. To display them, open the Preferences dialog box , go to , and select Show processing instructions.
For the custom selectors to work in your CSS stylesheets, declare the Author mode extensions namespace at the beginning of the stylesheet documents:
@namespace oxy url('http://www.oxygenxml.com/extensions/author');
oxy|document selector matches the entire
document:oxy|document {
display:block !important;
}doctype sections:
oxy|doctype {
display:block !important;
color:blue !important;
background-color:transparent !important;
}oxy|processing-instruction selector:
oxy|processing-instruction {
display:block !important;
color:purple !important;
background-color:transparent !important;
}<?target_name data="b"?>oxy|processing-instruction[target_name]oxy|processing-instruction[target_name][data="b"]oxy|comment selector:
oxy|comment {
display:block !important;
color:green !important;
background-color:transparent !important;
}oxy|cdata selector matches CDATA
sections:
oxy|cdata{
display:block !important;
color:gray !important;
background-color:transparent !important;
} oxy|entity selector matches the entity
content:oxy|entity {
display:morph !important;
editable:false !important;
color:orange !important;
background-color:transparent !important;
}oxy|entity selector in expressions
such
as:oxy|entity[name='amp'],
oxy|entity[name='lt'],
oxy|entity[name='gt'],
oxy|entity[name='quot'],
oxy|entity[name='apos'],
oxy|entity[name^='#']{
-oxy-display-tags: none;
}oxy|reference - The references to entities, XInclude, and DITA
@conref and @conkeyref attributes are expanded by
default in Author mode and the referenced content is displayed. The
referenced resources are displayed inside the element or entity that references them.
reference property to customize the way these references
are rendered in Author
mode:oxy|reference {
border:1px solid gray !important;
}In the Author mode, content is highlighted when text contains comments and changes (if Track Changes was active when the content was modified).
oxy|reference[comments],
oxy|reference[changeTracking], and
oxy|reference[changeTracking][comments] selectors.comments and changeTracking) are set on
the reference node, containing information about the number of comments and tracked
changes in the content.oxy|reference[comments]:before {
content: "Comments: " attr(comments) !important;
}oxy|reference[changeTracking]
selector:oxy|reference[changeTracking]:before {
content: "Change tracking: " attr(changeTracking) !important;
}oxy|reference[changeTracking][comments]:before {
content: "Change tracking: " attr(changeTracking)
" and comments: " attr(comments) !important;
}