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] Image callouts and roles


On 29 Sep, 2011,at 12:27 PM, Bob Stayton <bobs@sagehill.net> wrote:


Hi Chris,
Rendering two images side-by-side in FO output is not expected behavior.  The selection process takes into account all the allowed objects:
 
<xsl:template name="select.mediaobject.index">
  <xsl:param name="olist"
             select="imageobject|imageobjectco
                     |videoobject|audioobject|textobject"/>
   ...
 
You say you got both the .svg and the .png image in your FO output?  I copied and pasted your example into a test file and processed it with the stock 1.76.1 stylesheet and I got just the .svg image.

 
Sorry, I was trying several different things and screwed up my test case. The following includes both images when transformed to FO with the stock 1.76.1 fo/docbook.xsl stylesheet:

    <screenshot>
      <mediaobject>
    <imageobjectco>
      <areaspec>
        <area coords="500,500,600,600" xml:id="example-co"/>
      </areaspec>
      <imageobject role="fo">
        <imagedata fileref="/path/to/MVC-DIT-structure.svg"/>
      </imageobject>
      <imageobject role="html">
        <imagedata fileref="/path/to/MVC-DIT-structure.png"/>
      </imageobject>
    </imageobjectco>
      </mediaobject>
    </screenshot>

That is, one imageobjectco containing two imageobjects that differ by role. My transformation is done using:

$ xsltproc --nonet --xinclude --stringparam xep.extensions 1 --output article.fo /path/to/docbook-xsl-1.76.1/fo/docbook.xsl article.xml

Cheers,

Chris


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