The value of preferred.mediaobject.role should match the
value of a role
attribute on an imageobject. Your 'fo-fop' does not match
'fo' in your
source file. So no imageobject is selected.
It looks like you are just trying to get the SVG for your fo
output. If
you leave the default 'use.role.for.mediaobject' set to 1
and leave the
role="fo" on the svg imageobject, it should work
for you automatically
without having to set the preferred.mediaobject.role
paramter.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs sagehill.net
----- Original Message -----
From: "Darya Said-Akbari" <darya_akbari yahoo.com>
To: <docbook-apps lists.oasis-open.org>
Sent: Monday, September 25, 2006 7:54 AM
Subject: [docbook-apps] Role attribute in
mediaobject/imageobject not
working for SVG
> Hi,
>
> I try to use the 'role=fo' or 'role=fo-fop' in my
> <imageobject>, unfortunately having not much
luck.
>
> My customization layer parameters are:
>
> <xsl:param
>
name="use.role.for.mediaobject">1</xsl:par
am> (for
> role=fo)
>
> plus
>
> <xsl:param
>
name="preferred.mediaobject.role">fo-fop</
xsl:param>
> (for role=fo-fop)
>
> My DocBook XML contains something like:
>
> <informalfigure>
> <mediaobject>
> <imageobject role="html">
> <imagedata
fileref="./Pictures/gif/test.gif"
> format="GIF"/>
> </imageobject>
> <imageobject role="fo">
> <imagedata
fileref="./Pictures/svg/test.svg"
> format="SVG"/>
> </imageobject>
> </mediaobject>
> </informalfigure>
>
> I receive an error from FOP when I use it this way and
> no error when I leave out the role=fo or role=fo-fop
> part.
>
> Am I missing something?
>
> Regards,
> Darya
>
>
>
>
___________________________________________________________
> Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
a>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
>
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|