Susan F. wrote:
> I am currently using XMLMind XML Editor with a DocBook5x addon; however,
> I am looking for a replacement XML Editor; one that has the capability
> of suppressing the indexterm element which is shown in the editing view
> of XMLMind XML Editor. See attached image.
>
>
> I'm not entirely sure if hiding this element is a function of the XML
> Editor or the DocBook stylesheet. In any event, seeing the indexterm
> element is a visual distraction, making the job of reading and editing
> the textual content more laborious on the reader's eyes. It breaks flow
> and readability.
>
>
> Serna, by Syntext, claims there is a way to do this via Editing Window
> -> Content Rendering -> XSLT Parameter Sets, then modifying the rules
> that dictate the rendering of the parameters.
>
XMLmind XML Editor works very differently from Syntext Serna.
> Is it possible to prevent the 'indexterm' element from showing up in the
> Editing View within XMLMind, either permanently or temporarily?
Yes, you need to customize the *CSS* style sheet used to render DocBook
5 documents on screen.
The basic idea is to replace in
XXEv4_install_directory/addon/config/docbook/css/docbook1.imp:
---
indexterm,
primary,
secondary,
tertiary,
see,
seealso {
display: inline;
font-size: small;
}
indexterm:before {
content: icon(left-half-disc) element-local-name() " ";
color: gray;
}
indexterm:after {
content: icon(right-half-disc);
color: gray;
}
indexterm > *:before {
content: ", ";
color: gray;
}
indexterm > see:before {
content: " = ";
}
indexterm > seealso:before {
content: " + ";
}
indexterm > *:first-child:before {
content: "";
}
---
by:
---
indexterm,
primary,
secondary,
tertiary,
see,
seealso {
display: none;
}
---
There is a way to do that in a clean and maintainable way. See
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/add_css.html
*Disclaimer* you seem to use an old version of XMLmind XML Editor, so
I'm not sure that what has been explained (i.e. the filename of the CSS
style sheet, the documentation) above applies *exactly* to your case.
> Thank you in advance for any help you can provide,
> ~Susan
>
> The version details of the DocBook stylesheet in use:
> Name - DocBook 5 + XInclude configuration
> Version - 5.0.0-beta12
> Excludes - DocBook 5 configuration
> Author - XMLmind
> XXE version - 3.5.2+