This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Making a cross reference


Jirka Kosek wrote:
Lucas Brasilino wrote:

<xref linkend="aa">Some comment</xref>
...
<sect1 id="aa"><title>Comments around this</title></sect1>
...
    Should generate:

<a href="#aa">Some comment</a>


Use link instead of xref. xref creates text of link automatically, while link lets you specify your own.

You can also use the xreflabel attribute at the element where xref points to, like that:


<sect1 id="aa" xreflabel="Some comment"><title>Comments around this</title></sect1>

See http://www.docbook.org/tdg/en/html/ref-elements.html#common.attributes

Regards,
Gisbert Amm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]