Mark Fletcher wrote:
> What's the difference between using Ctrl+L (Redraw) and clicking the current
> view in the View menu?
> I never realized (or maybe I forgot) that there was a difference in
> functionality until today, when I noticed that my change to the color:
> property wasn't getting picked up by Ctrl+L as I expected. (I've been
> doing a lot of xpath stuff, and just got in the habit of using Ctrl+L, I
> guess.) The stylesheet change wasn't reflected until I clicked on the
> current view in the View menu. Is there a reason that Redraw doesn't
> also reload the current stylesheet?
--> You'll want to reload the current style sheet using the View menu
when you are in the process of developing or customizing a CSS.
--> Ctrl+L (Redraw) is a kludge which is currently used to:
* Manually update the contents of elements included in a modular document,
* Manually update the views of elements styled with rules such as the
following ones:
---
xref {
content: icon(left-link)
xpath("if(id(@linkend)/@xreflabel, id(@linkend)/@xreflabel,
@linkend)");
vertical-align: text-top; /* for the icon */
color: navy;
}
xref[endterm] {
content: icon(left-link) xpath("if(id(@endterm), id(@endterm),
@endterm)");
}
---
Note that if I replace xpath() by label(), I'll no longer need to use
Ctrl+L (Redraw) to manually update the view of an xref.
However, using label() has a cost in term of CPU usage and I don't want
to make XXE more sluggish than it already is for rarely used cases.
See http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/label.html
I hope than in the future, Ctrl+L (Redraw) will disappear because XXE
will be smart enough to automatically update what needs to be updated.