OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]