Schild Martin wrote:
In my DITA-File, I have a list with xref-Elements. (See attached files.)
technotes_OpaccOneInstallation_uebersicht.dita contains link to
technotes_OpaccOneInstallation_Installation.dita
When I convert the DITA-Files to WebHelp, one of the list-Elements becomes a
reference to a file.
In this context, that's wrong.
The links to the other DITA-Files are OK. In the converted html-File the other
links are working properly.
Part from the converted html-File (output)
<ul class="compact-ul">
<li class="li">
<div class="p"><b class="b"><a class="xref"
href="file:/D:/Repositories/Doc/Content/de/topics/opaccone/technotes/system-admin/technotes_OpaccOneInstallation_Installation.dita">Installation</a></b>
(ein Mal vorhanden)
</div>
<div class="p">Dieser Abschnitt enthält Informationen die pro
Installation nur einmal vorkommen.
</div>
</li>
<li class="li">
<div class="p"><b class="b"><a class="xref"
href="technotes_OpaccOneInstallation_SQL.html#OpaccOneInstallation_SQL">SqlDatabase</a></b>
(ein Mal vorhanden)
</div>
<div class="p">Dieser Abschnitt enthält die für die
SQL-Datenbank notwendigen Konfigurationsangaben.
</div>
</li>
I can't see what is the error. But it seems, that something is wrong in my
DITA-Files.
I'm sorry but I cannot reproduce this issue using the 2 topic files you
sent us and the very simple bookmap attached to this email. (Give it a
try and you'll see it works fine.)
My guess is that your DITA *map* never references file
"technotes_OpaccOneInstallation_Installation.dita". Only *topic*
"technotes_OpaccOneInstallation_uebersicht.dita" contains a link to
"technotes_OpaccOneInstallation_Installation.dita".
In such case, XMLmind DITA Converter reports this warning:
---
file:/home/hussein/tmp/opacc/technotes_OpaccOneInstallation_uebersicht.dita:35:63:
"file:/home/hussein/tmp/opacc/technotes_OpaccOneInstallation_Installation.dita",
href points outside processed topics
---
then considers "technotes_OpaccOneInstallation_Installation.dita" as
being an external resource. Hence the absolute file URL.
Note that running "Map|Check Map" (very handy; see
http://www.xmlmind.com/xmleditor/_distrib/doc/dita/help-2.html#map_menu)
at any time will cause XMLmind to also report this warning.
Note that this is a documented limitation of XMLmind DITA Converter (AKA
ditac):
---
- Ditac reports a "topicB, href points outside processed topics" warning
when topicA references topicB and topicB is not referenced in the map.
In order to suppress this warning, add to the map a <topicref> having
attribute toc="no" and pointing to topicB.
---
http://www.xmlmind.com/ditac/_distrib/doc/manual/limitations.html#limitations
If this is not a mistake (e.g. your map is not a work in progress), the
only workaround is to add somewhere in your map a topicref (of any kind)
having href="technotes_OpaccOneInstallation_Installation.dita" and toc="no".
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN"
"bookmap.dtd">
<bookmap>
<title>Test</title>
<frontmatter>
<booklists>
<toc/>
</booklists>
</frontmatter>
<chapter href="technotes_OpaccOneInstallation_uebersicht.dita">
<topicref href="technotes_OpaccOneInstallation_Installation.dita" toc="no"/>
</chapter>
</bookmap>
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support