oxy_base-uri() Function

This function evaluates the base URL in the context of the current node.

It does not have any arguments and takes into account the xml:base context of the current node. See the XML Base specification for more details.

Suppose you have some image references but you want to see other thumbnail images that reside in the same folder in the visual Author editing mode:

image[href]{
 content:oxy_url(oxy_base-uri(), oxy_replace(attr(href), 
    '.jpeg', 'Thumbnail.jpeg'));
}

Was this helpful?