problem with less attr function and namespace prefixes
Post here questions and problems related to oXygen frameworks/document types.
problem with less attr function and namespace prefixes
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
Re: problem with less attr function and namespace prefixes
Hi Patrik,
The Javascript LESS compiler we are using:
http://lesscss.org/
has its limitations. We'll look into this though.
It seems that at a first glance you could use quotes around the attribute name like:
Regards,
Radu
The Javascript LESS compiler we are using:
http://lesscss.org/
has its limitations. We'll look into this though.
It seems that at a first glance you could use quotes around the attribute name like:
Code: Select all
content: attr("cba|prefix");
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: problem with less attr function and namespace prefixes
Hi Radu,
using quotes completely solved this problem for me, thanks!
Patrik
using quotes completely solved this problem for me, thanks!
Patrik
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service