As Dave says, olink works and there's a very nice description
in Bob Stayton's book.
If your application is simpler; for example, if you only need
links to work after the xinclude process has pulled together
a complete document, you can get away with xref, provided that
you keep the ids unique across your files.
The caveat is that if you run the stylesheets on an individual
chapter that references outside itself, you'll get ??? in place
of your link. But, if you only care about having the links work
after everything has been xincluded into your book, that shouldn't
be a problem.
For styling your cross references, Bob's book is once again the
place to go. Check out the following section for details:
http://www.sagehill.net/docbookxsl/CustomXrefs.htmlHope that helps,
Dick Hamilton
> -----Original Message-----
> From: Dave Pawson [mailto:
davep@...]
> Sent: Wednesday, August 29, 2007 4:21 AM
> To: fips
> Cc:
docbook@...
> Subject: Re: [docbook] Page References with Page Numbers
>
>
> fips wrote:
> > Hi
> >
> > I am using docbook 5 with xinclude.
> >
> > I intend to write books using xinclude very often (each chapter is a
> > separate xml-File, which makes it easy to generate new
> books for new courses
> > in a short time.)
> >
> > I have not found a way to generate references from one part
> to another. They
> > should all look like the following in the pdf-output:
> >
> > "(See Chapter XYZ "NAME OF CHAPTER" on page. ABC)"
> >
> > Under latex I had a simple script for that purppose:
> > \newcommand*\totalref[1]{(S. Kap. \ref{#1} auf Seite \pageref{#1})}
> > Is there something similar under docbook5?
> >
> > What is the standard way to do this?
>
>
> Not sure 'standard' is the right word, but
> olink works.
>
http://www.sagehill.net/docbookxsl/Olinking.htmlVery clear, very helpful.
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk---------------------------------------------------------------------
To unsubscribe, e-mail:
docbook-unsubscribe@...
For additional commands, e-mail:
docbook-help@...
---------------------------------------------------------------------
To unsubscribe, e-mail:
docbook-unsubscribe@...
For additional commands, e-mail:
docbook-help@...