docbook-apps

RE: [docbook-apps] Customizing xref style by type

  • 1.  RE: [docbook-apps] Customizing xref style by type

    Posted 03-29-2012 00:57
    Thanks, just what I was looking for.


    -----Original Message-----
    From: Bob Stayton [mailto:bobs@sagehill.net]
    Sent: Wed 3/28/2012 8:03 PM
    To: Jeff Storey; docbook-apps@lists.oasis-open.org
    Subject: Re: [docbook-apps] Customizing xref style by type

    Yes, when you use xref for linking, the generated text can be customized per element. See:

    http://www.sagehill.net/docbookxsl/CustomXrefs.html

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    ----- Original Message -----
    From: Jeff Storey
    To: docbook-apps@lists.oasis-open.org
    Sent: Wednesday, March 28, 2012 11:28 AM
    Subject: [docbook-apps] Customizing xref style by type


    Is there a way to customize the cross reference link style based on what is being linked to? For example, I would like to use the Figure number when referencing a figure, but the section name when referencing a section.



    Thanks,

    Jeff