J?r?me Conus wrote:
>
> I'm using XmlMind 3.0 to create some Docbook documentation.
> I need to create a table and put some background color on different
> cells of the table.
>
> I didn't find a way to do this with XmlMind. I know that the
> presentation should be split from the content, but then, how can I put
> some background or text colours ?
>
--> You need to hijack an attribute such as "role".
Example:
---
entry[role="caution"] {
background-color: fuchsia;
}
entry[role="info"] {
background-color: yellow;
}
---
--> This would work too, but is not very elegant:
---
entry[role] {
background-color: concatenate(attr(role));
}
---
In the above case, attribute "role" directly contains a color specified
using CSS syntax (e.g. navy, #HHHHHH or rgb(RR,GG,BB)).
--> For text color, replace "background-color:" by "color:".