On 03/30/2017 07:07 PM, Wes Warner wrote:
The trouble I have with the CSS customization is that it adds a style for an entire element, not the entry for the element. Example: If I have a revisionflag set to added for a para, the CSS customizer
My answer assumes that you are talking about: 13. The "Customize CSS Stylesheet" dialog box http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeStylesheetDialog.html
only wants to apply a style for para.
No, you are free to write any CSS rule you want, even very complex ones. I mean, you are NOT limited to very simple selectors like "para" in: para { color: cyan; }
There appears to be no way for me to tell it that I want a style for revisionflag.added. I'm not a programmer, and any documentation I've been able to find on this has not been helpful in getting more granular styles applied. If you can provide an example of what the CSS would look like for applying a style (color to cyan for example) to revisionflag.added, that would be most helpful.
It's really basic CSS: *[revisionflag="added"] { color: cyan; text-decoration: underline; } *[revisionflag="deleted"] { color: gray; text-decoration: line-through; } See https://www.w3.org/TR/CSS2/selector.html#attribute-selectors
This is the primary reason that I've used the profiles portion for applying styles. It is very easy to do so, and our customized stylesheets match what is displayed.
You are free to use a ".profiles" file if you prefer. However, my previous email was an attempt to explain that:
1) a ".profiles" file styling "revisionflag.added" on screen will have no effect when converting your document to PDF because the DocBook XSL stylesheets do not support "flagging" elements, but just excluding them.
2) a ".profiles" file is NOT adapted to styling elements in the general case. For example, giving a distinct screen style to different kinds of notes.
Reference: XMLmind XML Editor - Easy Profiling http://www.xmlmind.com/xmleditor/_distrib/doc/profiling/index.html -- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support