Kevin Flynn wrote:
> 
> I have documents with xinclude elements that contain fallback child 
> elements.
> 
> How can I override the default CSS setting for xi:include elements in 
> XmlMind so that it it possible to display the contents of a child 
> xi:fallback element when the inclusion fails?
> 
> I tried:
> 
> @namespace xi "http://www.w3.org/2001/XInclude";;
> 
> xi|include {
>    display: block;
> }
> 
> xi|fallback {
>    display: block;
>    content: "[fallback]";
> }
> 
> as a test, but it doesn't seem to work. I imagine this is because the 
> default rule for xi:include uses "content" - is there anyway I can 
> override that so that I can show the element's contents?

What follows should work fine. In XXE -- and *may* *be* in the CSS 
standard (???) -- {content: "";} can be used to suppress generated content.

---
@namespace xi "http://www.w3.org/2001/XInclude";;

xi|include {
    display: block;
    content: "";
}

xi|fallback {
    display: block;
    content: "[fallback]";
}
---

Reply via email to