oxy_url()
Function
Oxygen XML Editor plugin uses all these parameters to construct an absolute location. Note that any of the parameters that are passed to the function can be either relative or absolute locations. These locations can be expressed as String objects, functions, or editor variables (built-in or custom).
- base_location
- String representing the base location. If not absolute, will be solved relative to the CSS file URL.
- loc_1 ... loc_n (optional)
- Strings representing relative location path components.
The following function receives String objects as input parameters:
oxy_url('http://www.oxygenxml.com/css/test.css', '../dir1/', 'dir2/dir3/', '../../dir4/dir5/test.xml')and returns:
'http://www.oxygenxml.com/dir1/dir4/dir5/test.xml'
The following function receives the result of the evaluation of two other functions as parameters:
image[href]{ content:oxy_url(oxy_base-uri(), oxy_replace(attr(href), '.jpeg', 'Thumbnail.jpeg')); }
You can use the above example when you have image references and you want to see thumbnail images stored in the same folder.
The following function uses an editor variable as the first parameter to point to the Oxygen XML Editor plugin installation location:
image[href] { content: oxy_url('${oxygenHome}', 'logo.png'); }