forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iss...@cocoondev.org
Subject [issues] Created: (FOR-39) images does not display on pdf output if using a sdocbook source
Date Thu, 01 Jan 1970 00:00:00 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://issues.cocoondev.org/jira//secure/ViewIssue.jspa?key=FOR-39


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: FOR-39
    Summary: images does not display on pdf output if using a sdocbook source
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Forrest
  Component: Core operations
   Versions:
             HEAD

   Assignee: 
   Reporter: Juan Jose Pablos

    Created: Wed, 28 May 2003 12:33 PM
    Updated: Wed, 28 May 2003 12:33 PM

Description:
Test case:
Use a sdocbook xml file with an image within.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD Simplified DocBook XML V1.0//EN"
"http://www.oasis-open.org/docbook/xml/simple/1.0/sdocbook.dtd">
<article>
  <section>
    <title>Test for displaying images on sdocbook format</title>

    <figure>
      <title>figure title</title>

      <mediaobject>
        <imageobject>
          <imagedata fileref="images/forrest-credit-logo.png" />
        </imageobject>
      </mediaobject>
    </figure>
  </section>
</article>


forrest run
and http://localhost:8888/testpdf.xml

The output:
This is the previous xml now on doc-v11 as displayed for the localhost
<document>
<header>
<title>test page for pdf on sdocbook format</title>
<authors/>
</header>
<body>
<section id="Section+test+">
<title>Section test </title>
<p>This test should display a forrest logo below</p>
<table>
<tr>
<td>Forrest Logo </td>
</tr>
<title>Forrest Logo </title>
<mediaobject>
<imageobject>
<tr>
<td>
<img alt="" src="images/forrest-credit-logo.png"/>
</td>
</tr>
</imageobject>
</mediaobject>
</table>
</section>
</body>
</document>

<mediaobject> and <imageobject> are not valid doc-v11 documents!!

The problem is that docbook spec is diferent:

<graphic fileref="images/forrest-credit-logo.png"/>


Than in sdocbook:
<figure>
  <title>Forrest Logo </title>
  <mediaobject>
    <imageobject>
      <imagedata fileref="images/forrest-credit-logo.png" />
    </imageobject>
  </mediaobject>
</figure>

I fixed this for the sdocbook but breaks the docbook format:

Index: docbook2document.xsl
===================================================================
RCS file: /home/cvspublic/xml-forrest/src/resources/stylesheets/docbook2document.xsl,v
retrieving revision 1.7
diff -r1.7 docbook2document.xsl
62a63
>                          <xsl:apply-templates select="title"/>
449c450
<                   <xsl:apply-templates/>
---
>                   <xsl:apply-templates select="mediaobject/imageobject/imagedata"/>

a  work around would be to have a sdocbook2document.xsl and apply this patch:

Index: forrest.xmap
===================================================================
RCS file: /home/cvspublic/xml-forrest/src/resources/conf/forrest.xmap,v
retrieving revision 1.15
diff -r1.15 forrest.xmap
128c128
<             <map:transform src="resources/stylesheets/docbook2document.xsl" />
---
>             <map:transform src="resources/stylesheets/sdocbook2document.xsl" />





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org/jira//Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message