Re: Linking to a paragraph from another XML document
| From: | Hannes Magnusson | Date: | Fri, 05 Dec 2008 12:59:52 +0000 |
| Subject: | Re: Linking to a paragraph from another XML document | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969379782@lists.php.net to get a copy of this message | ||
On Fri, Dec 5, 2008 at 13:17, Anthony Bedford <Anthony.Bedford@sun.com> wrote:
> Hi,
>
> I need some help with getting linking to work please.
>
> I have the following in one XML document:
>
> <para xml:id="mysqli.overview.mysqlnd">
>
> and I want to link to it from another document. I'm using:
>
> <xref linkend="mysqli.overview.mysqlnd" />
I don't think PhD would paste in the content of the paragraph, doesn't
it just create an empty <a></a> element in this case?
IIRC the xref implementation requires either title as the first-child
of the endlink, or xreflabel on the endlink element.
In phpdoc we usually use entity magic to "copy&paste" the same content
again and again and again.
> However, when I re-configure and rebuild what I actually get is a link to is
> mysqli.overview, that is the top of the document, rather than the specific
> paragraph I want.
Hmh. mysqli.overview is the parent chunk of the paragraph right?
So the link is correct, just missing the fragment?
Could be a bug. I remember some issues with <link
linkend="not.a.chunk"> not returning fragments.. could be similar
problem now with xref..
-Hannes