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...
Many thanks for your help.


 
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to