CSS to Indicate Element References a Graphic?

For using CSS in Author mode for arbitrary doctypes (in my case, an XSD schema), is there a way to indicate via CSS that a given element is a reference to a graphic? I didn't see anything in the Oxygen help under CSS. Cheers, E. ---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>

Hi Eliot, If your element has an attribute which points to an image path, here is an extract from the Oxygen docbook.css which displays images associated with Docbook graphic, inlinegraphic and imagedata. Based on this example, you can create your own CSS rules based on your grammar. graphic, inlinegraphic, imagedata{ content: attr(fileref, url); } But, if your element contains the path to the image as text content, we do not have support for this yet. If you confirm this is the case, we'll try to improve this in a future Oxygen version. Regards, Radu -- Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Eliot Kimber wrote:
For using CSS in Author mode for arbitrary doctypes (in my case, an XSD schema), is there a way to indicate via CSS that a given element is a reference to a graphic? I didn't see anything in the Oxygen help under CSS.
Cheers,
E.
---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Thanks,that worked perfectly. Cheers, E. ---- W. Eliot Kimber Really Strategies, Inc. 512 554 9368 www.reallysi.com On Jun 22, 2009, at 2:25 AM, "Radu Coravu" <radu_coravu@sync.ro> wrote:
Hi Eliot,
If your element has an attribute which points to an image path, here is an extract from the Oxygen docbook.css which displays images associated with Docbook graphic, inlinegraphic and imagedata. Based on this example, you can create your own CSS rules based on your grammar.
graphic, inlinegraphic, imagedata{ content: attr(fileref, url); }
But, if your element contains the path to the image as text content, we do not have support for this yet. If you confirm this is the case, we'll try to improve this in a future Oxygen version.
Regards, Radu
-- Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/ Debugger http://www.oxygenxml.com
Eliot Kimber wrote:
For using CSS in Author mode for arbitrary doctypes (in my case, an XSD schema), is there a way to indicate via CSS that a given element is a reference to a graphic? I didn't see anything in the Oxygen help under CSS.
Cheers,
E.
---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Eliot Kimber
-
Radu Coravu