From: Norman Walsh Date: Sun, 29 Dec 2002 14:35:59 +0000 (+0000) Subject: Updated documentation; added an example showing how to use xrefstyle in the stylesheets X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=097a27c397966fd1101aecb1c86cdae0f1ea02c2;p=docbook-dsssl Updated documentation; added an example showing how to use xrefstyle in the stylesheets --- diff --git a/xsl/params/use.role.as.xrefstyle.xml b/xsl/params/use.role.as.xrefstyle.xml index dc7ac2fe1..9f29e95c2 100644 --- a/xsl/params/use.role.as.xrefstyle.xml +++ b/xsl/params/use.role.as.xrefstyle.xml @@ -19,11 +19,73 @@ If non-zero, the role attribute on xref will be used to select the cross reference style. -It is likely that the DocBook -Technical Committee will eventually add an +The DocBook +Technical Committee recently added an xrefstyle attribute for this purpose. -Until then, this flag allows role to -serve that purpose. +If the xrefstyle attribute +is present, role will be ignored, regardless +of this setting. +Until an official DocBook release that includes the new +attribute, this flag allows role +to serve that purpose. + + + +Example + +The following small stylesheet shows how to configure the stylesheets to make +use of the cross reference style: + + + + + + + + + + + + + + + + + + +]]> + +With this stylesheet, the cross references in the following document: + + + +Book + + +Preface + +Normal: . +Title: . + + + + +First Chapter + +Irrelevant. + + +]]> + +will appear as: + + +Normal: Chapter 1. +Title: Chapter 1, First Chapter. + +