Image display with oxy_url
Post here questions and problems related to oXygen frameworks/document types.
Image display with oxy_url
Hello,
We use the version 26.0.0.0 of oxygen sdk.
In our application we handle CGM files but we want to display the raster version in format JPEG.
We used to do this in our css this way :
Now we want to do it dynamically, so we try this :
with raster.ext set to .JPEG or an other extension.
It works quite well, the issue is that we only have the raster.ext value after css is first loaded.
So we need to force the refresh to see images properly.
Do you have a better way to implement this behavior ?
Is it possible to use StylesFilter class to do it ?
Thanks,
Regards,
Isabelle
We use the version 26.0.0.0 of oxygen sdk.
In our application we handle CGM files but we want to display the raster version in format JPEG.
We used to do this in our css this way :
Code: Select all
content: oxy_url(oxy_replace(oxy_unparsed-entity-uri(attr(infoIdent)), '.CGM', 'JPEG'));
Code: Select all
content: oxy_url(oxy_replace(oxy_unparsed-entity-uri(attr(infoIdent)), '.CGM', '${system("raster.ext")}'));
It works quite well, the issue is that we only have the raster.ext value after css is first loaded.
So we need to force the refresh to see images properly.
Do you have a better way to implement this behavior ?
Is it possible to use StylesFilter class to do it ?
Thanks,
Regards,
Isabelle
Re: Image display with oxy_url
Hi Isabelle,
You seem to have the correct approach of refreshing the document.
This looks like a coding problem with not being able to properly compute and set the system property before the XML document is opened.
Regards,
Radu
You seem to have the correct approach of refreshing the document.
This looks like a coding problem with not being able to properly compute and set the system property before the XML document is opened.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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