Using the PI MOD standard

Post here questions and problems related to oXygen frameworks/document types.
Posts: 206
Joined: Thu Dec 01, 2011 4:22 pm
Location: Hamburg, Germany

Using the PI MOD standard

Post by SSC » Thu Mar 15, 2012 4:14 pm


Some of our Customers use the PI MOD standard for their documents.

This XML document standard uses a different tag element for their images than others like DITA.

Code: Select all

 <inlinemediaobject objectname="Variant-B.jpg"/>
Compared with DITA an inlinemediaobject tag element in PI MOD is an image tag element in DITA and the objectname attribute in PI MOD is similar to the href attribute in DITA.

My question concerning this is if there is some kind of mapping for those media in the WYSIWYG Auhor mode in the Oxygen XML Editor.
Can I somehow define that those inlinemediaobjects are shown like DITA images in the WYSIWYG Auhor mode?
Or am I forced to use a CSS hack to show the inlinemediaobject images?

Best regards,

Simon Scholz
vogella GmbH

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

Re: Using the PI MOD standard

Post by Radu » Thu Mar 15, 2012 4:39 pm

Hi Simon,

PI MOD is an XML vocabulary for which Oxygen has no out-of-the-box support.

Oxygen has out-of-the-box support for DITA, Docbook, TEI, XHTML but this support is not hard coded, it is based on an implementation of a Document Type: ... intro.html

In order to have a minimal visual editing support in the Author page for a certain XML you need to write a CSS which defines styles for each element.
For example the CSS for editing DITA is located here:

and in order to display an image for a certain element the CSS selector is like this:

Code: Select all

*[class~="topic/image"] {
display: inline;
content: attr(href, url);
width:attr(width, length);
height:attr(height, length);
The most important part of the selector is this one:

Code: Select all

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

Post Reply