OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Role attribute in mediaobject/imageobject not working for SVG


Hi Ray,
Normally the mediaobject templates do not respond to the condition 
attribute by default.  Are you running profiling and setting the 
profile.condition stylesheet parameter?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Miller, Ray (Centech)" <Ray.Miller@va.gov>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, September 25, 2006 9:32 AM
Subject: RE: [docbook-apps] Role attribute in mediaobject/imageobject not 
working for SVG


Try condition="html" and condition="fo"; works for me with imageobject 
utilizing Docbook-rng-5.0b7 and xsl 1.71.0

-----Original Message-----
From: Darya Said-Akbari [mailto:darya_akbari@yahoo.com]
Sent: Monday, September 25, 2006 12:14 PM
To: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Role attribute in mediaobject/imageobject not 
working for SVG

When I use

<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>

and only parameter

<xsl:param
name="use.role.for.mediaobject">1</xsl:param>

I again get my FOP error:

[java] [ERROR]
file:/E:/WORKSPACES/DOCBOOKTEST/docbook.publishing/output/docs/Benutzerhandbuch4PPaper2006_DocBook.fo:23:193
No meaningful layout in block after many attempts.
Infinite loop is assumed.  Processing halted.

Regards,
Darya


--- Bob Stayton <bobs@sagehill.net> schrieb:

> 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:param> (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
> >
> >
>
---------------------------------------------------------------------
> > 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
>
>







___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de

---------------------------------------------------------------------
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






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]