Gregg Reynolds wrote:
> I really like your product, but I need to process elements with the
> xml:lang attribute, and when I say
>
> langSet[xml:lang='en']:before {
> content: "English: ";
> }
>
> in my css stylesheet, the XXE css parser chokes on the colon (it's
> expecting ']'). I tried using escape notation; then it doesn't choke but
> it also doesn't trigger the rule.
>
> This is kind of a show stopper for me. Am I doing something wrong or is
> this a bug?
":" is not allowed in CSS identifier. You need to quote it. For example,
you need to write "foo\:bar" instead of "foo:bar".
Th above explanation is purely syntactic and will not work for
"xml:lang" which is in fact a qualified XML name and not an identifier.
"xml:lang" means in fact "{http://www.w3.org/XML/1998/namespace}lang".
Because the "xml" prefix is always predefined, you just need to replace
"xml:lang" by "xml|lang" (standard CSS3 syntax).
Now, this being said, why not simply write:
---
langSet:lang(en):before {
content: "English: ";
}
---