Re: Linking to a paragraph from another XML document

From: Date: Fri, 05 Dec 2008 15:00:10 +0000
Subject: Re: Linking to a paragraph from another XML document
References: 1 2 3 4  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969379785@lists.php.net to get a copy of this message
On 5 Dec 2008, at 14:31, Hannes Magnusson wrote:
On Fri, Dec 5, 2008 at 14:58, Anthony Bedford <Anthony.Bedford@sun.com> wrote:
Yeah, I think I'm not doing it correctly then as I was doing this: <para xml:id="mysqli.overview.mysqlnd">
      <emphasis role="bold">What is PHP's MySQL Native Driver?</emphasis>
</para> I think it's only going to work for a section title. :) The following *does* work however: <link linkend="mysqli.overview.mysqlnd">What is PHP's MySQL Native Driver?</link>
And that links to the exact paragraph? (mysql.overview.php#mysql.overview.mysqlnd)
Yes. It works fine.
I guess I could use an entity for the link text as you say.
If the <link linkend="">What is PHP's MysQl..</link> is going to be repeated a lot I would add the entire thing into a entity and use &link.whatis.mysqlnd; (en/language-snippets.ent).
OK if it gets to be something I use a lot I'll make it an entity, thanks.
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?
Not quite. Following the link takes me to the right document, but not down to the correct paragraph.
Right, its just missing the #id.of.the.paragraph fragment so the browser scrolls down to the anchor (that is; should be linking to mysql.overview.php#mysql.overview.mysqlnd, but is mysql.overview.php)?
Yes, that seems to be the problem. Thanks, Tony

« previous php.doc (#969379785) next »