Posted by Kourosh on 05/09/06 03:39
Simple but I can't figure it out. I'm trying to colorize an XML file.
The format being like this:
....
<entry foreground="1">
<text>...</text>
<time>...</time>
</entry>
I just can't figure out how to make the CSS file differentiate between
"entry" tags that have different "foreground" attributes. For example I
want all entry tags with foreground of 1 to be displayed in black, all
with value of 2 in red, etc.
Any suggestions? I'm producing the XML file so I guess I could reformat
the structure of my file if there is a better way too.
[Back to original message]
|