If I set an element's content as:
... then I get the image inserted, as expected. However, if I set the element's content like so:
... where mystring = "image.gif", nothing shows up.
Is it possible to do what I'm trying to do here?
(Basically, I'm trying to tag entries in a table with icons based on each entry's value. I'd rather not hardcode the URL of the appropriate icon into the XML for each individual entry, as that would sort of defeat the purpose.)
content: url("image.gif");
... then I get the image inserted, as expected. However, if I set the element's content like so:
content: url(string(mystring));
... where mystring = "image.gif", nothing shows up.
Is it possible to do what I'm trying to do here?
(Basically, I'm trying to tag entries in a table with icons based on each entry's value. I'd rather not hardcode the URL of the appropriate icon into the XML for each individual entry, as that would sort of defeat the purpose.)