Hello, I'm trying to style XML with CSS. I have successfully used the :only-of-type pseudo-class to let single instances of an element become inline, and multiple instances of the same be block elements.
What I am NOT able to do is to combine this pseudo-class with the :before pseudo-class. What I want to achieve is: * multiple children of the same type should be displayed as a numbered list * lone children of the above type should be displayed as inline text, *without* any numbering Since i'm not able to combine the :before element with any variant of pseudo selectors that would differentiate between the two cases, I'm not able to remove the numbering from the single child case (or add it only to the multiple children case). The present state can be seen at: https://victorio.uit.no/langtech/trunk/words/dicts/nobfkv/src/adv_nobfkv.xml (NB. self-signed certificate) The present setup works in Safari 4, Opera 10.10, and Firefox 3.5 (all Mac). I have no intention to support older browsers beyond reasonable degradation. Any suggestion for how I could achieve what I want would be very much apprechiated. Best regards, Sjur N. Moshagen ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
