[CSS] replace()
Posted: Mon Mar 23, 2009 5:18 pm
Hi there,
I have tried working around the text-transformation not working in CSS by using the Oxygen replace function which can process regular perl-like regular expression.
But I have not be able to. For example:
someXmlNodeLocalName:before(
content:replace(attr(label), "([a-z})", "\u$1", true);
}
the problems are:
- The selector seems to be selecting lower case and upper case ( not that important)
- The replace statement actually adds an '\u' character before the value of $1 instead of upper-casing.
Anyone got a solution for this?
Cheers in advance.
I have tried working around the text-transformation not working in CSS by using the Oxygen replace function which can process regular perl-like regular expression.
But I have not be able to. For example:
someXmlNodeLocalName:before(
content:replace(attr(label), "([a-z})", "\u$1", true);
}
the problems are:
- The selector seems to be selecting lower case and upper case ( not that important)
- The replace statement actually adds an '\u' character before the value of $1 instead of upper-casing.
Anyone got a solution for this?
Cheers in advance.