Using editorVariables in CSS
Post here questions and problems related to oXygen frameworks/document types.
Using editorVariables in CSS
Hi everyone,
I use the Oxygen component. In the CSS file, I want to access, with an oxy_xpath, data stored in a XML file located in the framework directory.
I can do this with an absolute path :
But I would like to use editorVariables like ${frameworksDir} to avoid the absolutePath :
How can I do it ?
Thank you,
Johann
I use the Oxygen component. In the CSS file, I want to access, with an oxy_xpath, data stored in a XML file located in the framework directory.
I can do this with an absolute path :
Code: Select all
element{
content: oxy_xpath('doc("file:/absolute_path/data.xml")//XPATH');
}
Code: Select all
element{
content: oxy_xpath('doc(${frameworksDir})//XPATH');
}
Thank you,
Johann
Re: Using editorVariables in CSS
Hi Johann,
In Oxygen 19 (April-May this year) the oxy_xpath will automatically expand editor variables in the expression.
Until then, the oxy_url CSS function expands such editor variables and you can use it to construct the URL on which the document function is called from the xpath expression, something like what's mentioned here:
post40812.html#p40900
Regards,
Radu
In Oxygen 19 (April-May this year) the oxy_xpath will automatically expand editor variables in the expression.
Until then, the oxy_url CSS function expands such editor variables and you can use it to construct the URL on which the document function is called from the xpath expression, something like what's mentioned here:
post40812.html#p40900
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 402
- Joined: Mon May 09, 2016 9:37 am
Re: Using editorVariables in CSS
Post by sorin_carbunaru »
Hi,
Just wanted to let you know that oXygen 19.0 has been released two days ago and in this version the oxy_xpath() CSS function supports editor variables.
Best wishes,
Sorin Carbunaru
oXygen XML
Just wanted to let you know that oXygen 19.0 has been released two days ago and in this version the oxy_xpath() CSS function supports editor variables.
Best wishes,
Sorin Carbunaru
oXygen XML
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