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] Cross references and label numbers?


Yes, olink is the solution to the problem of validating modular files that
have cross references to other modules.  It is a bit more complicated to set
up, but it will work for your application.  You will be able to validate
each chapter file, and when you process it you will get links that work and
have section numbers.

The link element doesn't use xrefstyle at all.  The xrefstyle attribute
provides hints for assembling generated text, and the link element doesn't
generate any text.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Martin Strandbygaard" <martin@strandbygaard.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, November 22, 2005 9:31 AM
Subject: [docbook-apps] Cross references and label numbers?


> Hi,
>
> Is it possible to format cross references with <link xl:href="..." />
> like those produced by <xref linkend="..." />?
>
> I'm using DocBook v5.0 schema, and XSL's v1.69 (saxon 6.5.4 and XEP)
> with a master document containing Xinclude's to files containing
> individual chapters, and I'm trying to cross reference from one chapter
> to another.
>
> When I do <xref linkend="..." xrefstyle="select: label"/> it will
> correctly print "Section X.Y", but of course now the file won't
> validate, as the xml:id is in a different file. If I do either: <link
> xl:href="..." xrefstyle="select: label" /> or <xref xl:href="..."
> xrefstyle="select: label" /> I get the section label, but "???" instead
> of the section number.
>
> I've looked at the section about olinks in
> http://www.sagehill.net/docbookxsl/index.html, but I can't really
> comprehend whether that is a solution to my problem?
>
> regards
> Martin Strandbygaard
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




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