Rendering specific PIs as images
Post here questions and problems related to oXygen frameworks/document types.
Rendering specific PIs as images
Imagine <?inline-icon name="arrow"?> PI. Would it be possible to display it in the Author mode like the standard image (i.e. like inlinemediaobject in DocBook document)? The name corresponds to the image in the dedicated folder within the framework.
I am accepting the content would be editable only in the text mode.
In the API description there are methods for inserting XML fragments, but I couldn't find anything what can override the element rendering.
In CSS I am unable to use the image passed to PI as pseudo-attribute.
Any idea?
I am accepting the content would be editable only in the text mode.
In the API description there are methods for inserting XML fragments, but I couldn't find anything what can override the element rendering.
In CSS I am unable to use the image passed to PI as pseudo-attribute.
Any idea?
Re: Rendering specific PIs as images
Hi,
In your CSS you need to define this prefix-namespace mapping after all imports:
and then add a selector looking something like:
Regards,
Radu
In your CSS you need to define this prefix-namespace mapping after all imports:
Code: Select all
@namespace oxy "http://www.oxygenxml.com/extensions/author";
Code: Select all
oxy|processing-instruction[inline-icon]:before{
content: attr(name, url);
}
oxy|processing-instruction[inline-icon]{
visibility:-oxy-collapse-text;
}
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