Displaying images with CSS in Author mode

Having trouble installing Oxygen? Got a bug to report? Post it all here.
slava
Posts: 2
Joined: Tue May 13, 2008 10:39 pm

Displaying images with CSS in Author mode

Post 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
Radu
Posts: 9437
Joined: Fri Jul 09, 2004 5:18 pm

Re: Displaying images with CSS in Author mode

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9437
Joined: Fri Jul 09, 2004 5:18 pm

Re: Displaying images with CSS in Author mode

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
slava
Posts: 2
Joined: Tue May 13, 2008 10:39 pm

Re: Displaying images with CSS in Author mode

Post 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.
Post Reply