Rendering specific PIs as images

Post here questions and problems related to oXygen frameworks/document types.
Posts: 168
Joined: Wed Apr 29, 2009 4:55 pm

Rendering specific PIs as images

Post by honyk » Fri Nov 23, 2018 6:04 pm

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?

Posts: 7587
Joined: Fri Jul 09, 2004 5:18 pm

Re: Rendering specific PIs as images

Post by Radu » Mon Nov 26, 2018 12:54 pm


In your CSS you need to define this prefix-namespace mapping after all imports:

Code: Select all

@namespace oxy "";
and then add a selector looking something like:

Code: Select all

content: attr(name, url);
Radu Coravu
<oXygen/> XML Editor

Post Reply