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] Xref to a figure

The usual way to reference a figure is to put the ID attribute on the figure
element, and then use that id value in the linkend attribute of an xref.
That generates something like "Figure 3.2".  The stylesheets don't support
xrefs to the caption inside a mediaobject inside a figure.

If you don't want the reference to say "Figure 3.1", then you have a couple
of options.  You can use a link element instead of xref, and supply whatever
text you want inside of it.  Or you can put an xreflabel attribute on any
element, and then any xref that points to the id of that element will use
the text of the xreflabel as the generated text.   See this refererence for
more information on xref options:


Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Erik Leunissen" <e.leunissen@hccnet.nl>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, July 02, 2004 1:28 PM
Subject: [docbook-apps] Xref to a figure

> L.S.
> I want to cross reference a figure in a docbook document that is going
> to be converted to HTML. I tried using the Xref element, but I don't
> know how to implement it correctly. After the conversion to HTML, the
> Xref element has been replaced by a triple question mark: "???", so
> something has gone wrong.
> This is what I did:
> - The Xref element has an attribute "Linkend". I assigned it a value
> "SomeTitle".
> - The figure that I intend to reference has a caption element, which has
> an attribute "ID". I assigned it the value "SomeTitle"
> - I converted the docbook XML document to HTML, using Saxon .
> Of course, I want the text "SomeTitle" to appear at the place of the
> reference, but that didn't happen (as described above).
> Can anybody indicate the correct recipe for what I want to achieve?
> Thanks in advance,
> Erik Leunissen
> ==============
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit

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