From b2fb22b2999a8bedb6dfad9a1145f76b9446b513 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 7 Jul 2007 08:15:38 +0000 Subject: [PATCH] Added doc for the dbchoice choice PI, and fixes some problems with the db* start PI handling. --- xsl/common/common.xsl | 40 ++++----------------- xsl/common/pi.xsl | 83 +++++++++++++++++++++++++++++++++++++++++-- xsl/fo/lists.xsl | 14 +++++++- xsl/html/lists.xsl | 18 ++++++++-- 4 files changed, 115 insertions(+), 40 deletions(-) diff --git a/xsl/common/common.xsl b/xsl/common/common.xsl index 4ce112992..30476ef6e 100644 --- a/xsl/common/common.xsl +++ b/xsl/common/common.xsl @@ -1324,38 +1324,24 @@ pointed to by the link is one of the elements listed in - - - - - - - - - - - - - - + + + - - - - - + + 1 + select="$list/preceding::orderedlist[1]"/> 2 @@ -1375,7 +1361,6 @@ pointed to by the link is one of the elements listed in - @@ -1896,10 +1881,8 @@ unchanged. localized "choice" separator (for example, "and" or "or") before the final item in an inline list (though it could also be useful for generating choice separators for non-inline lists). - It currently works by evaluating a processing instruction (PI) of the form <?dbchoice choice="foo"?> : - if the value of the choice @@ -1911,16 +1894,13 @@ unchanged. choice pseudo-attribute - The latter is provided only as a temporary workaround because the locale files do not currently have translations for the word or. So if you want to generate a a logical "or" separator in French (for example), you currently need to do this: - <?dbchoice choice="ou"?> - The dbchoice processing instruction is an unfortunate hack; support for it may disappear in the future @@ -1930,14 +1910,9 @@ unchanged. - - - - choice - + - @@ -2017,5 +1992,4 @@ engine does not support it. - diff --git a/xsl/common/pi.xsl b/xsl/common/pi.xsl index da20e3fae..f048e91f6 100644 --- a/xsl/common/pi.xsl +++ b/xsl/common/pi.xsl @@ -16,10 +16,86 @@ See ../README or http://docbook.sf.net/release/xsl/current/ for copyright and other information. - This file contains general templates for processing processing - instructions common to multiple output formats. ******************************************************************** --> + + + + $Id$ + + + + The DocBook Project Development Team + + + + 2007 + The DocBook Project + + + Common Processing Instruction Reference + + Introduction + This is generated reference documentation for all + user-specifiable processing instructions (PIs) in the + “common” part of the DocBook XSL stylesheets. + + You add these PIs at particular points in a document to + cause specific “exceptions” to formatting/output behavior. To + make global changes in formatting/output behavior across an + entire document, it’s better to do it by setting an + appropriate stylesheet parameter (if there is one). + + + + + + + + Generates a localized choice separator + + Use the dbchoice choice PI to + generate an appropriate localized “choice” separator (for + example, and or or) + before the final item in an inline simplelist + + This PI is a less-than-ideal hack; support for it may + disappear in the future (particularly if and when a more + appropriate means for marking up "choice" lists becomes + available in DocBook). + + + + dbchoice choice="and"|"or"|string" + + + + choice="and" + + generates a localized and separator + + + choice="or" + + generates a localized or separator + + + choice="string" + + generates a literal string separator + + + + + + + + + + choice + + + Inserts a date timestamp @@ -46,7 +122,7 @@ padding="0"|"1" - Specifies padding behavior; if non-zer, padding is is added + Specifies padding behavior; if non-zero, padding is is added @@ -145,6 +221,7 @@ + diff --git a/xsl/fo/lists.xsl b/xsl/fo/lists.xsl index ee31ed093..ffdfaec9a 100644 --- a/xsl/fo/lists.xsl +++ b/xsl/fo/lists.xsl @@ -1271,5 +1271,17 @@ - + + + + + + + + + + + + + diff --git a/xsl/html/lists.xsl b/xsl/html/lists.xsl index a6edfb9c2..966d7c407 100644 --- a/xsl/html/lists.xsl +++ b/xsl/html/lists.xsl @@ -480,10 +480,10 @@ - + - + @@ -1087,5 +1087,17 @@ - + + + + + + + + + + + + + -- 2.40.0