problem with less attr function and namespace prefixes
Posted: Sat Jan 16, 2016 7:05 pm
Hi,
I just wanted to use the attr function in a less file to output the value of a namespace attribute. Using a css file the same works fine but within a less file I get an error message:
When using the same code in a css file it works fine. The problem is, that I wanted to use variables and, thus, need to use less. Is there any restriction with namespaces in less files I'm not aware of?
Thanks and regards,
Patrik
I just wanted to use the attr function in a less file to output the value of a namespace attribute. Using a css file the same works fine but within a less file I get an error message:
My css code looks like this:[CSS]:Error: ParseError: Unrecognised input in ... (jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%2017.1/lib/oxygen.jar!/builtin/js/less/lessc-rhino-1.7.5.js#61)
Code: Select all
@namespace cba "http://www.dita-semia.org/conbat";
*[class~="topic/sl"][cba|prefix]:before(5) {
display : block;
content : attr(cba|prefix);
}
Thanks and regards,
Patrik