Edit online

URL: oxy_url() Function

This function extends the standard CSS url() function by allowing you to specify additional relative path components (parameters loc_1 to loc_n).

Oxygen XML Author Eclipse 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).

Syntax:
oxy_url ( base_location , loc_1 , loc_2 )
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.

Examples: oxy_url Function

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 (for instance, this is useful if you have image references and you want to see thumbnail images stored in the same folder):
image[href]{
 content:oxy_url(oxy_base-uri(), oxy_replace(attr(href), 
    '.jpeg', 'Thumbnail.jpeg'));
}
The following function uses an editor variable as the first parameter to point to the Oxygen XML Author Eclipse plugin installation location:
image[href] {
    content: oxy_url('${oxygenHome}', 'logo.png');
}