Specify url as a constant in Oxygen XML web author
Posted: Tue Jul 17, 2018 3:11 pm
Hi,
In my XML i've a element that holds image element. in order to display the image, I'm specifying the absolute 'url' in the src attribute as follows:
Current implementation:
<figure>
<img src="http://servename:port/context-root/REST_WS/imageID"/>
</figure>
In the CSS I use the following
img{
content:attr(src url);
}
The image is getting displayed correctly but I don't want to embed the complete URL in the 'src' attribute of 'img' element.
Expected:
Is there a way the url can be set as constant and Oxygen XML web Author will append the imageID to this URL.
<figure>
<img src="imageID"/>
</figure>
Thanks!
In my XML i've a element that holds image element. in order to display the image, I'm specifying the absolute 'url' in the src attribute as follows:
Current implementation:
<figure>
<img src="http://servename:port/context-root/REST_WS/imageID"/>
</figure>
In the CSS I use the following
img{
content:attr(src url);
}
The image is getting displayed correctly but I don't want to embed the complete URL in the 'src' attribute of 'img' element.
Expected:
Is there a way the url can be set as constant and Oxygen XML web Author will append the imageID to this URL.
<figure>
<img src="imageID"/>
</figure>
Thanks!