Hi Hussein,
Thanks for your quick answer.
I'm afraid I don't get how to apply your answer : where do I have to write
entry[role="caution"] {
background-color: fuchsia;
}
entry[role="info"] {
background-color: yellow;
}
? In a specific file ? Does it mean that in the role attribute of an entry, I
would write 'info' or 'caution' for exemple ?
Thanks,
Jerome
-----Message d'origine-----
De : Hussein Shafie [mailto:hussein at xmlmind.com]
Envoy? : lundi, 31. juillet 2006 11:29
? : J?r?me Conus
Cc : xmleditor-support at xmlmind.com
Objet : Re: [XXE] coloured table cells
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:".