I was able to reproduce the problem you describe using attached makefile
(please look at it to see which convertdoc commands I've used).

Now if I uncomment:

###OLINK_PARAMS=-p insert.olink.pdf.frag 1

and run:

make clean all

that is, if I pass parameter insert.olink.pdf.frag=1 to the DocBook XSL
stylesheets, this solves the problem.

I was not able to reproduce the problem at first because I used our own
working environment for that. And in our working environment, we have
always passed parameter insert.olink.pdf.frag=1 to the DocBook XSL
stylesheets.

Reference:

http://docbook.sourceforge.net/release/xsl/current/doc/fo/insert.olink.pdf.frag.html



Philippe Nobili wrote:
>  On 06/09/2011 04:00 PM, Hussein Shafie wrote:
>>
>> Sorry but I cannot reproduce the problem. Here's what I've done:
>>
> M. Shafie,
> 
> That's weird... We do reproduce the  problem with XXE 4.9.0 out of the
> box (that is, using the stock DocBook configuration, not our own).
> 
> Two DocBook articles:
> 
> 1) DINAT.xml
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
> "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
> <article id="uman_dinat">
>   <articleinfo>
>     <title>DINAT</title>
>   </articleinfo>
> 
>   <para>See <olink targetdoc="uman_mutan"></olink></para>
> </article>
> 
> 2) MUTAN.xml
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
> "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
> <article id="uman_mutan">
>   <articleinfo>
>     <title>MUTAN</title>
>   </articleinfo>
> 
>   <para>See <olink targetdoc="uman_dinat"></olink></para>
> </article>
> 
> One simple sitemap.xml (both PDF files supposed to be in the same location):
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <targetset>
>   <targetsetinfo>Created from dictionary: $Id:
>   //gct/batch/octopus/src/jxjob_dict/v3.09/dict.xml#1 $ Level:
>   6156</targetsetinfo>
> 
>   <sitemap>
>     <dir name=".">
>       <document baseuri="DINAT.pdf" targetdoc="uman_dinat">
>         <div element="article" href="#uman_dinat" targetptr="uman_dinat">
>           <xreftext>DINAT</xreftext>
>         </div>
>       </document>
> 
>       <document baseuri="MUTAN.pdf" targetdoc="uman_mutan">
>         <div element="article" href="#uman_mutan" targetptr="uman_mutan">
>           <xreftext>MUTAN</xreftext>
>         </div>
>       </document>
>     </dir>
>   </sitemap>
> </targetset>
> 
> *target.database.document* points to the absolute path of sitemap.xml
> 
> When we convert DINAT.xml and MUTAN.xml to PDF with *DocBook > Convert
> to PDF...*:
> 
> *If fop1.extensions=0*
> 
> OLinks are OK, we do not have the PDF bookmarks, but the OLinks work as
> expected; we get the hand pointer when the mouse passes over the olink,
> and clicking on the link opens the PDF file.
> 
> *if fop1.extensions=1*
> 
> This is all wrong; we do not have the hand pointer and the links are
> treated as external links;  This is the message we get for file
> MUTAN.pdf generated from MUTAN.xml this way (it should open DINAT.pdf
> instead...):
> 
> "*The document is trying to connect to
> file:///[your path goes here]/MUTAN.pdf%23dest=*"
> 
> Replacing the DocBook 1.76-1 XSL by the DocBook XSL delivered with XXE
> 4.7.0 solves the problem in XXE 4.9, as it did with our own customization.
> 
> I really do not see what we could have missed here..., but we do have a
> temporary solution for now...
OLINK_PARAMS=
###OLINK_PARAMS=-p insert.olink.pdf.frag 1

all: pdf1 pdf2

pdf1:
        convertdoc  -p fop1.extensions 1 \
                $(OLINK_PARAMS) \
                -p current.docid uman_dinat \
                -pu target.database.document sitemap.xml \
                docb.toPSFile DINAT.xml \
                -s pdf -s "|pdf" -s "/article toc" -s 1 -u DINAT.pdf

pdf2:
        convertdoc -p fop1.extensions 1 \
                $(OLINK_PARAMS) \
                -p current.docid uman_mutan \
                -pu target.database.document sitemap.xml \
                docb.toPSFile MUTAN.xml \
                -s pdf -s "|pdf" -s "/article toc" -s 1 -u MUTAN.pdf

clean:
        rm -f *~ *.pdf
 
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to