This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Transforming DocBook to PDF with FOP



>At 09:37 AM 6/3/01, Frederic Demians wrote:
> >I use FOP to transform a DocBook XML file. My source file contains a lot 
> of screen shot.
> >
> >Step 1: I transform XML DocBook file to a FO file with Norman XSL. 
> References to image file look like :
> >
> ><fo:external-graphic height="auto" width="auto" content-height="auto" 
> content-width="auto" src="url(file:img/resultat_image.jpg)"/>
> >
> >Step 2: I use FOP to transform my FO file to a PDF file. And I get an 
> error message for each image file reference:
> >
> >Error while creating area : no protocol : url(file:/img/resultat.jpg)
>
>try url(../img/resultat.jpg) or whatever the relative path is.
>
>HTH DaveP

Thanks. It doesn't work. I turn around this issue since a while now... I 
attached 3 files allowing to reproduce my error. If someone has few time to 
test... There is just to do:

fop dbtw.fo dbtw.pdf

When I try to do this transformation, FOP send me the above error message. 
I can't figure out what "no protocol" mean in this situation since file is 
here (visite_modif_champ.jpg) in the same directory as fo file.

Best,


Frédéric Demians
f.demians@tamil.fr
______________________________________
T A M I L
www.tamil.fr
72, rue Folie Méricourt, 75011 Paris, France
Tél. +33 1 48 07 88 34 -- Fax +33 1 43 49 02 98

visite_modif_champ.jpg

dbtw.xml

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; text-align="justify" font-size="10pt" font-family="Times Roman">
<fo:layout-master-set>
<fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="297mm" page-width="210mm" master-name="blank">
<fo:region-body margin-top="24pt" margin-bottom="24pt"/>
<fo:region-before extent="12pt" region-name="xsl-region-before-blank"/>
<fo:region-after extent="12pt" region-name="xsl-region-after-blank"/>
</fo:simple-page-master>
<fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="297mm" page-width="210mm" master-name="simple1">
<fo:region-body margin-top="24pt" margin-bottom="24pt"/>
<fo:region-before extent="12pt"/>
<fo:region-after extent="12pt"/>
</fo:simple-page-master>
<fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="297mm" page-width="210mm" master-name="left1">
<fo:region-body margin-top="24pt" margin-bottom="24pt"/>
<fo:region-before extent="12pt" region-name="xsl-region-before-left"/>
<fo:region-after extent="12pt" region-name="xsl-region-after-left"/>
</fo:simple-page-master>
<fo:simple-page-master margin-right="10pc" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="297mm" page-width="210mm" master-name="right1">
<fo:region-body margin-top="24pt" margin-bottom="24pt"/>
<fo:region-before extent="12pt" region-name="xsl-region-before-right"/>
<fo:region-after extent="12pt" region-name="xsl-region-after-right"/>
</fo:simple-page-master>
<fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="297mm" page-width="210mm" master-name="first1">
<fo:region-body margin-top="24pt" margin-bottom="24pt"/>
<fo:region-before extent="12pt" region-name="xsl-region-before-first"/>
<fo:region-after extent="12pt" region-name="xsl-region-after-first"/>
</fo:simple-page-master>
<fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="297mm" page-width="210mm" master-name="simple2">
<fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/>
<fo:region-before extent="12pt"/>
<fo:region-after extent="12pt"/>
</fo:simple-page-master>
<fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="297mm" page-width="210mm" master-name="left2">
<fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/>
<fo:region-before extent="12pt" region-name="xsl-region-before-left"/>
<fo:region-after extent="12pt" region-name="xsl-region-after-left"/>
</fo:simple-page-master>
<fo:simple-page-master margin-right="10pc" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="297mm" page-width="210mm" master-name="right2">
<fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/>
<fo:region-before extent="12pt" region-name="xsl-region-before-right"/>
<fo:region-after extent="12pt" region-name="xsl-region-after-right"/>
</fo:simple-page-master>
<fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="297mm" page-width="210mm" master-name="first2">
<fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/>
<fo:region-before extent="12pt" region-name="xsl-region-before-first"/>
<fo:region-after extent="12pt" region-name="xsl-region-after-first"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="titlepage1">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-name="first1"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<fo:page-sequence-master master-name="oneside1">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-name="simple1"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<fo:page-sequence-master master-name="twoside1">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference blank-or-not-blank="blank" master-name="blank"/>
<fo:conditional-page-master-reference odd-or-even="odd" master-name="right1"/>
<fo:conditional-page-master-reference odd-or-even="even" master-name="left1"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<fo:page-sequence-master master-name="titlepage2">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-name="first2"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<fo:page-sequence-master master-name="oneside2">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-name="simple2"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
<fo:page-sequence-master master-name="twoside2">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference blank-or-not-blank="blank" master-name="blank"/>
<fo:conditional-page-master-reference odd-or-even="odd" master-name="right2"/>
<fo:conditional-page-master-reference odd-or-even="even" master-name="left2"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fox:outline xmlns:fox="http://xml.apache.org/fop/extensions"; internal-destination="N2">
<fox:label>
			DB/TextWorks</fox:label>
<fox:outline internal-destination="N9">
<fox:label>1
		Pour commencer</fox:label>
</fox:outline>
</fox:outline>
<fo:page-sequence master-name="titlepage1" hyphenate="true" id="N2" language="fr">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:block font-family="Helvetica" font-weight="bold" font-size="24.8832pt" text-align="center" space-before="18.6624pt">
<fo:block hyphenate="false" keep-with-next.within-column="always">
			DB/TextWorks</fo:block>
</fo:block>
<fo:block font-family="Helvetica" font-weight="bold" font-size="20.736pt" text-align="center" space-before="15.552pt">
			Manuel utilisateur</fo:block>
<fo:block break-after="page"/>
<fo:block font-size="14.4pt" font-family="Helvetica" font-weight="bold">
<fo:block>
			DB/TextWorks: 
			Manuel utilisateur</fo:block>
</fo:block>
<fo:block break-after="page"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-name="titlepage1" format="i" hyphenate="true" language="fr">
<fo:flow flow-name="xsl-region-body">
<fo:block space-before.minimum="0.5em" space-before.optimum="1em" space-before.maximum="2em" space-after.minimum="0.5em" space-after.optimum="1em" space-after.maximum="2em">
<fo:block>
<fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" margin-left="-4pc" space-after="1em">Table des matières</fo:block>
</fo:block>
<fo:block last-line-end-indent="-2pc" end-indent="2pc" text-align-last="justify">
<fo:inline keep-with-next.within-line="always">1 
		Pour commencer</fo:inline>
<fo:inline keep-together.within-line="always"> <fo:leader keep-with-next.within-line="always" leader-pattern="dots"/> <fo:basic-link internal-destination="N9">
<fo:page-number-citation ref-id="N9"/>
</fo:basic-link>
</fo:inline>
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-name="oneside1" hyphenate="true" id="N9" language="fr" initial-page-number="1">
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="center">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"; font-size="10pt">Chapitre 1. 
		Pour commencer</fo:block>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block font-size="10pt" text-align="center">
<fo:page-number xmlns:fo="http://www.w3.org/1999/XSL/Format"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" margin-left="-4pc">
<fo:block hyphenate="false" keep-with-next.within-column="always">Chapitre 1. 
		Pour commencer</fo:block>
</fo:block>
</fo:block>
<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">
		Test</fo:block>
<fo:block>
<fo:external-graphic height="auto" width="auto" content-height="auto" content-width="auto" src="url(file:visite_modif_champ.jpg)"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]