Page 1 of 1

Displaying images with CSS in Author mode

Posted: Wed May 14, 2008 12:57 am
by slava
I am quite new to XML and I run into a trouble with displaying images in Oxygen in Author mode.

I have an XML text (exported from FrameMaker). The XML doc looks like (some text omited):

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "file:///C:/Slava/docs/NewFolder_4/DTD_33.dtd" [

<!NOTATION dib SYSTEM "">
<!ENTITY graphic1 SYSTEM "../Guide_English/ZLinks/ch01-02.bmp" NDATA dib>
<!-- some text omitted --> ]>

<!-- ... -->
<figure><caption>Navigating the Start Menu in Windows 2000</caption>
<graphic entity="graphic1" <!-- some attributes omitted-->/></figure>
<!-- some text omitted -->
The "entity" attribute is of type ENTITY. When I am using CSS declaration for graphic element:

Code: Select all

graphic {content: attr(entity, url);}
- I see the an Author mode message: "Unsupported content type for :File:/C:/Slava/docs/Guide_English/ZLinks/ch01-02.bmp ". Also this message shows the incorrect path.

Does any way to display images via external entities exist and CSS?
I am working on Oxygen 9.2 and WinXP.
Thanks

Re: Displaying images with CSS in Author mode

Posted: Wed May 14, 2008 8:54 am
by Radu
Dear Slava,

I answered you yesterday by email but I did not realize that the 'entity' attribute was of type ENTITY.
We do not support this yet but I added an improvement request to our internal features list and we will look into it.

Regards,
Radu

Re: Displaying images with CSS in Author mode

Posted: Thu May 15, 2008 3:08 pm
by Radu
Hi,

Just wanted to let you know that we implemented a CSS extension function which will give you the possibility to see images referred with ENTITY type attributes in the Author page.
The extension will be available in Oxygen 9.3 and the CSS selector will have to look something like:

Code: Select all


graphic {
display:inline;
content: url(unparsed-entity-uri(attr(srcentity))) ;
}
Regards,
Radu

Re: Displaying images with CSS in Author mode

Posted: Thu May 15, 2008 3:32 pm
by slava
Here is the excerpt from an offline discussion related to this tread:
Unfortunately we do not yet support displaying images referred with ENTITY type attributes like in your case. We will try to fix this and I will contact you when the problem gets solved.