Re: [docbook-apps] Which element for cross-document xref?

From
"Cob Rtayton"
Date
2006-06-20T00:16:24+00:00
ID
02fe01c693fe$b64577a0$6700a8c0@totoro
Thread
Re: [docbook-apps] Which element for cross-document xref?
Hi Jirka,
Do the current DocBook XSL stylesheets support <xref xlink:href="#foo"/> ?

Bob Stayton
Sagehill Enterprises
DocBook Consulting


----- Original Message ----- 
From: "Jirka Kosek" <>
To: <>
Cc: <>
Sent: Monday, June 19, 2006 12:48 AM
Subject: Re: [docbook-apps] Which element for cross-document xref?

W. Borgert wrote:

> I'm using xref happily in my document. Now I like to split the
> source into chapters, xincluded by a master file. That way any
> xref from one file to the another becomes invalid, because an
> IDREF (xref linkend) has to point to an ID in the same document,
> right? Shall I use another element instead of xref?

You can either silently ignore such error messages when validating
chapter alone, or use olink linking:

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

If you are using DocBook V5, you can use <xref xlink:href="#foo"/>
instead of <xref linkend="foo"/> to skip validation of ID/IDREFs.

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail:      http://www.kosek.cz
------------------------------------------------------------------
   Profesionální ¹kolení a poradenství v oblasti technologií XML.
      Podívejte se na ná¹ novì spu¹tìný web http://DocBook.cz
        Podrobný pøehled ¹kolení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
                    Nejbli¾¹í termíny ¹kolení:
        ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
     ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 **
------------------------------------------------------------------
   http://xmlguru.cz    Blog mostly about XML for English readers
------------------------------------------------------------------