Specify url as a constant in Oxygen XML web author
Oxygen general issues.
Specify url as a constant in Oxygen XML web author
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!
-
- Posts: 496
- Joined: Thu Sep 04, 2014 4:22 pm
Re: Specify url as a constant in Oxygen XML web author
Post by cristi_talau »
Hello,
You can use the oxy_concat CSS function to compose the full URL just for display purposes. More details here: https://www.oxygenxml.com/doc/versions/ ... ction.html .
Best,
Cristian
You can use the oxy_concat CSS function to compose the full URL just for display purposes. More details here: https://www.oxygenxml.com/doc/versions/ ... ction.html .
Best,
Cristian
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