From: Michael Smith Date: Tue, 17 Jul 2007 13:56:09 +0000 (+0000) Subject: Make all common stylesheets with embedded doc valid against our X-Git-Tag: release/1.79.1~6^2~1940 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=163b86a32bdb186ff73c5d04711e3ff4c53dd3fa;p=docbook-dsssl Make all common stylesheets with embedded doc valid against our litprog grammar. --- diff --git a/xsl/common/common.xsl b/xsl/common/common.xsl index 448428677..0f6c378f9 100644 --- a/xsl/common/common.xsl +++ b/xsl/common/common.xsl @@ -18,11 +18,11 @@ + Common » Base Template Reference $Id$ - Common » Base Template Reference Introduction @@ -169,7 +169,7 @@ manvolnum This template calculates the hierarchical level of a section. -The element sect1 is at level 1, sect2 is +The element sect1 is at level 1, sect2 is at level 2, etc. Recursive sections are calculated down to the fifth level. @@ -1871,13 +1871,13 @@ unchanged. (PI) of the form <?dbchoice choice="foo"?> : - if the value of the choice + if the value of the choice pseudo-attribute is "and" or "or", returns a localized "and" or "or" otherwise returns the literal value of the - choice pseudo-attribute + choice pseudo-attribute The latter is provided only as a temporary workaround because the @@ -1888,7 +1888,7 @@ unchanged. <?dbchoice choice="ou"?> - The dbchoice processing instruction is + The dbchoice processing instruction is an unfortunate 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). diff --git a/xsl/common/refentry.xsl b/xsl/common/refentry.xsl index d3fa7dd5c..892b9fb72 100644 --- a/xsl/common/refentry.xsl +++ b/xsl/common/refentry.xsl @@ -18,11 +18,11 @@ + Common » Refentry Metadata Template Reference $Id$ - Common » Refentry Metadata Template Reference Introduction @@ -45,27 +45,27 @@ etc., is sometimes viewed in isolation from its greater "context". For example, users view Unix man pages as, well, individual pages, not as part of a "book" of some kind. Therefore, it is sometimes necessary to - embed "context" information in output for each refentry. + embed "context" information in output for each refentry. However, one problem is that different users mark up that context information in different ways. Often (usually), the context information is not actually part of the content of the - refentry itself, but instead part of the content of a - parent or ancestor element to the the refentry. And + refentry itself, but instead part of the content of a + parent or ancestor element to the the refentry. And even then, DocBook provides a variety of elements that users might potentially use to mark up the same kind of information. One user - might use the productnumber element to mark up version + might use the productnumber element to mark up version information about a particular product, while another might use - the releaseinfo element. + the releaseinfo element. Taking all that in mind, the get.refentry.metadata template tries to gather - metadata from a refentry element and its ancestor + metadata from a refentry element and its ancestor elements in an intelligent and user-configurable way. The basic mechanism used in the XPath expressions throughout this stylesheet is to select the relevant metadata from the *info element that is - closest to the actual refentry â€“ either on the - refentry itself, or on its nearest ancestor. + closest to the actual refentry â€“ either on the + refentry itself, or on its nearest ancestor. The get.refentry.metadata @@ -80,13 +80,13 @@ refname - The first refname in the refentry + The first refname in the refentry info - A set of info nodes (from a refentry + A set of info nodes (from a refentry element and its ancestors) @@ -183,23 +183,23 @@ The man(7) man page describes this as "the title of the man page (e.g., MAN). This differs - from refname in that, if the refentry has a - refentrytitle, we use that as the title; - otherwise, we just use first refname in the first - refnamediv in the source. + from refname in that, if the refentry has a + refentrytitle, we use that as the title; + otherwise, we just use first refname in the first + refnamediv in the source. refname - The first refname in the refentry + The first refname in the refentry - Returns a title node. + Returns a title node. @@ -221,8 +221,8 @@ The man(7) man page describes this as "the section number the man page should be placed in (e.g., - 7)". If we do not find a manvolnum - specified in the source, and we find that the refentry is + 7)". If we do not find a manvolnum + specified in the source, and we find that the refentry is for a function, we use the section number 3 ["Library calls (functions within program libraries)"]; otherwise, we default to using 1 ["Executable programs or shell @@ -233,7 +233,7 @@ refname - The first refname in the refentry + The first refname in the refentry @@ -312,13 +312,13 @@ refname - The first refname in the refentry + The first refname in the refentry info - A set of info nodes (from a refentry + A set of info nodes (from a refentry element and its ancestors) @@ -331,7 +331,7 @@ - Returns a date node. + Returns a date node. @@ -484,13 +484,13 @@ refname - The first refname in the refentry + The first refname in the refentry info - A set of info nodes (from a refentry + A set of info nodes (from a refentry element and its ancestors) @@ -504,7 +504,7 @@ - Returns a source node. + Returns a source node. @@ -600,13 +600,13 @@ refname - The first refname in the refentry + The first refname in the refentry info - A set of info nodes (from a refentry + A set of info nodes (from a refentry element and its ancestors) @@ -784,13 +784,13 @@ refname - The first refname in the refentry + The first refname in the refentry info - A set of info nodes (from a refentry + A set of info nodes (from a refentry element and its ancestors) @@ -970,13 +970,13 @@ refname - The first refname in the refentry + The first refname in the refentry info - A set of info nodes (from a refentry + A set of info nodes (from a refentry element and its ancestors) @@ -990,7 +990,7 @@ - Returns a manual node. + Returns a manual node. @@ -1129,25 +1129,25 @@ Gets user preferences for refentry metadata gathering The DocBook XSL stylesheets include several user-configurable - global stylesheet parameters for controlling refentry + global stylesheet parameters for controlling refentry metadata gathering. Those parameters are not read directly by the - other refentry metadata-gathering + other refentry metadata-gathering templates. Instead, they are read only by the get.refentry.metadata.prefs template, which assembles them into a structure that is then passed to - the other refentry metadata-gathering + the other refentry metadata-gathering templates. So the, get.refentry.metadata.prefs template is the only interface to collecting stylesheet parameters for - controlling refentry metadata gathering. + controlling refentry metadata gathering. There are no local parameters for this template; however, it does rely on a number of global parameters. - Returns a manual node. + Returns a manual node. @@ -1212,7 +1212,7 @@ refname - The first refname in the refentry + The first refname in the refentry diff --git a/xsl/common/table.xsl b/xsl/common/table.xsl index 9c0c49844..562d3412a 100644 --- a/xsl/common/table.xsl +++ b/xsl/common/table.xsl @@ -124,17 +124,17 @@ Determine the column number in which a given entry occurs -If an entry has a -colname or -namest attribute, this template +If an entry has a +colname or +namest attribute, this template will determine the number of the column in which the entry should occur. -For other entrys, nothing is returned. +For other entrys, nothing is returned. entry -The entry-element which is to be tested. +The entry-element which is to be tested. diff --git a/xsl/common/utility.xsl b/xsl/common/utility.xsl index 3c01be0ba..f6b3a0186 100644 --- a/xsl/common/utility.xsl +++ b/xsl/common/utility.xsl @@ -3,6 +3,7 @@ xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:dyn="http://exslt.org/dynamic" xmlns:saxon="http://icl.com/saxon" + xmlns:xlink="http://www.w3.org/1999/xlink" exclude-result-prefixes="doc dyn saxon" version='1.0'> @@ -17,11 +18,11 @@ ******************************************************************** --> + Common » Utility Template Reference $Id$ - Common » Utility Template Reference Introduction @@ -240,11 +241,11 @@ character). This function began as a copy of Nate Austin's - prepend-pad function in the Padding - Content section of Dave Pawson's XSLT - FAQ. + prepend-pad function in the Padding + Content section of Dave Pawson's XSLT + FAQ.