Paul Moloney wrote:
> I've been able to change the default XMLMind stylesheet so that it, for
> example, shows elements that have a particular vendor attribute
> in a particular colour.
> 
> However, I want to do something a little different. By default, XMLMind
> shows a referenced document in pale blue. Is there any way to change
> this colour based on part of the pathname of the referenced document? (In
> my particular example, I want to use a different colour if any part of
> the pathname is "/import/".

XXE uses a few built-in CSS rules (see
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/built_in_css_rules.html).
One of them is:

*:read-only {
    background-color: #E0F0F0;
}

If you redefine this rule in your own CSS, you'll be able to change the
color of referenced documents.

(:read-only is a proprietary pseudo-class described in
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/properties.html)

Now about the "/import/" problem, I'm affraid that there is currently no
way to solve it, the best we can do being described here:
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/properties.html.

Look at E:property("foo", "bar"), where the property of interest would
be "LOCATION_INFO".


Reply via email to