I'll bet you are using xsltproc as your processor. It works fine if you
use Saxon as the processor.
It also works fine if you put the default namespace declaration on the root
element of the entities file (Links.xml):
<para xmlns="http://docbook.org/ns/docbook">
The problem seems to be that in xsltproc, the content included via the
system entity is not put into the DocBook namespace that is declared as the
default namespace in the root element of the main document. As a result,
the <link> element in the system entity is not matched by this template in
common/stripns.xsl:
<xsl:template match="ng:link|db:link" mode="stripNS">
and so it is not converted to a ulink for further processing (that's how
<link xlink:href> elements are handled in the current stylesheets). It is
left as a <link> element, and so when the docbook templates are applied, it
lacks a linkend attribute and doesn't form the link.
I tend to think that this is a bug in xsltproc.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From: <>
To: <>
Sent: Thursday, September 07, 2006 1:36 AM
Subject: [docbook-apps] Problem with links
> Hello
>
> I have a big problem I have these two files below:
> - If i let it run and generate output the link on the book tag works but
> not the link in file two it points to the document? Does anyone know how
> to solve that problem?:
>
> thanks peter
>
> file one:
>
> <?xml version='1.0'?>
>
> <!DOCTYPE book [
>
> <!ENTITY links SYSTEM "Links.xml">
> ]>
>
>
> <book xmlns="http://docbook.org/ns/docbook"
> xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:lang="en"
> >
> <info>
> <title></title>
>
> </info>
>
> <chapter>
> <title> </title>
> <para>
> <link xlink:href="http://www.msn.com"> http://www.msn.com</link>
> </para>
> <para>
> &links;
> </para>
>
>
> </chapter>
> </book>
>
> file two:
>
>
> <para>
> <table xml:id="links" frame='all'>
> <title>Link List</title>
>
> <tgroup cols='2' align='left' colsep='1' rowsep='1'>
> <colspec colname='Description'/>
> <colspec colname='Link'/>
>
> <tbody>
> <row>
> <entry>msn</entry>
> <entry>
> <link
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xlink:href="http://www.msn.com" >
> http://www.msn.com
> </link>
> </entry>
> </row>
> </tbody>
> </tgroup>
> </table>
>
> </para>
> --
>
>
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
>
>