From 140d836e9cd54fb67b969fd82ef7ed19ba574d40 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Sat, 26 Apr 2014 15:11:58 +0200 Subject: Imported Upstream version 2.3.1 --- .../serna/scons/docbook-xsl-serna/NW-COPYING | 49 + .../serna/scons/docbook-xsl-serna/biblio.xsl | 1043 +++++++++++ .../serna/scons/docbook-xsl-serna/blocks.xsl | 781 ++++++++ .../serna/scons/docbook-xsl-serna/common-table.xsl | 444 +++++ .../serna/scons/docbook-xsl-serna/common.xsl | 451 +++++ .../serna/scons/docbook-xsl-serna/compounds.xsl | 126 ++ .../serna/scons/docbook-xsl-serna/divisions.xsl | 88 + .../serna/scons/docbook-xsl-serna/docbook.xsl | 54 + .../serna/scons/docbook-xsl-serna/formal.xsl | 216 +++ .../serna/scons/docbook-xsl-serna/gentext.xsl | 500 +++++ .../serna/scons/docbook-xsl-serna/glossary.xsl | 423 +++++ .../serna/scons/docbook-xsl-serna/graphics.xsl | 269 +++ .../serna/scons/docbook-xsl-serna/inlines.xsl | 939 ++++++++++ .../serna/scons/docbook-xsl-serna/l10n.xsl | 438 +++++ .../serna/scons/docbook-xsl-serna/l10n/af.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/bg.xml | 456 +++++ .../serna/scons/docbook-xsl-serna/l10n/ca.xml | 457 +++++ .../serna/scons/docbook-xsl-serna/l10n/cs.xml | 455 +++++ .../serna/scons/docbook-xsl-serna/l10n/da.xml | 457 +++++ .../serna/scons/docbook-xsl-serna/l10n/de.xml | 457 +++++ .../serna/scons/docbook-xsl-serna/l10n/el.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/en.xml | 481 +++++ .../serna/scons/docbook-xsl-serna/l10n/es.xml | 459 +++++ .../serna/scons/docbook-xsl-serna/l10n/et.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/eu.xml | 455 +++++ .../serna/scons/docbook-xsl-serna/l10n/fi.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/fr.xml | 458 +++++ .../serna/scons/docbook-xsl-serna/l10n/he.xml | 455 +++++ .../serna/scons/docbook-xsl-serna/l10n/hu.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/id.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/it.xml | 455 +++++ .../serna/scons/docbook-xsl-serna/l10n/ja.xml | 456 +++++ .../serna/scons/docbook-xsl-serna/l10n/ko.xml | 452 +++++ .../serna/scons/docbook-xsl-serna/l10n/l10n.dtd | 45 + .../serna/scons/docbook-xsl-serna/l10n/l10n.xml | 83 + .../serna/scons/docbook-xsl-serna/l10n/lt.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/nl.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/nn.xml | 460 +++++ .../serna/scons/docbook-xsl-serna/l10n/no.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/pl.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/pt.xml | 456 +++++ .../serna/scons/docbook-xsl-serna/l10n/pt_br.xml | 451 +++++ .../serna/scons/docbook-xsl-serna/l10n/ro.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/ru.xml | 484 +++++ .../serna/scons/docbook-xsl-serna/l10n/sk.xml | 454 +++++ .../serna/scons/docbook-xsl-serna/l10n/sl.xml | 451 +++++ .../serna/scons/docbook-xsl-serna/l10n/sr.xml | 450 +++++ .../serna/scons/docbook-xsl-serna/l10n/sv.xml | 451 +++++ .../serna/scons/docbook-xsl-serna/l10n/th.xml | 463 +++++ .../serna/scons/docbook-xsl-serna/l10n/tr.xml | 458 +++++ .../serna/scons/docbook-xsl-serna/l10n/uk.xml | 484 +++++ .../serna/scons/docbook-xsl-serna/l10n/vi.xml | 453 +++++ .../serna/scons/docbook-xsl-serna/l10n/xh.xml | 456 +++++ .../serna/scons/docbook-xsl-serna/l10n/zh_cn.xml | 447 +++++ .../serna/scons/docbook-xsl-serna/l10n/zh_tw.xml | 448 +++++ .../serna/scons/docbook-xsl-serna/lists.xsl | 803 ++++++++ .../serna/scons/docbook-xsl-serna/parameters.xsl | 435 +++++ .../serna/scons/docbook-xsl-serna/qandaset.xsl | 216 +++ .../serna/scons/docbook-xsl-serna/refentry.xsl | 189 ++ .../serna/scons/docbook-xsl-serna/serna-table.xsl | 641 +++++++ .../serna/scons/docbook-xsl-serna/synopsis.xsl | 998 ++++++++++ .../serna/scons/docbook-xsl-serna/table.xsl | 1103 +++++++++++ .../docbook-xsl-serna/titlepage.generator.xsl | 1218 ++++++++++++ .../docbook-xsl-serna/titlepage.templates.xml | 412 ++++ .../docbook-xsl-serna/titlepage.templates.xsl | 1969 ++++++++++++++++++++ .../serna/scons/docbook-xsl-serna/titlepage.xsl | 772 ++++++++ .../serna/scons/docbook-xsl-serna/titles.xsl | 511 +++++ .../serna/scons/docbook-xsl-serna/toc.labels.xsl | 553 ++++++ .../serna/scons/docbook-xsl-serna/toc.titles.xsl | 525 ++++++ .../serna/scons/docbook-xsl-serna/toc.xsl | 304 +++ .../serna/scons/docbook-xsl-serna/xref.xsl | 624 +++++++ 71 files changed, 35035 insertions(+) create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/NW-COPYING create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/biblio.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/blocks.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/common-table.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/common.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/divisions.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/docbook.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/formal.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/gentext.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/glossary.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/graphics.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/inlines.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/af.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/bg.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ca.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/cs.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/da.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/de.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/el.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/en.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/es.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/et.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/eu.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/fi.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/fr.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/he.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/hu.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/id.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/it.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ja.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ko.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/l10n.dtd create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/l10n.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/lt.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/nl.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/nn.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/no.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pl.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pt.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pt_br.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ro.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ru.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sk.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sl.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sr.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sv.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/th.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/tr.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/uk.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/vi.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/xh.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/zh_cn.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/zh_tw.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/lists.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/parameters.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/qandaset.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/refentry.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/serna-table.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/synopsis.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/table.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.generator.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.templates.xml create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.templates.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/titles.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/toc.labels.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/toc.titles.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/toc.xsl create mode 100644 doc/editor_configs/serna/scons/docbook-xsl-serna/xref.xsl (limited to 'doc/editor_configs/serna/scons/docbook-xsl-serna') diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/NW-COPYING b/doc/editor_configs/serna/scons/docbook-xsl-serna/NW-COPYING new file mode 100644 index 0000000..6cd267d --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/NW-COPYING @@ -0,0 +1,49 @@ +Syntext Serna Stylesheet for DocBook is based on Norman Walsh +stylesheet for Docbook, that was coming with the following +copyright notice: + +Copyright +--------- + +Copyright (C) 1999, 2000, 2001, 2002 Norman Walsh + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the ``Software''), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +Except as contained in this notice, the names of individuals +credited with contribution to this software shall not be used in +advertising or otherwise to promote the sale, use or other +dealings in this Software without prior written authorization +from the individuals in question. + +Any stylesheet derived from this Software that is publically +distributed will be identified with a different name and the +version strings in any derived Software will be changed so that +no possibility of confusion between the derived package and this +Software will exist. + +Warranty +-------- + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER +CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +Contacting the Author +--------------------- + +These stylesheets are maintained by Norman Walsh, . diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/biblio.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/biblio.xsl new file mode 100644 index 0000000..d0bb9b2 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/biblio.xsl @@ -0,0 +1,1043 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + + ] + + + [ + + ] + + + [ + + ] + + + [ + + ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + copyright + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/blocks.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/blocks.xsl new file mode 100644 index 0000000..5c23e1b --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/blocks.xsl @@ -0,0 +1,781 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + —  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + " + + " + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + + + + + : + + ] + + + + + + + + + + + + + + + + + + + + + + + + + + Summary + + + + + + + + + + + Builder ' + + ' + + + + + + + + + + + CVar ' + + ' + + + + + + + + + + + Function ' + + ' + + + + + + + + + + + Tool ' + + ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + —  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2em + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + ) + + + + + + + + + + + End of range + + + + + + + + + + + + + + + + + + + + + + + + + + + + See also: + + + See: + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/common-table.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/common-table.xsl new file mode 100644 index 0000000..4bf89ca --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/common-table.xsl @@ -0,0 +1,444 @@ + + + + + + + + + + + + 0: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0: + + + : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/common.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/common.xsl new file mode 100644 index 0000000..0683f5e --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/common.xsl @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + component + division + 0 + + + + + + + + 1 + 0 + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + , + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + , + + , + + + + - + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + bullet + + + o + © + + + ® + (SM) + " + " + ' + ' + -- + - + o + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [FAMILY Given] + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +[ +] +{ +} + + +[ +] +... + + + | +4pi + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl new file mode 100644 index 0000000..430cec0 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/compounds.xsl @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/divisions.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/divisions.xsl new file mode 100644 index 0000000..f740eb6 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/divisions.xsl @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/docbook.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/docbook.xsl new file mode 100644 index 0000000..fd2c4b8 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/docbook.xsl @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/formal.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/formal.xsl new file mode 100644 index 0000000..0f292cf --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/formal.xsl @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + always + + + always + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + before + + + + + + + + + + + + + + + + + + + + + + before + + + + + + + + + + + + + + + + + + + + + + before + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/gentext.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/gentext.xsl new file mode 100644 index 0000000..e7de5f5 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/gentext.xsl @@ -0,0 +1,500 @@ + + + + + + + + + + + + / + + + + + + + + + + + + / + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .formal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Xref is only supported to listitems in an + orderedlist: + + + ??? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + Attempt to use %d in gentext with no referrer! + + + + + + + % + + + % + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/glossary.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/glossary.xsl new file mode 100644 index 0000000..8a116d6 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/glossary.xsl @@ -0,0 +1,423 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + , + + + + + + + + , + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + + + , + + + + + + + , + + + + + + + , + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + , + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/graphics.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/graphics.xsl new file mode 100644 index 0000000..43088f7 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/graphics.xsl @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + " + + " + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + + 1 + 0 + + + + + + 0 + 1.0 + + + + 1.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + auto + + + + auto + + + + + + auto + + + + auto + + + + + + auto + + + + + + % + + scale-to-fit + auto + + + + + + auto + + + + + + % + + auto + + + + + + + + + + + + + before + center + after + auto + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/inlines.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/inlines.xsl new file mode 100644 index 0000000..7a31774 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/inlines.xsl @@ -0,0 +1,939 @@ + + + + + + 0pt + 0pt + + + + 0pt + 0pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + < + + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + element + + + + + + + + + + + + + + + </ + + > + + + + + & + + ; + + + + + &# + + ; + + + + + % + + ; + + + + + <? + + > + + + + + <? + + ?> + + + + + < + + > + + + + + < + + /> + + + + + <!-- + + --> + + + + + + + + + + + [ + + ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + + ] + + + + + + + + + + [ + + ] + + + + + + + + + + + [ + + ] + + + + + + + + + + + + [] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + © + + + + + +   + + + + + + + + + + + + + + + + + + + " + + " + (anchor: + + + + + + no ID + + + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + [ + + + + + : + + + + + ] + + + + + + + + + + + + + + [ + + + + + ] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + + - + + + + + + + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n.xsl new file mode 100644 index 0000000..befb4d9 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n.xsl @@ -0,0 +1,438 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + _ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + l10n.language: No localization exists for " + + " or " + + ". Using default " + + ". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gentext: No " + + " localization of " + + " exists + + + . + + + ; using "en". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + bullet + + + + + + + + + + + + + + + gentext.dingbat: No " + + " localization of dingbat + + exists; using "en". + + + + + + + + + + + startquote + + + + + + + endquote + + + + + + + nestedstartquote + + + + + + + nestedendquote + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gentext.template: No " + + " localization exists. + + + + + + + + gentext.template: No context named " + + " exists in the " + + " localization. + + + + + + + + + + + + + + + + + + + + + + + + + gentext.template: No template for " + + " (or any of its leaves) exists +in the context named " + + " in the " + + " localization. + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + 0 + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/af.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/af.xml new file mode 100644 index 0000000..028c812 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/af.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/bg.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/bg.xml new file mode 100644 index 0000000..68e69c5 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/bg.xml @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ca.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ca.xml new file mode 100644 index 0000000..54779cb --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ca.xml @@ -0,0 +1,457 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/cs.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/cs.xml new file mode 100644 index 0000000..dbff9e4 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/cs.xml @@ -0,0 +1,455 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/da.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/da.xml new file mode 100644 index 0000000..072eb09 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/da.xml @@ -0,0 +1,457 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/de.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/de.xml new file mode 100644 index 0000000..a9d279a --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/de.xml @@ -0,0 +1,457 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/el.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/el.xml new file mode 100644 index 0000000..7401c22 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/el.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/en.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/en.xml new file mode 100644 index 0000000..f46201d --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/en.xml @@ -0,0 +1,481 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/es.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/es.xml new file mode 100644 index 0000000..f6ef734 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/es.xml @@ -0,0 +1,459 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/et.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/et.xml new file mode 100644 index 0000000..f2ead71 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/et.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/eu.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/eu.xml new file mode 100644 index 0000000..7bb2ba5 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/eu.xml @@ -0,0 +1,455 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/fi.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/fi.xml new file mode 100644 index 0000000..5582987 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/fi.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/fr.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/fr.xml new file mode 100644 index 0000000..8d74773 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/fr.xml @@ -0,0 +1,458 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/he.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/he.xml new file mode 100644 index 0000000..68f47ad --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/he.xml @@ -0,0 +1,455 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/hu.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/hu.xml new file mode 100644 index 0000000..01eb18e --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/hu.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/id.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/id.xml new file mode 100644 index 0000000..1620995 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/id.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/it.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/it.xml new file mode 100644 index 0000000..b79adea --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/it.xml @@ -0,0 +1,455 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ja.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ja.xml new file mode 100644 index 0000000..ad95901 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ja.xml @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ko.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ko.xml new file mode 100644 index 0000000..e4a1c29 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ko.xml @@ -0,0 +1,452 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/l10n.dtd b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/l10n.dtd new file mode 100644 index 0000000..b6fd0c1 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/l10n.dtd @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/l10n.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/l10n.xml new file mode 100644 index 0000000..d74e0b6 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/l10n.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + +⁡ +&bg; +&ca; +&cs; +&da; +&de; +⪙ +&en; +&es; +&et; +&eu; +&fi; +&fr; +&he; +&hu; +&id; +⁢ +&ja; +&ko; +&lit; +&nl; +&nn; +&no; +&pl; +&pt; +&pt_br; +&ro; +&ru; +&sk; +&sl; +&sr; +&sv; +&th; +&tr; +&uk; +&vi; +&xh; +&zh_cn; +&zh_tw; + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/lt.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/lt.xml new file mode 100644 index 0000000..5b4891d --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/lt.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/nl.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/nl.xml new file mode 100644 index 0000000..fe67e8d --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/nl.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/nn.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/nn.xml new file mode 100644 index 0000000..de5cf9f --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/nn.xml @@ -0,0 +1,460 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/no.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/no.xml new file mode 100644 index 0000000..cd7ed43 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/no.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pl.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pl.xml new file mode 100644 index 0000000..df8f879 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pl.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pt.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pt.xml new file mode 100644 index 0000000..7a1c7e1 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pt.xml @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pt_br.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pt_br.xml new file mode 100644 index 0000000..6b927c3 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/pt_br.xml @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ro.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ro.xml new file mode 100644 index 0000000..1fac0ed --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ro.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ru.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ru.xml new file mode 100644 index 0000000..b7d26fc --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/ru.xml @@ -0,0 +1,484 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sk.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sk.xml new file mode 100644 index 0000000..3bccd32 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sk.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sl.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sl.xml new file mode 100644 index 0000000..c4bf197 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sl.xml @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sr.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sr.xml new file mode 100644 index 0000000..86f92bd --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sr.xml @@ -0,0 +1,450 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sv.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sv.xml new file mode 100644 index 0000000..93a03c5 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/sv.xml @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/th.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/th.xml new file mode 100644 index 0000000..8a78174 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/th.xml @@ -0,0 +1,463 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/tr.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/tr.xml new file mode 100644 index 0000000..5fb397f --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/tr.xml @@ -0,0 +1,458 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/uk.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/uk.xml new file mode 100644 index 0000000..6acb421 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/uk.xml @@ -0,0 +1,484 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/vi.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/vi.xml new file mode 100644 index 0000000..8607488 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/vi.xml @@ -0,0 +1,453 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/xh.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/xh.xml new file mode 100644 index 0000000..e296b5d --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/xh.xml @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/zh_cn.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/zh_cn.xml new file mode 100644 index 0000000..6754a62 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/zh_cn.xml @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/zh_tw.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/zh_tw.xml new file mode 100644 index 0000000..13a24af --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/l10n/zh_tw.xml @@ -0,0 +1,448 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/lists.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/lists.xsl new file mode 100644 index 0000000..c1fd19c --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/lists.xsl @@ -0,0 +1,803 @@ + + + + + 1.5em + + 10em + + + + + + + + circle + square + disc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + loweralpha + lowerroman + upperalpha + upperroman + arabic + arabic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Unexpected: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + em + + + + + + + + + + em + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + before + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Unexpected context in procedure.step.numeration: + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/parameters.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/parameters.xsl new file mode 100644 index 0000000..f558ee2 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/parameters.xsl @@ -0,0 +1,435 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + pt + + + + pt + + + pt + + + pt + + + pt + + + + + + + + + + + + + + + bold + center + + + + + + + + + + + + pt + + + + + solid + 1pt + 1pt + 1pt + 1pt + #000000 + #000000 + #000000 + #000000 + #e0e0e0 + + + pt + + + + + + + + + + + + pt + + + pt + + + + + + pt + + + pt + + + + + + + + bold + + + pt + + + + + + + + + + + + pt + + + pt + + + + + + pt + + + + + + + 0.2em + + + + + + pt + + + + pt + + + + + + pt + + + + + + pt + + + + + + pt + + + + + + pt + + + + + + pt + + + + + + + + + + + + + + + + + + + + + + + + + + pt + + bold + false + always + 0.5em + + + + kr + + + + + solid + 1pt + black + #e0e0e0 + 12pt + 12pt + 6pt + + + + 0.5em + + + + 0.5in + 0.5in + + + + 1em + 0.5in + + + + 1em + + + 1em + + + + + + pt + + bold + + + + 1em + 1em + + + + + + + start + + + + #E0E0E0 + + + + + + + + + + + + + + pt + + + pt + + + + + 1em + + + + + 1em + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + #E0E0E0 + + + + + + + + + pt + + + + + + + . + + + + 0.5em + + + + 0.3em + + + + 0.3em + + + + 0.5em + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/qandaset.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/qandaset.xsl new file mode 100644 index 0000000..46de980 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/qandaset.xsl @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/refentry.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/refentry.xsl new file mode 100644 index 0000000..178709c --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/refentry.xsl @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + em-dash + + + + + + + + + + + + + + + + + + : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/serna-table.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/serna-table.xsl new file mode 100644 index 0000000..ba08994 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/serna-table.xsl @@ -0,0 +1,641 @@ + + + + + + + + + + + + before + + + + + + + + + all + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + " + + " + + + + + . + + + + + + : + + + . ( + + + + + ) + + + + + + + + 0pt + none + 0pt + 0pt + 0pt + 0pt + 0pt + 0pt + + + 0pt + none + 0pt + 0pt + 0pt + 0pt + 0pt + 0pt + + + fixed + + + + + + + + + + + + + + + + + + + + + + + + + + + all + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + none + none + none + + + + + + + + + + + + + + + + + + none + none + + + + + + + + + + + + + + + none + none + + + + none + + + + + + + + + none + none + + + + + + + + + + + + + + + + + + + + + none + none + none + none + + + none + none + none + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + 100% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + before + center + after + + center + + + + + + + + + + + + + + + + + + + + + bold + + + + + + + + + + + + + + +   + + + + + + + fixed + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1* + + + proportional-column-width( + + ) + + + + + + + + + + + + + + + + + + + + + pc + pt + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/synopsis.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/synopsis.xsl new file mode 100644 index 0000000..c6ae2cb --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/synopsis.xsl @@ -0,0 +1,998 @@ + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + ) + + +   + + + + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + (void); + + + (); + + + + + + + (...); + + + + + + + + + + ( + + + + + + + + + + + , + + + ); + + + + + + + + + + + + + + + + + + + , + + + + + + + + ; + + + + + + + + ( + + ) + + + + + + +java + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Unrecognized language on + + : + + + + + + + + + + + + + &RE; + + + + + + + + + + + extends + + + &RE;     + + + + implements + + + &RE;     + + + + throws + + +  {&RE; + + } + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + +   + + + + + + + + + , + + + + + + + + + + + + , + + + + + + + + + + + + , + + + + + + + + + +    + + ; + + + + + + + +   + + + + + + + + + + + void  + + + + + + + + + + 0 + + ,&RE; + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + + + ) + + &RE;    throws  + + + ; + + + + + + + + + + + : + + + &RE;     + + + + implements + + + &RE;     + + + + throws + + + +  {&RE; + + } + + + + + + + + + + + + + , + + + + + + + + + + + +   + + + + + + + + + , + + + + + + + + + , + + + + + + + , + + + + + + +    + + ; + + + + + + + + + +   + + + + + + +   + + + + + + + + + + + + + void  + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + ) + + + &RE;    throws  + + + + ; + + + + + + + + + + interface + + + : + + + &RE;     + + + + implements + + + &RE;     + + + + throws + + +  {&RE; + + } + + + + + + + + + + , + + + + + + +   + + + + + , + + + + + + + , + + + + + + + , + + + + + + +    + + ; + + + + + + +   + + + + +   + + + + + + + + + void  + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + ( + + ) + + &RE;    raises( + + ) + + ; + + + + + + + + + package + + ;&RE; + + + @ISA = ( + + );&RE; + + + + + + + + + + + + + , + + + + + + +   + + + + + , + + + + + + + , + + + + + + + , + + + + + + +    + + ; + + + + + + +   + + + + +   + + + + + + + + + void  + + + + + + + + + , + + + + + + + + + + + + + + sub + + + { ... }; + + + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/table.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/table.xsl new file mode 100644 index 0000000..f4f192c --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/table.xsl @@ -0,0 +1,1103 @@ + + + + + + + + + + + + + + before + + + + + + + + + all + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + " + + " + + + + + . + + + + + + : + + + . ( + + + + + ) + + + + + + + + 0pt + none + 0pt + 0pt + 0pt + 0pt + 0pt + 0pt + + + 0pt + none + 0pt + 0pt + 0pt + 0pt + 0pt + 0pt + + + fixed + + + + + + + + + + + + + + + + + + + + + + + + + all + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + none + none + none + + + + + + + + + + + + + + + + + + none + none + + + + + + + + + + + + + + + none + none + + + + none + + + + + + + + + none + none + + + + + + + + + + + + + + + + + + + + + none + none + none + none + + + none + none + none + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + 100% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + before + center + after + + center + + + + + + + + + + + + + + + + + + + + + bold + + + + + + + + + + + + + + +   + + + + + + + fixed + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + : + + + + + + + + + 0: + + + + + + + + + + + + + + + + + 0 + + : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + 1* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1* + + + + + + + + + + + proportional-column-width( + + 1 + + + + + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + pc + pt + + + + + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.generator.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.generator.xsl new file mode 100644 index 0000000..24e6719 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.generator.xsl @@ -0,0 +1,1218 @@ + + + + + + + + + + + + +Walsh +Norman +19992000 +Norman Walsh + + +Template Stylesheet Reference + + +
Introduction + +This is technical reference documentation for the DocBook XSL +Stylesheets; it documents (some of) the parameters, templates, and +other elements of the stylesheets. + +This is not intended to be user documentation. +It is provided for developers writing customization layers for the +stylesheets, and for anyone who's interested in how it +works. + +Although I am trying to be thorough, this documentation is known +to be incomplete. Don't forget to read the source, too :-) +
+
+ +
+ + + + + + + + + +Construct a stylesheet for the templates provided + + +The t:templates element is the root of a +set of templates. This template creates an appropriate +xsl:stylesheet for the templates. + +If the t:templates element has a +base-stylesheet attribute, an +xsl:import statement is constructed for it. + + + + + + + + + + + + This stylesheet was created by + template/titlepage.xsl; + do not edit it by hand. + + + + + + + + + + + + + + + + + + + + +Copy xsl: elements straight through + + +This template simply copies the xsl: elements +straight through into the result tree. + + + + + + + + + + +Create the templates necessary to construct a title page + + +The t:titlepage element creates a set of +templates for processing the titlepage for an element. The +root of this template set is the template named +wrapper.titlepage. That is the +template that should be called to generate the title page. + + +The t:titlepage element has three attributes: + + +element +The name of the source document element for which +these templates apply. In other words, to make a title page for the +article element, set the +element attribute to +article. This attribute is required. + + +wrapper +The entire title page can be wrapped with an element. +This attribute identifies that element. + + +class +If the class attribute +is set, a class attribute with this +value will be added to the wrapper element that surrounds the entire +title page. + + + + + +Any other attributes are copied through literally to the +wrapper element. + +The content of a t:titlepage is one or +more t:titlepage-content, +t:titlepage-separator, and +t:titlepage-before elements. + +Each of these elements may be provided for the recto +and verso sides of the title page. + + + + + + + + + + + + + + .titlepage + + + + + + + + + .titlepage.before.recto + + + + + + + + + .titlepage.recto + + + + + + + + + + + + + + .titlepage.before.verso + + + + + + + + + .titlepage.verso + + + + + + + + + + + + + .titlepage.separator + + + + + + + + + + + + + + + + + + + + + + + + + + + + serna.fold + + + + + + title + + + .titlepage.recto.auto.mode + + + + + + + + + + + * + + + .titlepage.recto.mode + + + if an element isn't found in this mode, + + try the generic titlepage.mode + + + . + titlepage.mode + + + + + + + + * + + + .titlepage.verso.mode + + + if an element isn't found in this mode, + + try the generic titlepage.mode + + + . + titlepage.mode + + + + + + + + + + + + + + + + + + + .titlepage. + + .auto.mode + + + + + + .titlepage. + + .style + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + . + + + + + + . + + + .titlepage. + + .mode + + + + + + + + + + + + + + +Copy t:titlepage attributes + + +This template copies all of the other attributes +from a t:titlepage element onto the specified +wrapper. + + + + + + + + + + + + + + +Create templates for the content of one side of a title page + + +The title page content, that is, the elements from the source +document that are rendered on the title page, can be controlled independently +for the recto and verso sides of the title page. + +The t:titlepage-content element has two attributes: + + +side +Identifies the side of the page to which this title +page content applies. The +side attribute is required and +must be set to either +recto or +verso. In addition, you must specify +exactly one t:titlepage-content for each side +within each t:titlepage. + + +order +Indicates how the order of the elements presented on +the title page is determined. If the +order is +document, the elements are presented +in document order. Otherwise (if the +order is +stylesheet), the elements are presented +in the order that they appear in the template (and consequently in +the stylesheet). + + + + + +The content of a t:titlepage-content element is +a list of element names. These names should be unqualified. They identify +the elements in the source document that should appear on the title page. + + +Each element may have a single attribute: +predicate. The value of this +attribute is used as a predicate for the expression that matches +the element on which it occurs. + +In other words, to put only the first three authors on the +recto-side of a title +page, you could specify: + + + + + + +]]> + + +Usually, the elements so named are empty. But it is possible to +make one level of selection within them. Suppose that you want to +process authorgroup elements on the title page, but +you want to select only proper authors, editors, or corporate authors, +not collaborators or other credited authors. + +In that case, you can put a t:or group inside +the authorgroup element: + + + + + + + + + + + + +]]> + + +This will have the effect of automatically generating a template +for processing authorgroups in the title page mode, +selecting only the specified children. If you need more complex processing, +you'll have to construct the templates by hand. + + + + + + + + + + + + + + + + Illegal value specified for @t:side + on t:titlepage-content: + + + + + + The @t:side attribute is required on + t:titlepage-content. + + + + + + + + .titlepage. + + .auto.mode + + + + + + + .titlepage. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Create templates for the separator + + +The title page is separated from the content which follows it by +the markup specified in the t:titlepage-separator +element. + + + + + + + + + .titlepage.separator + + + + + + + + + + +Create templates for what precedes a title page + + +Each side of the title page is preceded by the markup specified +in the t:titlepage-before element for that +side. + + + + + + + + + .titlepage.before. + + + + + + + + + + + +Copy elements + + +This template simply copies the elements that it applies to +straight through into the result tree. + + + + + + + + + + + + + +Copy attributes + + +This template simply copies the attributes that it applies to +straight through into the result tree. + + + + + + + + + + + + +Create rules to process titlepage elements in document order + + +This template is called to process all of the children of the +t:titlepage-content element. It creates the hairy +select expression necessary to process each of those elements in +the title page. + +Note that this template automatically handles the case where +some DocBook elements, like title and subtitle, can occur both inside +the *info elements where metadata is usually stored and outside. + + +It also automatically calculates the name for the *info container +and handles elements that have historically had containers with different +names. + + + + + + + + info + + + + + + artheader + + + + + + + + + + docinfo + + + + + + + + + + recto + + + + + + + .titlepage. + + .auto.mode + + + + | + + + + / + + + + + + + | + + / + + + + + + + + | + + + + + + + + + + +Create rules to process titlepage elements in stylesheet order + + +This template is called to process all of the children of the +t:titlepage-content element. It creates the set +of xsl:apply-templates elements necessary +process each of those elements in the title page. + +Note that this template automatically handles the case where +some DocBook elements, like title and subtitle, can occur both inside +the *info elements where metadata is usually stored and outside. + + +It also automatically calculates the name for the *info container +and handles elements that have historically had containers with different +names. + + + + + + + + info + + + + + + artheader + + + + + + + + + + docinfo + + + + + + + + + recto + + + + + + .titlepage. + + .auto.mode + + + + + + + + + + + + .titlepage. + + .style + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Force can only be used with named-templates. + + + + + + + + + + + + + + + / + + + + + + + + + + / + + + + + [not(self::processing-instruction('se:choice'))] + + + + + + + + + + + / + + + + + + + + + + / + + + + + [not(self::processing-instruction('se:choice'))] + + + + + + + + + + + + + + + + + + + + + + [not(self::processing-instruction('se:choice'))] + + + + + + + + + + + + + + + + + + / + + + + + [not(self::processing-instruction('se:choice'))] + + + + + + + + + + + + + / + + + + + [not(self::processing-instruction('se:choice'))] + + + + + + + + + + + + +Create templates for special rules + + +This template is called to process all of the descendants of the +t:titlepage-content element that require special +processing. At present, that's just t:or elements. + + + + + + + + + + + recto + + + + + + .titlepage. + + .auto.mode + + + + + + + + + + + + + + + + + + + + + + + + + + + +Create template for individual special rules + + +This template is called to process the children of special +template elements. + + + + + + + + + + + recto + + + + + + .titlepage. + + .auto.mode + + + + + + + + + + + + + + + +Process the t:or special rule + + +This template processes t:or. + + + + + + + + + + recto + + + + + + .titlepage. + + .auto.mode + + + + + + + + + + + + + + + + +Process the t:or special rule in +titlepage.subrules mode + + +The titlepage.subrules mode doesn't apply to t:or, so just +reprocess this node in the normal mode. + + + + + + + + + + +Construct the "or-list" used in the select attribute for +special rules. + + +Walk through each of the children of t:or, producing the +text of the select attribute. + + + + + + + + + + + + + + + + + + + + + | + + + + + + + + + +
diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.templates.xml b/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.templates.xml new file mode 100644 index 0000000..8b5951a --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.templates.xml @@ -0,0 +1,412 @@ + + + + + + + + + + + + +]> + + + + + + + + + <subtitle/> + + <corpauthor padding-bottom="0.5em" + font-size="&hsize2;"/> + <authorgroup padding-bottom="0.5em" + font-size="&hsize2;"/> + <author padding-bottom="0.5em" + font-size="&hsize2;"/> + + <othercredit padding-bottom="0.5em"/> + <releaseinfo padding-bottom="0.5em"/> + <copyright padding-bottom="0.5em"/> + <legalnotice text-align="start" + margin-left="0.5in" + margin-right="0.5in" + font-family="{$body.font.family}"/> + <pubdate padding-bottom="0.5em"/> + <revision padding-bottom="0.5em"/> + <revhistory + t:named-mode="rev.mode" + padding-bottom="0.5em"/> + <abstract padding-bottom="0.5em" + text-align="start" + margin-left="0.5in" + margin-right="0.5in" + font-family="{$body.font.family}"/> + </t:titlepage-content> +</t:titlepage> + + <t:titlepage t:element="chapter" t:wrapper="fo:block" + font-family="{$title.font.family}"> + <t:titlepage-content t:side="recto" margin-left="{$title.margin.left}"> + <title t:named-mode="chapter.titles.mode" + font-size="&hsize5;" + font-weight="bold"/> + + <subtitle padding-bottom="0.5em" + font-style="italic" + font-size="&hsize2;" + font-weight="bold"/> + + <corpauthor padding-bottom="0.5em" + space-after="0.5em" + font-size="&hsize2;"/> + + <authorgroup padding-bottom="0.5em" + space-after="0.5em" + font-size="&hsize2;"/> + + <author padding-bottom="0.5em" + space-after="0.5em" + font-size="&hsize2;"/> + + <othercredit/> + <releaseinfo/> + <copyright/> + <legalnotice/> + <pubdate/> + <revision/> + <revhistory/> + <abstract/> + </t:titlepage-content> +</t:titlepage> + + <t:titlepage t:element="book" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="book.titles.mode" + text-align="center" + font-size="&hsize5;" + padding-bottom="&hsize5space;" + font-weight="bold" + font-family="{$title.font.family}"/> + <subtitle + text-align="center" + font-size="&hsize4;" + padding-bottom="&hsize3space;" + font-family="{$title.font.family}"/> + <corpauthor font-size="&hsize3;" + keep-with-next="always" + padding-bottom="1in"/> + <authorgroup padding-bottom="1in"/> + <author font-size="&hsize3;" + padding-bottom="&hsize2space;" + keep-with-next="always"/> + </t:titlepage-content> + + <t:titlepage-content t:side="verso"> + <corpauthor/> + <authorgroup + padding-bottom="2em" + t:named-template="verso.authorgroup"/> + <author/> + <othercredit/> + <pubdate padding-bottom="1em"/> + <copyright/> + <revision padding-bottom="0.5em"/> + <revhistory + t:named-mode="rev.mode" + padding-bottom="0.5em"/> + + <abstract/> + <legalnotice font-size="8pt"/> + </t:titlepage-content> + </t:titlepage> + +<t:titlepage t:element="part" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="part.titles.mode" + text-align="center" + font-size="&hsize5;" + padding-bottom="&hsize5space;" + font-weight="bold" + font-family="{$title.font.family}"/> + <subtitle + text-align="center" + font-size="&hsize4;" + padding-bottom="&hsize4space;" + font-weight='bold' + font-style='italic' + font-family="{$title.font.family}"/> + </t:titlepage-content> +</t:titlepage> + + <t:titlepage t:element="preface" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="preface.titles.mode" + margin-left="{$title.margin.left}" + font-size="&hsize5;" + font-family="{$title.font.family}" + font-weight="bold"/> + <subtitle + font-family="{$title.font.family}"/> + <corpauthor/> + <authorgroup/> + <author/> + <othercredit/> + <releaseinfo/> + <copyright/> + <legalnotice/> + <pubdate/> + <revision/> + <revhistory/> + <abstract/> + </t:titlepage-content> +</t:titlepage> + +<t:titlepage t:element="partintro" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + text-align="center" + font-size="&hsize5;" + font-weight="bold" + padding-bottom="1em" + font-family="{$title.font.family}"/> + <subtitle + text-align="center" + font-size="&hsize2;" + font-weight="bold" + font-style="italic" + font-family="{$title.font.family}"/> + <corpauthor/> + <authorgroup/> + <author/> + <othercredit/> + <releaseinfo/> + <copyright/> + <legalnotice/> + <pubdate/> + <revision/> + <revhistory/> + <abstract/> + </t:titlepage-content> + +</t:titlepage> + +<t:titlepage t:element="reference" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="reference.titles.mode" + text-align="center" + font-size="&hsize5;" + padding-bottom="&hsize5space;" + font-weight="bold" + font-family="{$title.font.family}"/> + <subtitle + font-family="{$title.font.family}"/> + </t:titlepage-content> + +</t:titlepage> + +<t:titlepage t:element="refsynopsisdiv" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="refsynopsisdiv.titles.mode" + font-weight="bold" + margin-left="{$title.margin.left}" + font-family="{$title.font.family}"/> + </t:titlepage-content> + +</t:titlepage> + +<t:titlepage t:element="refsection" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="section.titles.mode" + font-weight="bold" + font-family="{$title.font.family}"/> + </t:titlepage-content> + +</t:titlepage> + +<t:titlepage t:element="section" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="section.titles.mode" + font-weight="bold" + margin-left="{$title.margin.left}" + font-family="{$title.font.family}"/> + <subtitle + font-family="{$title.font.family}"/> + <corpauthor/> + <authorgroup/> + <author/> + <othercredit/> + <releaseinfo/> + <copyright/> + <legalnotice/> + <pubdate/> + <revision/> + <revhistory/> + <abstract/> + </t:titlepage-content> +</t:titlepage> + +<t:titlepage t:element="simplesect" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="simplesect.titles.mode" + font-weight="bold" + margin-left="{$title.margin.left}" + font-family="{$title.font.family}"/> + <subtitle + font-family="{$title.font.family}"/> + <corpauthor/> + <authorgroup/> + <author/> + <othercredit/> + <releaseinfo/> + <copyright/> + <legalnotice/> + <pubdate/> + <revision/> + <revhistory/> + <abstract/> + </t:titlepage-content> + + <t:titlepage-content t:side="verso"> + </t:titlepage-content> + + <t:titlepage-separator> + </t:titlepage-separator> + + <t:titlepage-before t:side="recto"> + </t:titlepage-before> + + <t:titlepage-before t:side="verso"> + </t:titlepage-before> +</t:titlepage> + + +<t:titlepage t:element="set" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="set.titles.mode" + text-align="center" + font-size="&hsize5;" + padding-bottom="&hsize5space;" + font-weight="bold" + font-family="{$title.font.family}"/> + <subtitle + font-family="{$title.font.family}" + text-align="center"/> + <corpauthor/> + <authorgroup/> + <author/> + <othercredit/> + <releaseinfo/> + <copyright/> + <legalnotice/> + <pubdate/> + <revision/> + <revhistory/> + <abstract/> + </t:titlepage-content> +</t:titlepage> + + <t:titlepage t:element="appendix" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="appendix.titles.mode" + margin-left="{$title.margin.left}" + font-size="&hsize5;" + font-weight="bold" + font-family="{$title.font.family}"/> + <subtitle + font-family="{$title.font.family}"/> + <corpauthor/> + <authorgroup/> + <author/> + <othercredit/> + <releaseinfo/> + <copyright/> + <legalnotice/> + <pubdate/> + <revision/> + <revhistory/> + <abstract/> + </t:titlepage-content> +</t:titlepage> + + <t:titlepage t:element="bibliography" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title t:named-template="bibliography.title" + t:force="1" + param:node="." + margin-left="{$title.margin.left}" + font-size="&hsize5;" + font-family="{$title.font.family}" + font-weight="bold"/> + <subtitle + font-family="{$title.font.family}"/> + </t:titlepage-content> + + </t:titlepage> + + <t:titlepage t:element="bibliodiv" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="bibliodiv.titles.mode" + margin-left="{$title.margin.left}" + font-size="&hsize4;" + font-family="{$title.font.family}" + font-weight="bold"/> + <subtitle + font-family="{$title.font.family}"/> + </t:titlepage-content> + + </t:titlepage> + + <t:titlepage t:element="glossary" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title + t:named-mode="glossary.title" + param:node="ancestor-or-self::glossary[1]" + margin-left="{$title.margin.left}" + font-size="&hsize5;" + font-family="{$title.font.family}" + font-weight="bold"/> + <subtitle + font-family="{$title.font.family}"/> + </t:titlepage-content> + + </t:titlepage> + +<!-- ==================================================================== --> + + <t:titlepage t:element="glossdiv" t:wrapper="fo:block"> + <t:titlepage-content t:side="recto"> + <title t:named-mode="glossdiv.titles.mode" + param:node="ancestor-or-self::glossdiv[1]" + margin-left="{$title.margin.left}" + font-size="&hsize4;" + font-family="{$title.font.family}" + font-weight="bold"/> + <subtitle + font-family="{$title.font.family}"/> + </t:titlepage-content> + </t:titlepage> + +</t:templates> diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.templates.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.templates.xsl new file mode 100644 index 0000000..ada4ff6 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.templates.xsl @@ -0,0 +1,1969 @@ +<?xml version="1.0" encoding="utf-8"?><ax:stylesheet xmlns:ax="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:se="http://syntext.com/XSL/Format-1.0" version="1.0"> + +<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. --> + +<xsl:template name="article.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="articleinfo/title"> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="artheader/title"> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="articleinfo/subtitle"> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="artheader/subtitle"> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/abstract[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/abstract[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block text-align="center"><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="article.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="article.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block font-family="{$title.font.family}"> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="article" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="article.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="article.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="article.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" font-size="{$title1.font.size}" font-weight="bold"> +<xsl:apply-templates mode="article.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em" font-size="{$title3.font.size}"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em" font-size="{$title3.font.size}"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em" font-size="{$title3.font.size}"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="othercredit" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.font.family}"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em"> +<xsl:apply-templates mode="rev.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="abstract" mode="article.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="article.titlepage.recto.style" padding-bottom="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.font.family}"> +<xsl:apply-templates select="." mode="article.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="chapter.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="chapterinfo/title"> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="chapterinfo/subtitle"> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/abstract[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/abstract[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block margin-left="{$title.margin.left}"><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="chapter.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="chapter.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block font-family="{$title.font.family}"> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="chapter" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="chapter.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="chapter.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="chapter.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" font-size="{$title1.font.size}" font-weight="bold"> +<xsl:apply-templates mode="chapter.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" padding-bottom="0.5em" font-style="italic" font-size="{$title3.font.size}" font-weight="bold"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" padding-bottom="0.5em" space-after="0.5em" font-size="{$title3.font.size}"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" padding-bottom="0.5em" space-after="0.5em" font-size="{$title3.font.size}"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style" padding-bottom="0.5em" space-after="0.5em" font-size="{$title3.font.size}"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="othercredit" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="abstract" mode="chapter.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="chapter.titlepage.recto.style"> +<xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="book.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="bookinfo/title"> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="bookinfo/subtitle"> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="book.titlepage.verso"> + <ax:variable name="result"> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="book.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="book.titlepage.recto"/> + + + <xsl:call-template name="book.titlepage.verso"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="book" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="book.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="book.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="book.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="book.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="{$title1.font.size}" padding-bottom="18.6624pt" font-weight="bold" font-family="{$title.font.family}"> +<xsl:apply-templates mode="book.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="{$title2.font.size}" padding-bottom="12.96pt" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" font-size="{title2.font.size}" keep-with-next="always" padding-bottom="1in"> +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" padding-bottom="1in"> +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="book.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" font-size="{title2.font.size}" padding-bottom="10.8pt" keep-with-next="always"> +<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style"> +<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style" padding-bottom="2em"> +<xsl:call-template name="verso.authorgroup"> +</xsl:call-template> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style"> +<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="othercredit" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style"> +<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style" padding-bottom="1em"> +<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style"> +<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style" padding-bottom="0.5em"> +<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revhistory" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style" padding-bottom="0.5em"> +<xsl:apply-templates mode="rev.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="abstract" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style"> +<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="legalnotice" mode="book.titlepage.verso.auto.mode"> +<fo:block xsl:use-attribute-sets="book.titlepage.verso.style" font-size="8pt"> +<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="part.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="partinfo/title"> + <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="partinfo/subtitle"> + <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> +</ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="part.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="part.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="part" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="part.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="part.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="part.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="part.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="{$title1.font.size}" padding-bottom="18.6624pt" font-weight="bold" font-family="{$title.font.family}"> +<xsl:apply-templates mode="part.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="part.titlepage.recto.style" text-align="center" font-size="{$title2.font.size}" padding-bottom="15.552pt" font-weight="bold" font-style="italic" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="part.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="preface.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="prefaceinfo/title"> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="prefaceinfo/subtitle"> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="preface.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="preface.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="preface" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="preface.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="preface.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="preface.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="{$title1.font.size}" font-family="{$title.font.family}" font-weight="bold"> +<xsl:apply-templates mode="preface.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="othercredit" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="abstract" mode="preface.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="preface.titlepage.recto.style"> +<xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="partintro.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="partintroinfo/title"> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="partintroinfo/subtitle"> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/abstract[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/abstract[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="partintro.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="partintro.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="partintro" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="partintro.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="partintro.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="partintro.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="{$title1.font.size}" font-weight="bold" padding-bottom="1em" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style" text-align="center" font-size="{$title3.font.size}" font-weight="bold" font-style="italic" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="othercredit" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="abstract" mode="partintro.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="partintro.titlepage.recto.style"> +<xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="reference.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="referenceinfo/title"> + <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="referenceinfo/subtitle"> + <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> +</ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="reference.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="reference.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="reference" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="reference.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="reference.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="reference.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="reference.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="reference.titlepage.recto.style" text-align="center" font-size="{$title1.font.size}" padding-bottom="18.6624pt" font-weight="bold" font-family="{$title.font.family}"> +<xsl:apply-templates mode="reference.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="reference.titlepage.recto.style" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="refsynopsisdiv.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="refsynopsisdivinfo/title"> + <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="refsynopsisdivinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="refsynopsisdiv.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> +</ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="refsynopsisdiv.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="refsynopsisdiv.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="refsynopsisdiv" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="refsynopsisdiv.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="refsynopsisdiv.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="refsynopsisdiv.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="refsynopsisdiv.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="refsynopsisdiv.titlepage.recto.style" font-weight="bold" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> +<xsl:apply-templates mode="refsynopsisdiv.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template name="refsection.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="refsectioninfo/title"> + <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="refsectioninfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="refsection.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> +</ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="refsection.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="refsection.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="refsection" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="refsection.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="refsection.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="refsection.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="refsection.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="refsection.titlepage.recto.style" font-weight="bold" font-family="{$title.font.family}"> +<xsl:apply-templates mode="section.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template name="section.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="sectioninfo/title"> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="sectioninfo/subtitle"> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/abstract[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="section.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="section.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="section" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="section.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="section.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="section.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style" font-weight="bold" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> +<xsl:apply-templates mode="section.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="othercredit" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="abstract" mode="section.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="section.titlepage.recto.style"> +<xsl:apply-templates select="." mode="section.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="simplesect.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="simplesectinfo/title"> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="simplesectinfo/subtitle"> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/abstract[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/abstract[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="simplesect.titlepage.verso"> + <ax:variable name="result"/> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="simplesect.titlepage.separator"> +</xsl:template> + +<xsl:template name="simplesect.titlepage.before.recto"> +</xsl:template> + +<xsl:template name="simplesect.titlepage.before.verso"> +</xsl:template> + +<xsl:template name="simplesect.titlepage"> + <ax:variable name="result"><xsl:call-template name="simplesect.titlepage.before.recto"/> + <xsl:call-template name="simplesect.titlepage.recto"/> + + <xsl:call-template name="simplesect.titlepage.before.verso"/> + <xsl:call-template name="simplesect.titlepage.verso"/> + + <xsl:call-template name="simplesect.titlepage.separator"/> + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="simplesect" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="simplesect.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="simplesect.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="simplesect.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style" font-weight="bold" margin-left="{$title.margin.left}" font-family="{$title.font.family}"> +<xsl:apply-templates mode="simplesect.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="othercredit" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="abstract" mode="simplesect.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="simplesect.titlepage.recto.style"> +<xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="set.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="setinfo/title"> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="setinfo/subtitle"> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/abstract[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="set.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="set.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="set" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="set.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="set.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="set.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style" text-align="center" font-size="{$title1.font.size}" padding-bottom="18.6624pt" font-weight="bold" font-family="{$title.font.family}"> +<xsl:apply-templates mode="set.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style" font-family="{$title.font.family}" text-align="center"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="othercredit" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="abstract" mode="set.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="set.titlepage.recto.style"> +<xsl:apply-templates select="." mode="set.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="appendix.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="appendixinfo/title"> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="appendixinfo/subtitle"> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/corpauthor[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/authorgroup[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/author[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/othercredit[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/releaseinfo[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/copyright[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/legalnotice[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/pubdate[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revision[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/abstract[not(self::processing-instruction('se:choice'))]"/> + <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/abstract[not(self::processing-instruction('se:choice'))]"/></ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="appendix.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="appendix.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="appendix" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="appendix.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="appendix.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="appendix.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="{$title1.font.size}" font-weight="bold" font-family="{$title.font.family}"> +<xsl:apply-templates mode="appendix.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="author" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="othercredit" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template match="abstract" mode="appendix.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="appendix.titlepage.recto.style"> +<xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="bibliography.titlepage.recto"> + <ax:variable name="result"> + <fo:block xsl:use-attribute-sets="bibliography.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="{$title1.font.size}" font-family="{$title.font.family}" font-weight="bold"> +<xsl:call-template name="bibliography.title"> +<xsl:with-param name="node" select="."/> +</xsl:call-template></fo:block> + <xsl:choose> + <xsl:when test="bibliographyinfo/subtitle"> + <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="bibliographyinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> +</ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="bibliography.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="bibliography.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="bibliography" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="bibliography.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="bibliography.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="bibliography.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="subtitle" mode="bibliography.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="bibliography.titlepage.recto.style" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="bibliodiv.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="bibliodivinfo/title"> + <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="bibliodivinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="bibliodivinfo/subtitle"> + <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="bibliodivinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="bibliodiv.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> +</ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="bibliodiv.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="bibliodiv.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="bibliodiv" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="bibliodiv.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="bibliodiv.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="bibliodiv.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="bibliodiv.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="{$title2.font.size}" font-family="{$title.font.family}" font-weight="bold"> +<xsl:apply-templates mode="bibliodiv.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="bibliodiv.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="bibliodiv.titlepage.recto.style" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="bibliodiv.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="glossary.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="glossaryinfo/title"> + <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="glossaryinfo/subtitle"> + <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> +</ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="glossary.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="glossary.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="glossary" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="glossary.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="glossary.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="glossary.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="glossary.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="glossary.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="{$title1.font.size}" font-family="{$title.font.family}" font-weight="bold"> +<xsl:apply-templates mode="glossary.title" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="glossary.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="glossary.titlepage.recto.style" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +<xsl:template name="glossdiv.titlepage.recto"> + <ax:variable name="result"> + <xsl:choose> + <xsl:when test="glossdivinfo/title"> + <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="glossdivinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/title"> + <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="docinfo/title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="title"> + <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="title[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> + + <xsl:choose> + <xsl:when test="glossdivinfo/subtitle"> + <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="glossdivinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="docinfo/subtitle"> + <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="docinfo/subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + <xsl:when test="subtitle"> + <xsl:apply-templates mode="glossdiv.titlepage.recto.auto.mode" select="subtitle[not(self::processing-instruction('se:choice'))]"/> + </xsl:when> + </xsl:choose> +</ax:variable> + + <ax:if test="string-length($result)"> + <fo:block><ax:copy-of select="$result"/> + </fo:block> + </ax:if> + </xsl:template> + +<xsl:template name="glossdiv.titlepage"> + <ax:variable name="result"> + <xsl:call-template name="glossdiv.titlepage.recto"/> + + </ax:variable><ax:if test="string-length($result)"><fo:block> + <ax:copy-of select="$result"/></fo:block></ax:if> +</xsl:template> + +<xsl:template match="glossdiv" mode="serna.fold"> + <fo:block se:fold="" color="gray"> + <se:fold show-element-name="false"/><xsl:apply-templates select="title" mode="glossdiv.titlepage.recto.auto.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="*" mode="glossdiv.titlepage.recto.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="*" mode="glossdiv.titlepage.verso.mode"> + <!-- if an element isn't found in this mode, --> + <!-- try the generic titlepage.mode --> + <xsl:apply-templates select="." mode="titlepage.mode"/> +</xsl:template> + +<xsl:template match="title" mode="glossdiv.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="glossdiv.titlepage.recto.style" margin-left="{$title.margin.left}" font-size="{$title2.font.size}" font-family="{$title.font.family}" font-weight="bold"> +<xsl:apply-templates mode="glossdiv.titles.mode" select="."> +</xsl:apply-templates> +</fo:block> +</xsl:template> + +<xsl:template match="subtitle" mode="glossdiv.titlepage.recto.auto.mode"> +<fo:block xsl:use-attribute-sets="glossdiv.titlepage.recto.style" font-family="{$title.font.family}"> +<xsl:apply-templates select="." mode="glossdiv.titlepage.recto.mode"/> +</fo:block> +</xsl:template> + +</ax:stylesheet> \ No newline at end of file diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.xsl new file mode 100644 index 0000000..a169ec7 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/titlepage.xsl @@ -0,0 +1,772 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + xmlns:dtm="http://syntext.com/Extensions/DocumentTypeMetadata-1.0" + extension-element-prefixes="dtm" + version='1.0'> + +<xsl:attribute-set name="book.titlepage.recto.style"> + <xsl:attribute name="font-family"> + <xsl:value-of select="$title.font.family"/> + </xsl:attribute> + <xsl:attribute name="font-size"> + <xsl:value-of select="concat($body.font.master,'pt')"/> + </xsl:attribute> + + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="text-align">center</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="book.titlepage.verso.style"> + <xsl:attribute name="font-size"> + <xsl:value-of select="concat(0.83 * $body.font.master,'pt')"/> + </xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="article.titlepage.recto.style"/> +<xsl:attribute-set name="article.titlepage.verso.style"/> + +<xsl:attribute-set name="set.titlepage.recto.style"/> +<xsl:attribute-set name="set.titlepage.verso.style"/> + +<xsl:attribute-set name="part.titlepage.recto.style"> + <xsl:attribute name="text-align">center</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="part.titlepage.verso.style"/> + +<xsl:attribute-set name="partintro.titlepage.recto.style"/> +<xsl:attribute-set name="partintro.titlepage.verso.style"/> + +<xsl:attribute-set name="reference.titlepage.recto.style"/> +<xsl:attribute-set name="reference.titlepage.verso.style"/> + +<xsl:attribute-set name="dedication.titlepage.recto.style"/> +<xsl:attribute-set name="dedication.titlepage.verso.style"/> + +<xsl:attribute-set name="preface.titlepage.recto.style"/> +<xsl:attribute-set name="preface.titlepage.verso.style"/> + +<xsl:attribute-set name="chapter.titlepage.recto.style"/> +<xsl:attribute-set name="chapter.titlepage.verso.style"/> + +<xsl:attribute-set name="appendix.titlepage.recto.style"/> +<xsl:attribute-set name="appendix.titlepage.verso.style"/> + +<xsl:attribute-set name="bibliography.titlepage.recto.style"/> +<xsl:attribute-set name="bibliography.titlepage.verso.style"/> + +<xsl:attribute-set name="bibliodiv.titlepage.recto.style"/> +<xsl:attribute-set name="bibliodiv.titlepage.verso.style"/> + +<xsl:attribute-set name="glossary.titlepage.recto.style"/> +<xsl:attribute-set name="glossary.titlepage.verso.style"/> + +<xsl:attribute-set name="glossdiv.titlepage.recto.style"/> +<xsl:attribute-set name="glossdiv.titlepage.verso.style"/> + +<xsl:attribute-set name="index.titlepage.recto.style"/> +<xsl:attribute-set name="index.titlepage.verso.style"/> + +<xsl:attribute-set name="setindex.titlepage.recto.style"/> +<xsl:attribute-set name="setindex.titlepage.verso.style"/> + +<xsl:attribute-set name="indexdiv.titlepage.recto.style"/> +<xsl:attribute-set name="indexdiv.titlepage.verso.style"/> + +<xsl:attribute-set name="colophon.titlepage.recto.style"/> +<xsl:attribute-set name="colophon.titlepage.verso.style"/> + +<xsl:attribute-set name="section.titlepage.recto.style"> + <xsl:attribute name="keep-together">always</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="section.titlepage.verso.style"> + <xsl:attribute name="keep-together">always</xsl:attribute> + <xsl:attribute name="keep-with-next">always</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="sect1.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="sect1.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="sect2.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="sect2.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="sect3.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="sect3.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="sect4.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="sect4.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="sect5.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="sect5.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="simplesect.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="simplesect.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="refsynopsisdiv.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="refsynopsisdiv.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="refsection.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="refsection.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="refsect1.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="refsect1.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="refsect2.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="refsect2.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="refsect3.titlepage.recto.style" + use-attribute-sets="section.titlepage.recto.style"/> +<xsl:attribute-set name="refsect3.titlepage.verso.style" + use-attribute-sets="section.titlepage.verso.style"/> + +<xsl:attribute-set name="table.of.contents.titlepage.recto.style"/> +<xsl:attribute-set name="table.of.contents.titlepage.verso.style"/> + +<xsl:attribute-set name="list.of.tables.titlepage.recto.style"/> +<xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/> + +<xsl:attribute-set name="list.of.figures.titlepage.recto.style"/> +<xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/> + +<xsl:attribute-set name="list.of.equations.titlepage.recto.style"/> +<xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/> + +<xsl:attribute-set name="list.of.examples.titlepage.recto.style"/> +<xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/> + +<xsl:attribute-set name="list.of.procedures.titlepage.recto.style"/> +<xsl:attribute-set name="list.of.procedures.contents.titlepage.verso.style"/> + +<xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/> +<xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/> + +<!-- ==================================================================== --> +<dtm:doc dtm:idref="all.titlepage-mode"/> +<xsl:template match="*" mode="titlepage.mode" dtm:id="all.titlepage-mode"> + <!-- if an element isn't found in this mode, try the default mode --> + <xsl:apply-templates select="."/> +</xsl:template> + +<dtm:doc dtm:idref="abbrev.titlepage-mode"/> +<xsl:template match="abbrev" mode="titlepage.mode" dtm:id="abbrev.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="abstract.titlepage-mode"/> +<xsl:template match="abstract" mode="titlepage.mode" dtm:id="abstract.titlepage-mode"> + <fo:block> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:elements="abstract/title" dtm:idref="title.abstract.titlepage-mode title.titlepage-title-mode"/> +<xsl:template match="abstract/title" mode="titlepage.mode" dtm:id="title.abstract.titlepage-mode"/> + +<xsl:template match="abstract/title" mode="titlepage.abstract.title.mode" dtm:id="title.titlepage-title-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="address.titlepage-mode"/> +<xsl:template match="address" mode="titlepage.mode" dtm:id="address.titlepage-mode"> + <!-- use the normal address handling code --> + <xsl:apply-templates select="."/> +</xsl:template> + +<dtm:doc dtm:idref="affiliation.titlepage-mode"/> +<xsl:template match="affiliation" mode="titlepage.mode" dtm:id="affiliation.titlepage-mode"> + <fo:block> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="artpagenums.titlepage-mode"/> +<xsl:template match="artpagenums" mode="titlepage.mode" dtm:id="artpagenums.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="author.titlepage-mode"/> +<xsl:template match="author" mode="titlepage.mode" dtm:id="author.titlepage-mode"> + <fo:block> + <xsl:call-template name="person.name"/> + <xsl:if test="affiliation/orgname"> + <xsl:text>, </xsl:text> + <xsl:apply-templates select="affiliation/orgname" mode="titlepage.mode"/> + </xsl:if> + <xsl:if test="email|affiliation/address/email"> + <xsl:text> </xsl:text> + <xsl:apply-templates select="(email|affiliation/address/email)[1]"/> + </xsl:if> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="authorblurb.titlepage-mode"/> +<xsl:template match="authorblurb" mode="titlepage.mode" dtm:id="authorblurb.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="authorgroup.titlepage-mode"/> +<xsl:template match="authorgroup" mode="titlepage.mode" dtm:id="authorgroup.titlepage-mode"> + <fo:wrapper> + <xsl:if test="@id"> + <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> + </xsl:if> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:wrapper> +</xsl:template> + +<dtm:doc dtm:idref="authorinitials.titlepage-mode"/> +<xsl:template match="authorinitials" mode="titlepage.mode" dtm:id="authorinitials.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="bibliomisc.titlepage-mode"/> +<xsl:template match="bibliomisc" mode="titlepage.mode" dtm:id="bibliomisc.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="bibliomset.titlepage-mode"/> +<xsl:template match="bibliomset" mode="titlepage.mode" dtm:id="bibliomset.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="collab.titlepage-mode"/> +<xsl:template match="collab" mode="titlepage.mode" dtm:id="collab.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="confgroup.titlepage-mode"/> +<xsl:template match="confgroup" mode="titlepage.mode" dtm:id="confgroup.titlepage-mode"> + <fo:block> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="confdates.titlepage-mode"/> +<xsl:template match="confdates" mode="titlepage.mode" dtm:id="confdates.titlepage-mode"> + <fo:block> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="conftitle.titlepage-mode"/> +<xsl:template match="conftitle" mode="titlepage.mode" dtm:id="conftitle.titlepage-mode"> + <fo:block> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="confnum.titlepage-mode"/> +<xsl:template match="confnum" mode="titlepage.mode" dtm:id="confnum.titlepage-mode"> + <!-- suppress --> +</xsl:template> + +<dtm:doc dtm:idref="contractnum.titlepage-mode"/> +<xsl:template match="contractnum" mode="titlepage.mode" dtm:id="contractnum.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="contractsponsor.titlepage-mode"/> +<xsl:template match="contractsponsor" mode="titlepage.mode" dtm:id="contractsponsor.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="contrib.titlepage-mode"/> +<xsl:template match="contrib" mode="titlepage.mode" dtm:id="contrib.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="copyright.titlepage-mode"/> +<xsl:template match="copyright" mode="titlepage.mode" dtm:id="copyright.titlepage-mode"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'copyright'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:call-template name="dingbat"> + <xsl:with-param name="dingbat">copyright</xsl:with-param> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:call-template name="copyright.years"> + <xsl:with-param name="years" select="year"/> + <xsl:with-param name="print.ranges" select="$make.year.ranges"/> + <xsl:with-param name="single.year.ranges" + select="$make.single.year.ranges"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:apply-templates select="holder" mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="year.titlepage-mode"/> +<xsl:template match="year" mode="titlepage.mode" dtm:id="year.titlepage-mode"> + <fo:inline + border-left-width="0pt" + border-right-width="0pt"><xsl:apply-templates/></fo:inline> +</xsl:template> + +<dtm:doc dtm:idref="holder.titlepage-mode"/> +<xsl:template match="holder" mode="titlepage.mode" dtm:id="holder.titlepage-mode"> + <xsl:apply-templates/> +</xsl:template> + +<dtm:doc dtm:idref="corpauthor.titlepage-mode"/> +<xsl:template match="corpauthor" mode="titlepage.mode" dtm:id="corpauthor.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="corpname.titlepage-mode"/> +<xsl:template match="corpname" mode="titlepage.mode" dtm:id="corpname.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="date.titlepage-mode"/> +<xsl:template match="date" mode="titlepage.mode" dtm:id="date.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="edition.titlepage-mode"/> +<xsl:template match="edition" mode="titlepage.mode" dtm:id="edition.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> + <xsl:text> </xsl:text> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'edition'"/> + </xsl:call-template> +</xsl:template> + +<dtm:doc dtm:idref="editor.titlepage-mode"/> +<xsl:template match="editor" mode="titlepage.mode" dtm:id="editor.titlepage-mode"> + <xsl:call-template name="person.name"/> +</xsl:template> + +<dtm:doc dtm:idref="editor[1].titlepage-mode"/> +<xsl:template match="editor[1]" priority="2" mode="titlepage.mode" dtm:id="editor[1].titlepage-mode"> + <xsl:text>TODO: edited by </xsl:text> + <xsl:call-template name="person.name"/> +</xsl:template> + +<dtm:doc dtm:idref="firstname.titlepage-mode"/> +<xsl:template match="firstname" mode="titlepage.mode" dtm:id="firstname.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="graphic.titlepage-mode"/> +<xsl:template match="graphic" mode="titlepage.mode" dtm:id="graphic.titlepage-mode"> + <!-- use the normal graphic handling code --> + <xsl:apply-templates select="."/> +</xsl:template> + +<dtm:doc dtm:idref="honorific.titlepage-mode"/> +<xsl:template match="honorific" mode="titlepage.mode" dtm:id="honorific.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="isbn.titlepage-mode"/> +<xsl:template match="isbn" mode="titlepage.mode" dtm:id="isbn.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="issn.titlepage-mode"/> +<xsl:template match="issn" mode="titlepage.mode" dtm:id="issn.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="biblioid.titlepage-mode"/> +<xsl:template match="biblioid" mode="titlepage.mode" dtm:id="biblioid.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="itermset.titlepage-mode"/> +<xsl:template match="itermset" mode="titlepage.mode" dtm:id="itermset.titlepage-mode"> + <!-- discard --> +</xsl:template> + +<dtm:doc dtm:idref="invpartnumber.titlepage-mode"/> +<xsl:template match="invpartnumber" mode="titlepage.mode" dtm:id="invpartnumber.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="issuenum.titlepage-mode"/> +<xsl:template match="issuenum" mode="titlepage.mode" dtm:id="issuenum.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="jobtitle.titlepage-mode"/> +<xsl:template match="jobtitle" mode="titlepage.mode" dtm:id="jobtitle.titlepage-mode"> + <fo:block> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="keywordset.titlepage-mode"/> +<xsl:template match="keywordset" mode="titlepage.mode" dtm:id="keywordset.titlepage-mode"> +</xsl:template> + +<dtm:doc dtm:idref="legalnotice.titlepage-mode"/> +<xsl:template match="legalnotice" mode="titlepage.mode" dtm:id="legalnotice.titlepage-mode"> + <fo:block> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title" mode="plain.formal.title.mode"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="formal.title.gentext"> + <xsl:with-param name="key" select="'legalnotice'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + <xsl:apply-templates select="*[local-name(.) != 'title']"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:elements="legalnotice/title" dtm:idref="title.legalnotice.titlepage-mode title.legalnotice.titlepage-title-mode"/> +<xsl:template match="legalnotice/title" mode="titlepage.mode" dtm:id="title.legalnotice.titlepage-mode"> +</xsl:template> + +<xsl:template match="legalnotice/title" mode="titlepage.legalnotice.title.mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="lineage.titlepage-mode"/> +<xsl:template match="lineage" mode="titlepage.mode" dtm:id="lineage.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="modespec.titlepage-mode"/> +<xsl:template match="modespec" mode="titlepage.mode" dtm:id="modespec.titlepage-mode"> + <!-- discard --> +</xsl:template> + +<dtm:doc dtm:idref="orgdiv.titlepage-mode"/> +<xsl:template match="orgdiv" mode="titlepage.mode" dtm:id="orgdiv.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="orgname.titlepage-mode"/> +<xsl:template match="orgname" mode="titlepage.mode" dtm:id="orgname.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="othercredit.titlepage-mode"/> +<xsl:template match="othercredit" mode="titlepage.mode" dtm:id="othercredit.titlepage-mode"> + <xsl:variable name="contrib" select="string(contrib)"/> + <xsl:choose> + <xsl:when test="contrib"> + <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])"> + <fo:block> + <xsl:apply-templates mode="titlepage.mode" select="contrib"/> + <xsl:text>: </xsl:text> + <xsl:call-template name="person.name"/> + <xsl:apply-templates mode="titlepage.mode" select="affiliation"/> + <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/> + </fo:block> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <fo:block><xsl:call-template name="person.name"/></fo:block> + <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="othercredit.titlepage-othercredits"/> +<xsl:template match="othercredit" mode="titlepage.othercredits" dtm:id="othercredit.titlepage-othercredits"> + <xsl:text>, </xsl:text> + <xsl:call-template name="person.name"/> +</xsl:template> + +<dtm:doc dtm:idref="othername.titlepage-mode"/> +<xsl:template match="othername" mode="titlepage.mode" dtm:id="othername.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="pagenums.titlepage-mode"/> +<xsl:template match="pagenums" mode="titlepage.mode" dtm:id="pagenums.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="printhistory.titlepage-mode"/> +<xsl:template match="printhistory" mode="titlepage.mode" dtm:id="printhistory.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="productname.titlepage-mode"/> +<xsl:template match="productname" mode="titlepage.mode" dtm:id="productname.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="productnumber.titlepage-mode"/> +<xsl:template match="productnumber" mode="titlepage.mode" dtm:id="productnumber.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="pubdate.titlepage-mode"/> +<xsl:template match="pubdate" mode="titlepage.mode" dtm:id="pubdate.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="publisher.titlepage-mode"/> +<xsl:template match="publisher" mode="titlepage.mode" dtm:id="publisher.titlepage-mode"> + <fo:block> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="publishername.titlepage-mode"/> +<xsl:template match="publishername" mode="titlepage.mode" dtm:id="publishername.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="pubsnumber.titlepage-mode"/> +<xsl:template match="pubsnumber" mode="titlepage.mode" dtm:id="pubsnumber.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="releaseinfo.titlepage-mode"/> +<xsl:template match="releaseinfo" mode="titlepage.mode" dtm:id="releaseinfo.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="revhistory.titlepage-mode"/> +<xsl:template match="revhistory" mode="titlepage.mode" dtm:id="revhistory.titlepage-mode"> + <fo:table table-layout="fixed"> + <fo:table-column column-number="1" column-width="33%"/> + <fo:table-column column-number="2" column-width="33%"/> + <fo:table-column column-number="3" column-width="33%"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell number-columns-spanned="3"> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'revhistory'"/> + </xsl:call-template> + </fo:block> + </fo:table-cell> + </fo:table-row> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:table-body> + </fo:table> +</xsl:template> + +<dtm:doc dtm:idref="revision.revhistory.titlepage-mode"/> +<xsl:template match="revhistory/revision" mode="titlepage.mode" dtm:id="revision.revhistory.titlepage-mode"> + <xsl:variable name="revnumber" select=".//revnumber"/> + <xsl:variable name="revdate" select=".//date"/> + <xsl:variable name="revauthor" select=".//authorinitials"/> + <xsl:variable name="revremark" select=".//revremark|.//revdescription"/> + <fo:table-row> + <fo:table-cell> + <fo:block> + <xsl:if test="$revnumber"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'revision'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/> + </xsl:if> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block> + <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block> + <xsl:apply-templates select="$revauthor[1]" mode="titlepage.mode"/> + </fo:block> + </fo:table-cell> + </fo:table-row> + <xsl:if test="$revremark"> + <fo:table-row> + <fo:table-cell number-columns-spanned="3"> + <fo:block> + <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/> + </fo:block> + </fo:table-cell> + </fo:table-row> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="revnumber.revision.titlepage-mode"/> +<xsl:template match="revision/revnumber" mode="titlepage.mode" dtm:id="revnumber.revision.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="date.revision.titlepage-mode"/> +<xsl:template match="revision/date" mode="titlepage.mode" dtm:id="date.revision.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="authorinitials.revision.titlepage-mode"/> +<xsl:template match="revision/authorinitials" mode="titlepage.mode" dtm:id="authorinitials.revision.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="revremark.revision.titlepage-mode"/> +<xsl:template match="revision/revremark" mode="titlepage.mode" dtm:id="revremark.revision.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="revdescription.revision.titlepage-mode"/> +<xsl:template match="revision/revdescription" mode="titlepage.mode" dtm:id="revdescription.revision.titlepage-mode"> + <fo:block text-align="left"> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="seriesvolnums.titlepage-mode"/> +<xsl:template match="seriesvolnums" mode="titlepage.mode" dtm:id="seriesvolnums.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="shortaffil.titlepage-mode"/> +<xsl:template match="shortaffil" mode="titlepage.mode" dtm:id="shortaffil.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="subjectset.titlepage-mode"/> +<xsl:template match="subjectset" mode="titlepage.mode" dtm:id="subjectset.titlepage-mode"> + <!-- discard --> +</xsl:template> + +<dtm:doc dtm:idref="subtitle.titlepage-mode"/> +<xsl:template match="subtitle" mode="titlepage.mode" dtm:id="subtitle.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="surname.titlepage-mode"/> +<xsl:template match="surname" mode="titlepage.mode" dtm:id="surname.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="title.titlepage-mode"/> +<xsl:template match="title" mode="titlepage.mode" dtm:id="title.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="titleabbrev.titlepage-mode"/> +<xsl:template match="titleabbrev" mode="titlepage.mode" dtm:id="titleabbrev.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="volumenum.titlepage-mode"/> +<xsl:template match="volumenum" mode="titlepage.mode" dtm:id="volumenum.titlepage-mode"> + <xsl:apply-templates mode="titlepage.mode"/> +</xsl:template> + +<!-- ==================================================================== --> +<!-- Book templates --> + +<!-- Note: these templates cannot use *.titlepage.recto.mode or + *.titlepage.verso.mode. If they do then subsequent use of a custom + titlepage.templates.xml file will not work correctly. --> + +<!-- book recto --> +<dtm:doc dtm:idref="authorgroup.bookinfo.titlepage-mode"/> +<xsl:template match="bookinfo/authorgroup" mode="titlepage.mode" priority="2" dtm:id="authorgroup.bookinfo.titlepage-mode"> + <fo:block> + <xsl:if test="@id"> + <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> + </xsl:if> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'by'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:call-template name="person.name.list"/> + </fo:block> +</xsl:template> + +<!-- book verso --> +<dtm:doc dtm:idref="book.verso.title"/> +<xsl:template name="book.verso.title" dtm:id="book.verso.title"> + <fo:block> + <xsl:apply-templates mode="titlepage.mode"/> + + <xsl:if test="following-sibling::subtitle + |following-sibling::bookinfo/subtitle"> + <xsl:text>: </xsl:text> + + <xsl:apply-templates select="(following-sibling::subtitle + |following-sibling::bookinfo/subtitle)[1]" + mode="book.verso.subtitle.mode"/> + </xsl:if> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="subtitle.book.verso.mode"/> +<xsl:template match="subtitle" mode="book.verso.subtitle.mode" dtm:id="subtitle.book.verso.mode"> + <xsl:apply-templates mode="titlepage.mode"/> + <xsl:if test="following-sibling::subtitle"> + <xsl:text>: </xsl:text> + <xsl:apply-templates select="following-sibling::subtitle[1]" + mode="book.verso.subtitle.mode"/> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="verso.authorgroup"/> +<xsl:template name="verso.authorgroup" dtm:id="verso.authorgroup"> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'by'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:call-template name="person.name.list"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="author.bookinfo.titlepage-mode"/> +<xsl:template match="bookinfo/author" mode="titlepage.mode" priority="2" dtm:id="author.bookinfo.titlepage-mode"> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'by'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:call-template name="person.name"/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="corpauthor.bookinfo.titlepage-mode"/> +<xsl:template match="bookinfo/corpauthor" mode="titlepage.mode" priority="2" dtm:id="corpauthor.bookinfo.titlepage-mode"> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'by'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="pubdate.bookinfo.titlepage-mode"/> +<xsl:template match="bookinfo/pubdate" mode="titlepage.mode" priority="2" dtm:id="pubdate.bookinfo.titlepage-mode"> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'published'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:apply-templates mode="titlepage.mode"/> + </fo:block> +</xsl:template> + +<!-- ==================================================================== --> + +</xsl:stylesheet> diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/titles.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/titles.xsl new file mode 100644 index 0000000..86799e4 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/titles.xsl @@ -0,0 +1,511 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + xmlns:xse="http://www.syntext.com/Extensions/XSLT-1.0" + xmlns:se="http://syntext.com/XSL/Format-1.0" + xmlns:dtm="http://syntext.com/Extensions/DocumentTypeMetadata-1.0" + extension-element-prefixes="dtm" + version='1.0'> + + <!-- This template helps to see chapter when its titlethings are + still empty --> + + <dtm:doc dtm:idref="handle.empty"/> + <xsl:template name="handle.empty" dtm:id="handle.empty"> + <xsl:param name="titles" select="''"/> + <xsl:param name="preamble" select="''"/> + <xsl:param name="content" select="*"/> + + <xsl:variable name="toc"> + <xsl:call-template name="decorations"/> + </xsl:variable> + + <xsl:variable name="type"> + <xsl:call-template name="get.type"/> + </xsl:variable> + + <xsl:choose> + <xsl:when test="string-length($titles)"> + <xsl:copy-of select="$titles"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="." mode="empty.title.mode"/> + </xsl:otherwise> + </xsl:choose> + + <xsl:if test="contains($toc, 'toc')"> + <xsl:choose> + <xsl:when test="self::set"> + <xsl:call-template name="set.toc"/> + </xsl:when> + <xsl:when test="$type = 'division'"> + <xsl:call-template name="division.toc"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="component.toc"/> + </xsl:otherwise> + </xsl:choose> + </xsl:if> + <xsl:choose> + <xsl:when test="$show.preamble.editing"> + <fo:block padding-bottom="0.5em"> + <fo:block xsl:use-attribute-sets="preamble.attributes"> + <fo:block background-color="transparent" + xsl:use-attribute-sets="title.content.properties formal.title.properties"> + <xsl:call-template name="gentext.template"> + <xsl:with-param name="name" select="'draftarea'"/> + <xsl:with-param name="context" select="'empty'"/> + </xsl:call-template> + <xsl:text> "</xsl:text> + <xsl:value-of select="local-name(.)"/> + <xsl:text>" </xsl:text> + <xsl:call-template name="gentext.template"> + <xsl:with-param name="name" select="'metainfo'"/> + <xsl:with-param name="context" select="'empty'"/> + </xsl:call-template> + <xsl:text>. </xsl:text> + </fo:block> + <xsl:apply-templates select="$preamble"/> + </fo:block> + </fo:block> + </xsl:when> + <xsl:when test="processing-instruction('se:choice')"> + <fo:block> + <xsl:apply-templates select="processing-instruction('se:choice')"/> + </fo:block> + </xsl:when> + </xsl:choose> + + <xsl:apply-templates select="$content"/> + </xsl:template> + + <dtm:doc dtm:idref="sbpr.empty-title-mode"/> + <xsl:template match="set|book|part|reference" mode="empty.title.mode" dtm:id="sbpr.empty-title-mode"> + <fo:block + background-color="#e0e0e0" + xsl:use-attribute-sets="title.content.properties + division.title.properties"> + <xsl:call-template name="gentext.template"> + <xsl:with-param name="context" select="'empty'"/> + <xsl:with-param name="name" select="local-name(.)"/> + </xsl:call-template> + </fo:block> + </xsl:template> + + <dtm:doc dtm:idref="aacp.empty-title-mode"/> + <xsl:template match="appendix|article|chapter|preface" mode="empty.title.mode" dtm:id="aacp.empty-title-mode"> + <fo:block + background-color="#e0e0e0" + xsl:use-attribute-sets="title.content.properties + component.title.properties"> + <xsl:call-template name="gentext.template"> + <xsl:with-param name="context" select="'empty'"/> + <xsl:with-param name="name" select="local-name(.)"/> + </xsl:call-template> + </fo:block> + </xsl:template> + + <dtm:doc dtm:idref="sections.empty-title-mode"/> + <xsl:template match="section|sect1|sect2|sect3|sect4|sect5|bibliodiv|glossary" + mode="empty.title.mode" dtm:id="sections.empty-title-mode"> + <fo:block + background-color="#e0e0e0" + xsl:use-attribute-sets="title.content.properties + section.title.level1.properties"> + <xsl:call-template name="gentext.template"> + <xsl:with-param name="context" select="'empty'"/> + <xsl:with-param name="name" select="local-name(.)"/> + </xsl:call-template> + </fo:block> + </xsl:template> + + <dtm:doc dtm:idref="all.empty-title-mode"/> + <xsl:template match="*" mode="empty.title.mode" dtm:id="all.empty-title-mode"> + <fo:block> + <xsl:call-template name="gentext.template"> + <xsl:with-param name="context" select="'empty'"/> + <xsl:with-param name="name" select="local-name(.)"/> + </xsl:call-template> + </fo:block> + </xsl:template> + + <dtm:doc dtm:idref="empty-title"/> + <xsl:template name="empty-title" dtm:id="empty-title"> + <xsl:choose> + <xsl:when test="node()"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext.template"> + <xsl:with-param name="context" select="'empty'"/> + <xsl:with-param name="name" select="'title'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <!-- Commonly met elements --> + + <dtm:doc dtm:idref="titles.count"/> + <xsl:template name="count.title" dtm:id="titles.count"> + <xsl:param name="need.dot"/> + <xsl:choose> + <xsl:when test="self::title or self::subtitle"> + <xsl:for-each select=".."> + <xsl:call-template name="count.title"> + <xsl:with-param name="need.dot" select="$need.dot"/> + </xsl:call-template> + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <xsl:choose> + <xsl:when test="ancestor::appendix"> + <xsl:number level="multiple" count="appendix|section|sect1| + sect2|sect3|sect4|sect5|simplesect" format="A.1."/> + </xsl:when> + <xsl:otherwise> + <xsl:number level="multiple" count="chapter|section|sect1| + sect2|sect3|sect4|sect5|simplesect" format="1.1."/> + </xsl:otherwise> + </xsl:choose> + <xsl:choose> + <xsl:when test="$need.dot"> + <xsl:number level="any" from="chapter|article|book|part" + format="1. "/> + </xsl:when> + <xsl:otherwise> + <xsl:number level="any" from="chapter|article|book|part" + format="1"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <dtm:doc dtm:idref="title.formal-title-mode"/> + <xsl:template match="title" mode="formal.title.mode" dtm:id="title.formal-title-mode"> + <xsl:param name="key" select="''"/> + <xsl:variable name="title"> + <fo:inline> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="$key"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:call-template name="count.title"> + <xsl:with-param name="need.dot" select="1"/> + </xsl:call-template> + </fo:inline> + <xsl:apply-templates/> + </xsl:variable> + <fo:block + xsl:use-attribute-sets="title.content.properties formal.title.properties"> + <xsl:choose> + <xsl:when test="string-length($title)"> + <xsl:copy-of select="$title"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>Title:</xsl:text> + </xsl:otherwise> + </xsl:choose> + </fo:block> + </xsl:template> + + <dtm:doc dtm:idref="title.formal-title-mode"/> + <xsl:template match="title" mode="plain.formal.title.mode"> + <fo:block + xsl:use-attribute-sets="title.content.properties formal.title.properties"> + <xsl:apply-templates/> + </fo:block> + </xsl:template> + + <dtm:doc dtm:idref="formal-title-gentext"/> + <xsl:template name="formal.title.gentext" dtm:id="formal-title-gentext"> + <xsl:param name="key" select="''"/> + <fo:block + xsl:use-attribute-sets="title.content.properties formal.title.properties"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="$key"/> + </xsl:call-template> + </fo:block> + </xsl:template> + + <!-- Article Titles --> + <dtm:doc dtm:idref="title.article-titles-mode"/> + <xsl:template match="title" mode="article.titles.mode" dtm:id="title.article-titles-mode"> + <fo:block> + <xsl:call-template name="empty-title"/> + </fo:block> + </xsl:template> + + <!-- Appendix Titles --> + <dtm:doc dtm:idref="title.appendix-titles-mode"/> + <xsl:template match="title" mode="appendix.titles.mode" dtm:id="title.appendix-titles-mode"> + <fo:block> + <xsl:choose> + <xsl:when test="$appendix.autolabel"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'appendix'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:number level="single" count="appendix" format="A. "/> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="empty-title"/> + </xsl:otherwise> + </xsl:choose> + </fo:block> + </xsl:template> + + <!-- Part Titles --> + <dtm:doc dtm:idref="title.part-titles-mode"/> + <xsl:template match="title" mode="part.titles.mode" dtm:id="title.part-titles-mode"> + <fo:block> + <xsl:choose> + <xsl:when test="$part.autolabel"> + <xsl:number level="single" count="part" format="I. "/> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="empty-title"/> + </xsl:otherwise> + </xsl:choose> + </fo:block> + </xsl:template> + + <dtm:doc dtm:idref="title.reference-titles-mode"/> + <xsl:template match="title" mode="reference.titles.mode" dtm:id="title.reference-titles-mode"> + <fo:block + xsl:use-attribute-sets="title.content.properties + division.title.properties"> + <xsl:call-template name="empty-title"/> + </fo:block> + </xsl:template> + + <!-- Chapter Titles --> + <dtm:doc dtm:idref="title.chapter-titles-mode"/> + <xsl:template match="title" mode="chapter.titles.mode" dtm:id="title.chapter-titles-mode"> + <fo:block> + <xsl:choose> + <xsl:when test="$chapter.autolabel"> + <fo:inline> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'chapter'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:number level="single" count="chapter" format="1. "/> + </fo:inline> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="empty-title"/> + </xsl:otherwise> + </xsl:choose> + </fo:block> + </xsl:template> + + <!-- Simplesect titles --> + <dtm:doc dtm:idref="title.simplesect-titles-mode"/> + <xsl:template match="title" mode="simplesect.titles.mode" dtm:id="title.simplesect-titles-mode"> + <fo:block> + <xsl:call-template name="empty-title"/> + </fo:block> + </xsl:template> + + <!-- Preface Titles --> + <dtm:doc dtm:idref="title.preface-titles-mode"/> + <xsl:template match="title" mode="preface.titles.mode" dtm:id="title.preface-titles-mode"> + <fo:block> + <xsl:choose> + <xsl:when test="$preface.autolabel"> + <fo:inline> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'preface'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + <xsl:number level="single" count="preface" format="I. "/> + </fo:inline> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="empty-title"/> + </xsl:otherwise> + </xsl:choose> + </fo:block> + </xsl:template> + + <!-- Section Titles --> + <dtm:doc dtm:idref="title.section-titles-mode"/> + <xsl:template match="title" mode="section.titles.mode" dtm:id="title.section-titles-mode"> + <xsl:param name="level"> + <xsl:call-template name="section.level"/> + </xsl:param> + <xsl:param name="heading"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'section'"/> + </xsl:call-template> + <xsl:text> </xsl:text> + </xsl:param> + <xsl:variable name="title.content"> + <xsl:choose> + <xsl:when test="$section.autolabel"> + <xsl:if test="not(ancestor::refentry)"> + <xsl:value-of select="$heading"/> + </xsl:if> + <xsl:choose> + <xsl:when test="$section.label.includes.component.label"> + <xsl:choose> + <xsl:when test="ancestor::appendix"> + <xsl:number + level="multiple" + count="appendix|section|sect1|sect2|sect3|sect4|sect5| + refsect1|refsect2|refsect3" + format="A.1. "/> + </xsl:when> + <xsl:when test="ancestor::refentry"> + </xsl:when> + <xsl:otherwise> + <xsl:number + level="multiple" + count="chapter|qandadiv|section| + sect1|sect2|sect3|sect4|sect5| + refsect1|refsect2|refsect3" + format="1. "/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:number + level="multiple" + count="qandadiv|section|sect1|sect2|sect3|sect4|sect5| + refsect1|refsect2|refsect3" + format="1. "/> + </xsl:otherwise> + </xsl:choose> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="empty-title"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:choose> + <xsl:when test="$level = 1"> + <fo:block + xsl:use-attribute-sets="section.title.level1.properties"> + <xsl:copy-of select="$title.content"/> + </fo:block> + </xsl:when> + <xsl:when test="$level = 2"> + <fo:block + xsl:use-attribute-sets="section.title.level2.properties"> + <xsl:copy-of select="$title.content"/> + </fo:block> + </xsl:when> + <xsl:when test="$level = 3"> + <fo:block + xsl:use-attribute-sets="section.title.level3.properties"> + <xsl:copy-of select="$title.content"/> + </fo:block> + </xsl:when> + <xsl:when test="$level = 4"> + <fo:block + xsl:use-attribute-sets="section.title.level4.properties"> + <xsl:copy-of select="$title.content"/> + </fo:block> + </xsl:when> + <xsl:when test="$level = 5"> + <fo:block + xsl:use-attribute-sets="section.title.level5.properties"> + <xsl:copy-of select="$title.content"/> + </fo:block> + </xsl:when> + <xsl:otherwise> + <fo:block + xsl:use-attribute-sets="section.title.level5.properties"> + <xsl:copy-of select="$title.content"/> + </fo:block> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <!-- Set Titles --> + <dtm:doc dtm:idref="title.set-titles-mode"/> + <xsl:template match="title" mode="set.titles.mode" dtm:id="title.set-titles-mode"> + <fo:block> + <xsl:call-template name="empty-title"/> + </fo:block> + </xsl:template> + + <!-- Book Titles --> + <dtm:doc dtm:idref="title.book-titles-mode"/> + <xsl:template match="title" mode="book.titles.mode" dtm:id="title.book-titles-mode"> + <fo:block> + <xsl:call-template name="empty-title"/> + </fo:block> + </xsl:template> + + <!-- Bibliodiv Titles --> + <dtm:doc dtm:idref="title.bibliodiv-titles-mode"/> + <xsl:template match="title" mode="bibliodiv.titles.mode" dtm:id="title.bibliodiv-titles-mode"> + <fo:block> + <xsl:call-template name="empty-title"/> + </fo:block> + </xsl:template> + + <!-- Bibliography Titles --> + <dtm:doc dtm:idref="bibliography.title"/> + <xsl:template name="bibliography.title" dtm:id="bibliography.title"> + <xsl:param name="node" select="."/> + <fo:block> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'bibliography'"/> + </xsl:call-template> + </fo:block> + <xsl:apply-templates select="title"/> + </xsl:template> + + <!-- Glossary Titles --> + <dtm:doc dtm:idref="title.glossary-titles-mode"/> + <xsl:template name="title" mode="glossary.titles.mode" dtm:id="title.glossary-titles-mode"> + <fo:block> + <xsl:call-template name="empty-title"/> + </fo:block> + </xsl:template> + + <!-- Glossdiv Titles --> + <dtm:doc dtm:idref="title.glossdiv-titles-mode"/> + <xsl:template match="title" mode="glossdiv.titles.mode" dtm:id="title.glossdiv-titles-mode"> + <fo:block> + <xsl:call-template name="empty-title"/> + </fo:block> + </xsl:template> + + <!-- Information wrappers --> + <dtm:doc dtm:idref="infoes"/> + <xsl:template match="articleinfo|artheader|bookbiblio|docinfo|objectinfo|refsynopsisdivinfo|sect1info|sect2info|sect3info|sect4info|sect5info|sectioninfo|setinfo" dtm:id="infoes"> + <fo:block> + <xsl:apply-templates/> + </fo:block> + </xsl:template> + + <dtm:doc dtm:idref="title.refsynopsisdiv-titles-mode"/> + <xsl:template match="title" mode="refsynopsisdiv.titles.mode" dtm:id="title.refsynopsisdiv-titles-mode"> + <fo:block> + <xsl:call-template name="empty-title"/> + </fo:block> + </xsl:template> + + <dtm:doc dtm:idref="serna.fold.template"/> + <xsl:template name="serna.fold.template" dtm:id="serna.fold.template"> + <xsl:apply-templates select="." mode="serna.fold" + xse:apply-serna-fold-template="false"/> + </xsl:template> + + <dtm:doc dtm:idref="all.serna-fold"/> + <xsl:template match="*" mode="serna.fold" dtm:id="all.serna-fold"> + <se:fold se:fold=""/> + </xsl:template> + +</xsl:stylesheet> + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/toc.labels.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/toc.labels.xsl new file mode 100644 index 0000000..92a9fc7 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/toc.labels.xsl @@ -0,0 +1,553 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + xmlns:xse="http://www.syntext.com/Extensions/XSLT-1.0" + xmlns:dtm="http://syntext.com/Extensions/DocumentTypeMetadata-1.0" + extension-element-prefixes="dtm" + exclude-result-prefixes="doc" + version='1.0'> + +<dtm:doc dtm:idref="all.intralabel-punctuation"/> +<xsl:template match="*" mode="intralabel.punctuation" dtm:id="all.intralabel-punctuation"> + <xsl:text>.</xsl:text> +</xsl:template> + +<dtm:doc dtm:idref="all.label-markup"/> +<xsl:template match="*" mode="label.markup" dtm:id="all.label-markup"> + <xsl:text>UNKNOWN LABEL MARKUP</xsl:text> +</xsl:template> + +<dtm:doc dtm:idref="sb.label-markup"/> +<xsl:template match="set|book" mode="label.markup" dtm:id="sb.label-markup"> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="part.label-markup"/> +<xsl:template match="part" mode="label.markup" dtm:id="part.label-markup"> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$part.autolabel != 0"> + <xsl:number from="book" count="part" format="I"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="partintro.label-markup"/> +<xsl:template match="partintro" mode="label.markup" dtm:id="partintro.label-markup"> + <!-- no label --> +</xsl:template> + +<dtm:doc dtm:idref="preface.label-markup"/> +<xsl:template match="preface" mode="label.markup" dtm:id="preface.label-markup"> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$preface.autolabel != 0"> + <xsl:choose> + <xsl:when test="$label.from.part != 0 and ancestor::part"> + <xsl:number from="part" count="preface" format="1" level="any"/> + </xsl:when> + <xsl:otherwise> + <xsl:number from="book" count="preface" format="1" level="any"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="chapter.label-markup"/> +<xsl:template match="chapter" mode="label.markup" dtm:id="chapter.label-markup"> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$chapter.autolabel != 0"> + <xsl:choose> + <xsl:when test="$label.from.part != 0 and ancestor::part"> + <xsl:number from="part" count="chapter" format="1" level="any"/> + </xsl:when> + <xsl:otherwise> + <xsl:number from="book" count="chapter" format="1" level="any"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="appendix.label-markup"/> +<xsl:template match="appendix" mode="label.markup" dtm:id="appendix.label-markup"> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$appendix.autolabel != 0"> + <xsl:choose> + <xsl:when test="$label.from.part != 0 and ancestor::part"> + <xsl:number from="part" count="appendix" format="A" level="any"/> + </xsl:when> + <xsl:otherwise> + <xsl:number from="book|article" + count="appendix" format="A" level="any"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="article.label-markup"/> +<xsl:template match="article" mode="label.markup" dtm:id="article.label-markup"> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="dc.label-markup"/> +<xsl:template match="dedication|colophon" mode="label.markup" dtm:id="dc.label-markup"> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="reference.label-markup"/> +<xsl:template match="reference" mode="label.markup" dtm:id="reference.label-markup"> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$part.autolabel != 0"> + <xsl:number from="book" count="reference" format="I" level="any"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="refentry.label-markup"/> +<xsl:template match="refentry" mode="label.markup" dtm:id="refentry.label-markup"> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="section.label-markup"/> +<xsl:template match="section" mode="label.markup" dtm:id="section.label-markup"> + <!-- if this is a nested section, label the parent --> + <xsl:if test="local-name(..) = 'section'"> + <xsl:variable name="parent.section.label"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:variable> + <xsl:if test="$parent.section.label != ''"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select=".." mode="intralabel.punctuation" xse:apply-serna-fold-template="false"/> + </xsl:if> + </xsl:if> + + <!-- if the parent is a component, maybe label that too --> + <xsl:variable name="parent.is.component"> + <xsl:call-template name="is.component"> + <xsl:with-param name="node" select=".."/> + </xsl:call-template> + </xsl:variable> + + <!-- does this section get labelled? --> + <xsl:variable name="label"> + <xsl:call-template name="label.this.section"> + <xsl:with-param name="section" select="."/> + </xsl:call-template> + </xsl:variable> + + <xsl:if test="$section.label.includes.component.label != 0 + and $parent.is.component != 0"> + <xsl:variable name="parent.label"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:variable> + <xsl:if test="$parent.label != ''"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select=".." mode="intralabel.punctuation" xse:apply-serna-fold-template="false"/> + </xsl:if> + </xsl:if> + + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$label != 0"> + <xsl:number count="section"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="sect1.label-markup"/> +<xsl:template match="sect1" mode="label.markup" dtm:id="sect1.label-markup"> + <!-- if the parent is a component, maybe label that too --> + <xsl:variable name="parent.is.component"> + <xsl:call-template name="is.component"> + <xsl:with-param name="node" select=".."/> + </xsl:call-template> + </xsl:variable> + + <xsl:if test="$section.label.includes.component.label != 0 + and $parent.is.component"> + <xsl:variable name="parent.label"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:variable> + <xsl:if test="$parent.label != ''"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select=".." mode="intralabel.punctuation" xse:apply-serna-fold-template="false"/> + </xsl:if> + </xsl:if> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:number count="sect1"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="sections.label-markup"/> +<xsl:template match="sect2|sect3|sect4|sect5" mode="label.markup" dtm:id="sections.label-markup"> + <!-- label the parent --> + <xsl:variable name="parent.label"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:variable> + <xsl:if test="$parent.label != ''"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select=".." mode="intralabel.punctuation" xse:apply-serna-fold-template="false"/> + </xsl:if> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:choose> + <xsl:when test="local-name(.) = 'sect2'"> + <xsl:number count="sect2"/> + </xsl:when> + <xsl:when test="local-name(.) = 'sect3'"> + <xsl:number count="sect3"/> + </xsl:when> + <xsl:when test="local-name(.) = 'sect4'"> + <xsl:number count="sect4"/> + </xsl:when> + <xsl:when test="local-name(.) = 'sect5'"> + <xsl:number count="sect5"/> + </xsl:when> + </xsl:choose> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="bridgehead.label-markup"/> +<xsl:template match="bridgehead" mode="label.markup" dtm:id="bridgehead.label-markup"> + <!-- FIXME: could we do a better job here? --> + <xsl:variable name="contsec" + select="(ancestor::section + |ancestor::simplesect + |ancestor::sect1 + |ancestor::sect2 + |ancestor::sect3 + |ancestor::sect4 + |ancestor::sect5 + |ancestor::refsect1 + |ancestor::refsect2 + |ancestor::refsect3 + |ancestor::chapter + |ancestor::appendix + |ancestor::preface)[last()]"/> + + <xsl:apply-templates select="$contsec" mode="label.markup" xse:apply-serna-fold-template="false"/> +</xsl:template> + +<dtm:doc dtm:idref="refsect1.label-markup"/> +<xsl:template match="refsect1" mode="label.markup" dtm:id="refsect1.label-markup"> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:number count="refsect1"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="refsects.label-markup"/> +<xsl:template match="refsect2|refsect3" mode="label.markup" dtm:id="refsects.label-markup"> + <!-- label the parent --> + <xsl:variable name="parent.label"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:variable> + <xsl:if test="$parent.label != ''"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select=".." mode="intralabel.punctuation" xse:apply-serna-fold-template="false"/> + </xsl:if> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:choose> + <xsl:when test="local-name(.) = 'refsect2'"> + <xsl:number count="refsect2"/> + </xsl:when> + <xsl:otherwise> + <xsl:number count="refsect3"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="simplesect.label-markup"/> +<xsl:template match="simplesect" mode="label.markup" dtm:id="simplesect.label-markup"> + <!-- if this is a nested section, label the parent --> + <xsl:if test="local-name(..) = 'section' + or local-name(..) = 'sect1' + or local-name(..) = 'sect2' + or local-name(..) = 'sect3' + or local-name(..) = 'sect4' + or local-name(..) = 'sect5'"> + <xsl:variable name="parent.section.label"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:variable> + <xsl:if test="$parent.section.label != ''"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select=".." mode="intralabel.punctuation" xse:apply-serna-fold-template="false"/> + </xsl:if> + </xsl:if> + + <!-- if the parent is a component, maybe label that too --> + <xsl:variable name="parent.is.component"> + <xsl:call-template name="is.component"> + <xsl:with-param name="node" select=".."/> + </xsl:call-template> + </xsl:variable> + + <!-- does this section get labelled? --> + <xsl:variable name="label"> + <xsl:call-template name="label.this.section"> + <xsl:with-param name="section" select="."/> + </xsl:call-template> + </xsl:variable> + + <xsl:if test="$section.label.includes.component.label != 0 + and $parent.is.component != 0"> + <xsl:variable name="parent.label"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:variable> + <xsl:if test="$parent.label != ''"> + <xsl:apply-templates select=".." mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select=".." mode="intralabel.punctuation" xse:apply-serna-fold-template="false"/> + </xsl:if> + </xsl:if> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$label != 0"> + <xsl:number count="simplesect"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="qandadiv.label-markup"/> +<xsl:template match="qandadiv" mode="label.markup" dtm:id="qandadiv.label-markup"> + <xsl:variable name="lparent" select="(ancestor::set + |ancestor::book + |ancestor::chapter + |ancestor::appendix + |ancestor::preface + |ancestor::section + |ancestor::simplesect + |ancestor::sect1 + |ancestor::sect2 + |ancestor::sect3 + |ancestor::sect4 + |ancestor::sect5 + |ancestor::refsect1 + |ancestor::refsect2 + |ancestor::refsect3)[last()]"/> + + <xsl:variable name="lparent.prefix"> + <xsl:apply-templates select="$lparent" mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:variable> + + <xsl:variable name="prefix"> + <xsl:if test="$qanda.inherit.numeration != 0"> + <xsl:if test="$lparent.prefix != ''"> + <xsl:apply-templates select="$lparent" mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select="$lparent" mode="intralabel.punctuation" xse:apply-serna-fold-template="false"/> + </xsl:if> + </xsl:if> + </xsl:variable> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="$prefix"/> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="$qandadiv.autolabel != 0"> + <xsl:value-of select="$prefix"/> + <xsl:number level="multiple" count="qandadiv" format="1"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="bgis.label-markup"/> +<xsl:template match="bibliography|glossary|index|setindex" mode="label.markup" dtm:id="bgis.label-markup"> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="ftep.label-markup"/> +<xsl:template match="figure|table|example|procedure" mode="label.markup" dtm:id="ftep.label-markup"> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:when test="local-name() = 'procedure' and + $formal.procedures = 0"> + <!-- No label --> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="count.title"/> + </xsl:otherwise> + </xsl:choose> + +</xsl:template> + +<dtm:doc dtm:idref="equation.label-markup"/> +<xsl:template match="equation" mode="label.markup" dtm:id="equation.label-markup"> + <xsl:variable name="pchap" + select="ancestor::chapter + |ancestor::appendix + |ancestor::article[ancestor::book]"/> + + <xsl:variable name="prefix"> + <xsl:if test="count($pchap) > 0"> + <xsl:apply-templates select="$pchap" mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:if> + </xsl:variable> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + </xsl:when> + <xsl:otherwise> + <xsl:choose> + <xsl:when test="count($pchap)>0"> + <xsl:if test="$prefix != ''"> + <xsl:apply-templates select="$pchap" mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select="$pchap" mode="intralabel.punctuation" xse:apply-serna-fold-template="false"/> + </xsl:if> + <xsl:number format="1" count="equation[title]" from="chapter|appendix" level="any"/> + </xsl:when> + <xsl:otherwise> + <xsl:number format="1" count="equation[title]" from="book|article" level="any"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="abstract.label-markup"/> +<xsl:template match="abstract" mode="label.markup" dtm:id="abstract.label-markup"> + <!-- nop --> +</xsl:template> + +<!-- ============================================================ --> +<dtm:doc dtm:idref="label.this.sect"/> +<xsl:template name="label.this.section" dtm:id="label.this.sect"> + <xsl:param name="section" select="."/> + <xsl:value-of select="$section.autolabel"/> +</xsl:template> + +<!-- ============================================================ --> +<dtm:doc dtm:idref="qa.label-markup"/> +<xsl:template match="question|answer" mode="label.markup" dtm:id="qa.label-markup"> + <!-- xsl:variable name="lparent" select="(ancestor::set + |ancestor::book + |ancestor::chapter + |ancestor::appendix + |ancestor::preface + |ancestor::section + |ancestor::simplesect + |ancestor::sect1 + |ancestor::sect2 + |ancestor::sect3 + |ancestor::sect4 + |ancestor::sect5 + |ancestor::refsect1 + |ancestor::refsect2 + |ancestor::refsect3)[last()]"/ --> + + <!-- xsl:variable name="lparent.prefix"> + <xsl:apply-templates select="$lparent" mode="label.markup"/> + </xsl:variable --> + + <xsl:variable name="prefix"> + <xsl:if test="$qanda.inherit.numeration != 0"> + <!-- xsl:if test="$lparent.prefix != ''"> + <xsl:apply-templates select="$lparent" mode="label.markup"/> + <xsl:apply-templates select="$lparent" mode="intralabel.punctuation"/> + </xsl:if --> + <xsl:if test="ancestor::qandadiv"> + <xsl:apply-templates select="ancestor::qandadiv[1]" mode="label.markup" xse:apply-serna-fold-template="false"/> + <xsl:apply-templates select="ancestor::qandadiv[1]" + mode="intralabel.punctuation" + xse:apply-serna-fold-template="false"/> + </xsl:if> + </xsl:if> + </xsl:variable> + + <xsl:variable name="inhlabel" + select="ancestor-or-self::qandaset/@defaultlabel[1]"/> + + <xsl:variable name="deflabel"> + <xsl:choose> + <xsl:when test="$inhlabel != ''"> + <xsl:value-of select="$inhlabel"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$qanda.defaultlabel"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="label" select="label[not(self::processing-instruction('se:choice'))]"/> + + <xsl:choose> + <xsl:when test="count($label)>0"> + <xsl:apply-templates select="$label" xse:apply-serna-fold-template="false"/> + </xsl:when> + + <xsl:when test="$deflabel = 'qanda' and self::question"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Question'"/> + </xsl:call-template> + </xsl:when> + + <xsl:when test="$deflabel = 'qanda' and self::answer"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Answer'"/> + </xsl:call-template> + </xsl:when> + + <xsl:when test="$deflabel = 'number' and self::question"> + <xsl:value-of select="$prefix"/> + <xsl:number level="multiple" count="qandaentry" format="1"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +</xsl:stylesheet> diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/toc.titles.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/toc.titles.xsl new file mode 100644 index 0000000..0c877a2 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/toc.titles.xsl @@ -0,0 +1,525 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + xmlns:dtm="http://syntext.com/Extensions/DocumentTypeMetadata-1.0" + extension-element-prefixes="dtm" + exclude-result-prefixes="doc" + version='1.0'> + +<dtm:doc dtm:idref="all.title-markup"/> +<xsl:template match="*" mode="title.markup" dtm:id="title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:param name="verbose" select="1"/> + + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title[1]" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:when test="self::partintro"> + <!-- partintro's don't have titles, use the parent (part or reference) + title instead. --> + <xsl:apply-templates select="parent::*" mode="title.markup"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>???TITLE???</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="title.title-markup"/> +<xsl:template match="title" mode="title.markup" dtm:id="title.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + + <xsl:choose> + <xsl:when test="$allow-anchors != 0"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates mode="no.anchor.mode"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="set.title-markup"/> +<xsl:template match="set" mode="title.markup" dtm:id="set.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:apply-templates select="(setinfo/title|title)[1]" + mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<dtm:doc dtm:idref="book.title-markup"/> +<xsl:template match="book" mode="title.markup" dtm:id="book.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:apply-templates select="(bookinfo/title|title)[1]" + mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<dtm:doc dtm:idref="part.title-markup"/> +<xsl:template match="part" mode="title.markup" dtm:id="part.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:apply-templates select="((partinfo|docinfo)/title|title)[1]" + mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<dtm:doc dtm:idref="pca.title-markup"/> +<xsl:template match="preface|chapter|appendix" mode="title.markup" dtm:id="pca.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + + <xsl:variable name="title" select="((docinfo|prefaceinfo + |chapterinfo|appendixinfo)/title + |title)[1]"/> + <xsl:apply-templates select="$title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<dtm:doc dtm:idref="dedication.title-markup"/> +<xsl:template match="dedication" mode="title.markup" dtm:id="dedication.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Dedication'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="colophon.title-markup"/> +<xsl:template match="colophon" mode="title.markup" dtm:id="colophon.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Colophon'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="article.title-markup"/> +<xsl:template match="article" mode="title.markup" dtm:id="article.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:variable name="title" select="((artheader|articleinfo)/title + |title)[1]"/> + + <xsl:apply-templates select="$title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<dtm:doc dtm:idref="reference.title-markup"/> +<xsl:template match="reference" mode="title.markup" dtm:id="reference.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:apply-templates select="((referenceinfo|docinfo)/title|title)[1]" + mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<dtm:doc dtm:idref="refentry.title-markup"/> +<xsl:template match="refentry" mode="title.markup" dtm:id="refentry.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:variable name="refmeta" select=".//refmeta"/> + <xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/> + <xsl:variable name="refnamediv" select=".//refnamediv"/> + <xsl:variable name="refname" select="$refnamediv//refname"/> + + <xsl:variable name="title"> + <xsl:choose> + <xsl:when test="$refentrytitle"> + <xsl:apply-templates select="$refentrytitle[1]" mode="title.markup"/> + </xsl:when> + <xsl:when test="$refname"> + <xsl:apply-templates select="$refname[1]" mode="title.markup"/> + </xsl:when> + <xsl:otherwise>REFENTRY WITHOUT TITLE???</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:copy-of select="$title"/> +</xsl:template> + +<dtm:doc dtm:idref="rr.title-markup"/> +<xsl:template match="refentrytitle|refname" mode="title.markup" dtm:id="rr.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:choose> + <xsl:when test="$allow-anchors != 0"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates mode="no.anchor.mode"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="sections.title-markup"/> +<xsl:template match="section + |sect1|sect2|sect3|sect4|sect5 + |refsect1|refsect2|refsect3 + |simplesect" + mode="title.markup" dtm:id="sections.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:variable name="title" select="((sectioninfo|sect1info + |sect2info|sect3info + |sect4info|sect5info + |refsect1info|refsect2info + |refsect3info)/title + |title)[1]"/> + + <xsl:apply-templates select="$title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<dtm:doc dtm:idref="bridgehead.title-markup"/> +<xsl:template match="bridgehead" mode="title.markup" dtm:id="bridgehead.title-markup"> + <xsl:apply-templates mode="title.markup"/> +</xsl:template> + +<dtm:doc dtm:idref="refsynopsisdiv.title-markup"/> +<xsl:template match="refsynopsisdiv" mode="title.markup" dtm:id="refsynopsisdiv.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'RefSynopsisDiv'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="bibliography.title-markup"/> +<xsl:template match="bibliography" mode="title.markup" dtm:id="bibliography.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:variable name="title" select="(bibliographyinfo/title|title)[1]"/> + <xsl:choose> + <xsl:when test="$title"> + <xsl:apply-templates select="$title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Bibliography'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="index.title-markup"/> +<xsl:template match="index" mode="title.markup" dtm:id="index.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:variable name="title" select="(indexinfo/title|title)[1]"/> + <xsl:choose> + <xsl:when test="$title"> + <xsl:apply-templates select="$title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Index'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="setindex.title-markup"/> +<xsl:template match="setindex" mode="title.markup" dtm:id="setindex.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:variable name="title" select="(setindexinfo/title|title)[1]"/> + <xsl:choose> + <xsl:when test="$title"> + <xsl:apply-templates select="$title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'SetIndex'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="ftee.title-markup"/> +<xsl:template match="figure|table|example|equation" mode="title.markup" dtm:id="ftee.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:apply-templates select="title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<dtm:doc dtm:idref="procedure.title-markup"/> +<xsl:template match="procedure" mode="title.markup" dtm:id="procedure.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:apply-templates select="title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<dtm:doc dtm:idref="abstract.title-markup"/> +<xsl:template match="abstract" mode="title.markup" dtm:id="abstract.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Abstract'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="ctwin.title-markup"/> +<xsl:template match="caution|tip|warning|important|note" mode="title.markup" dtm:idref="ctwin.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:variable name="title" select="title[1]"/> + <xsl:choose> + <xsl:when test="$title"> + <xsl:apply-templates select="$title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key"> + <xsl:choose> + <xsl:when test="self::note">Note</xsl:when> + <xsl:when test="self::important">Important</xsl:when> + <xsl:when test="self::caution">Caution</xsl:when> + <xsl:when test="self::warning">Warning</xsl:when> + <xsl:when test="self::tip">Tip</xsl:when> + </xsl:choose> + </xsl:with-param> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="question.title-markup"/> +<xsl:template match="question" mode="title.markup" dtm:id="question.title-markup"> + <!-- questions don't have titles --> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'question'"/> + </xsl:call-template> +</xsl:template> + +<dtm:doc dtm:idref="answer.title-markup"/> +<xsl:template match="answer" mode="title.markup" dtm:id="answer.title-markup"> + <!-- answers don't have titles --> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'answer'"/> + </xsl:call-template> +</xsl:template> + +<dtm:doc dtm:idref="qandaentry.title-markup"/> +<xsl:template match="qandaentry" mode="title.markup" dtm:id="qandaentry.title-markup"> + <!-- qandaentrys are represented by the first question in them --> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'question'"/> + </xsl:call-template> +</xsl:template> + +<dtm:doc dtm:idref="legalnotice.title-markup"/> +<xsl:template match="legalnotice" mode="title.markup" dtm:id="legalnotice.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'LegalNotice'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- ============================================================ --> +<dtm:doc dtm:idref="all.titleabbrev-markup"/> +<xsl:template match="*" mode="titleabbrev.markup" dtm:id="all.titleabbrev-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:param name="verbose" select="1"/> + + <xsl:choose> + <xsl:when test="titleabbrev"> + <xsl:apply-templates select="titleabbrev[1]" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="." mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="pca.titleabbrev-markup"/> +<xsl:template match="preface|chapter|appendix" mode="titleabbrev.markup" dtm:id="pca.titleabbrev-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:param name="verbose" select="1"/> + + <xsl:variable name="titleabbrev" select="((docinfo|prefaceinfo + |chapterinfo + |appendixinfo)/titleabbrev + |titleabbrev)[1]"/> + + <xsl:choose> + <xsl:when test="$titleabbrev"> + <xsl:apply-templates select="$titleabbrev" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="." mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="article.titleabbrev-markup"/> +<xsl:template match="article" mode="titleabbrev.markup" dtm:id="article.titleabbrev-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:param name="verbose" select="1"/> + + <xsl:variable name="titleabbrev" select="((artheader|articleinfo)/titleabbrev + |titleabbrev)[1]"/> + + <xsl:choose> + <xsl:when test="$titleabbrev"> + <xsl:apply-templates select="$titleabbrev" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="." mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="sections.titleabbrev-markup"/> +<xsl:template match="section + |sect1|sect2|sect3|sect4|sect5 + |refsect1|refsect2|refsect3 + |simplesect" + mode="titleabbrev.markup" dtm:id="sections.titleabbrev-markup"> + <xsl:param name="allow-anchors" select="0"/> + <xsl:param name="verbose" select="1"/> + + <xsl:variable name="titleabbrev" select="((sectioninfo|sect1info + |sect2info|sect3info + |sect4info|sect5info + |refsect1info|refsect2info + |refsect3info)/titleabbrev + |titleabbrev)[1]"/> + + <xsl:choose> + <xsl:when test="$titleabbrev"> + <xsl:apply-templates select="$titleabbrev" mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="." mode="title.markup"> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + <xsl:with-param name="verbose" select="$verbose"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="titleabbrev.title-markup"/> +<xsl:template match="titleabbrev" mode="title.markup" dtm:id="titleabbrev.title-markup"> + <xsl:param name="allow-anchors" select="0"/> + + <xsl:choose> + <xsl:when test="$allow-anchors != 0"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates mode="no.anchor.mode"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- ============================================================ --> +<dtm:doc dtm:idref="all.no-anchor-mode"/> +<xsl:template match="*" mode="no.anchor.mode" dtm:id="all.no-anchor-mode"> + <xsl:apply-templates mode="no.anchor.mode"/> +</xsl:template> + +<dtm:doc dtm:idref="footnote.no-anchor-mode"/> +<xsl:template match="footnote" mode="no.anchor.mode" dtm:id="footnote.no-anchor-mode"> + <!-- nop, suppressed --> +</xsl:template> + +<dtm:doc dtm:idref="anchor.no-anchor-mode"/> +<xsl:template match="anchor" mode="no.anchor.mode" dtm:id="anchor.no-anchor-mode"> + <!-- nop, suppressed --> +</xsl:template> + +<dtm:doc dtm:idref="ulink.no-anchor-mode"/> +<xsl:template match="ulink" mode="no.anchor.mode" dtm:id="ulink.no-anchor-mode"> + <xsl:apply-templates/> +</xsl:template> + +<dtm:doc dtm:idref="link.no-anchor-mode"/> +<xsl:template match="link" mode="no.anchor.mode" dtm:id="link.no-anchor-mode"> + <xsl:apply-templates/> +</xsl:template> + +<dtm:doc dtm:idref="olink.no-anchor-mode"/> +<xsl:template match="olink" mode="no.anchor.mode" dtm:id="olink.no-anchor-mode"> + <xsl:apply-templates/> +</xsl:template> + +<dtm:doc dtm:idref="indexterm.no-anchor-mode"/> +<xsl:template match="indexterm" mode="no.anchor.mode" dtm:id="indexterm.no-anchor-mode"> + <!-- nop, suppressed --> +</xsl:template> + +<dtm:doc dtm:idref="xref.no-anchor-mode"/> +<xsl:template match="xref" mode="no.anchor.mode" dtm:id="xref.no-anchor-mode"> + <!-- FIXME: this should generate the text without the link... --> +</xsl:template> + +</xsl:stylesheet> + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/toc.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/toc.xsl new file mode 100644 index 0000000..27dbdf4 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/toc.xsl @@ -0,0 +1,304 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + xmlns:xse="http://www.syntext.com/Extensions/XSLT-1.0" + xmlns:dtm="http://syntext.com/Extensions/DocumentTypeMetadata-1.0" + extension-element-prefixes="dtm xse" + version='1.0'> + +<dtm:doc dtm:idref="set.toc"/> +<xsl:template name="set.toc" dtm:id="set.toc"> + <xsl:param name="toc-context" select="."/> + <xsl:variable name="nodes" select="book|setindex"/> + + <fo:block + xsl:use-attribute-sets="title.content.properties component.title.properties"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'tableofcontents'"/> + </xsl:call-template> + </fo:block> + + <xsl:if test="$nodes"> + <fo:block xsl:use-attribute-sets="toc.margin.properties"> + <xsl:apply-templates select="$nodes" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="division.toc"/> +<xsl:template name="division.toc" dtm:id="division.toc"> + <xsl:param name="toc-context" select="."/> + <xsl:variable name="nodes" + select="$toc-context/part + |$toc-context/reference + |$toc-context/preface + |$toc-context/chapter + |$toc-context/appendix + |$toc-context/article + |$toc-context/bibliography + |$toc-context/glossary + |$toc-context/index"/> + <fo:block + xsl:use-attribute-sets="title.content.properties component.title.properties"> + <fo:inline> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'tableofcontents'"/> + </xsl:call-template> + </fo:inline> + </fo:block> + + <xsl:if test="$nodes"> + <fo:block + xsl:use-attribute-sets="toc.margin.properties"> + <xsl:apply-templates select="$nodes" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="component.toc"/> +<xsl:template name="component.toc" dtm:id="component.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:variable name="nodes" select="section|sect1|refentry + |article|bibliography|glossary + |appendix"/> + <!-- fo:block + xsl:use-attribute-sets="title.content.properties section.title.level1.properties"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'toc'"/> + </xsl:call-template> + </fo:block --> + + <xsl:if test="$nodes"> + <fo:block xsl:use-attribute-sets="toc.margin.properties"> + <xsl:apply-templates select="$nodes" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="toc.line"/> +<xsl:template name="toc.line" dtm:id="toc.line"> + <xsl:variable name="label"> + <xsl:apply-templates select="." mode="label.markup" xse:apply-serna-fold-template="false"/> + </xsl:variable> + <xsl:variable name="is.component"> + <xsl:call-template name="is.component"> + </xsl:call-template> + </xsl:variable> + + <fo:block + end-indent="{$toc.indent.width}pt"> + <xsl:if test="$is.component = 1 or + local-name(.) = 'part' or local-name(.) = 'book'"> + <xsl:attribute name="font-weight"> + <xsl:text>bold</xsl:text> + </xsl:attribute> + </xsl:if> + <fo:inline> + <xsl:if test="$label != ''"> + <xsl:copy-of select="$label"/> + <xsl:value-of select="$autotoc.label.separator"/> + </xsl:if> + <xsl:apply-templates select="." mode="title.markup" xse:apply-serna-fold-template="false"/> + </fo:inline> + </fo:block> +</xsl:template> + +<dtm:doc dtm:idref="bs.toc"/> +<xsl:template match="book|setindex" mode="toc" dtm:id="bs.toc"> + <xsl:param name="toc-context" select="."/> + <xsl:call-template name="toc.line"/> + + <xsl:variable name="nodes" select="glossary|bibliography|preface|chapter + |reference|part|article|appendix|index"/> + + <xsl:if test="$toc.section.depth > 0 and $nodes"> + <fo:block start-indent="{count(ancestor::*)*$toc.indent.width}pt"> + <xsl:apply-templates select="$nodes" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="part.toc"/> +<xsl:template match="part" mode="toc" dtm:id="part.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> + + <xsl:variable name="nodes" select="chapter|appendix|preface|reference|article"/> + + <xsl:if test="$toc.section.depth > 0 and $nodes"> + <fo:block start-indent="{count(ancestor::*)*$toc.indent.width}pt"> + <xsl:apply-templates select="$nodes" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="rb.toc"/> +<xsl:template match="refentry|book" mode="toc" dtm:id="rb.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> +</xsl:template> + +<dtm:doc dtm:idref="pcaa.toc"/> +<xsl:template match="preface|chapter|appendix|article" + mode="toc" dtm:id="pcaa.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> + + <xsl:variable name="nodes" select="section|sect1"/> + + <xsl:if test="$toc.section.depth > 0 and $nodes"> + <fo:block start-indent="{count(ancestor::*)*$toc.indent.width}pt"> + <xsl:apply-templates select="$nodes" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="sect1.toc"/> +<xsl:template match="sect1" mode="toc" dtm:id="sect1.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> + + <xsl:if test="$toc.section.depth > 1 and sect2"> + <fo:block + start-indent="{count(ancestor::*)*$toc.indent.width}pt"> + <xsl:apply-templates select="sect2" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="sect2.toc"/> +<xsl:template match="sect2" mode="toc" dtm:id="sect2.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> + + <xsl:variable name="reldepth" + select="count(ancestor::*)-count($toc-context/ancestor::*)"/> + + <xsl:if test="$toc.section.depth > 2 and sect3"> + <fo:block + start-indent="{$reldepth*$toc.indent.width}pt"> + <xsl:apply-templates select="sect3" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="sect3.toc"/> +<xsl:template match="sect3" mode="toc" dtm:id="sect3.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> + + <xsl:variable name="reldepth" + select="count(ancestor::*)-count($toc-context/ancestor::*)"/> + + <xsl:if test="$toc.section.depth > 3 and sect4"> + <fo:block + start-indent="{$reldepth*$toc.indent.width}pt"> + <xsl:apply-templates select="sect4" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="sect4.toc"/> +<xsl:template match="sect4" mode="toc" dtm:id="sect4.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> + + <xsl:variable name="reldepth" + select="count(ancestor::*)-count($toc-context/ancestor::*)"/> + + <xsl:if test="$toc.section.depth > 4 and sect5"> + <fo:block + start-indent="{$reldepth*$toc.indent.width}pt"> + <xsl:apply-templates select="sect5" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="sect5.toc"/> +<xsl:template match="sect5" mode="toc" dtm:id="sect5.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> +</xsl:template> + +<dtm:doc dtm:idref="section.toc"/> +<xsl:template match="section" mode="toc" dtm:id="section.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:variable name="depth" select="count(ancestor::section) + 1"/> + <xsl:variable name="reldepth" + select="count(ancestor::*)-count($toc-context/ancestor::*)"/> + + <xsl:if test="$toc.section.depth >= $depth"> + <xsl:call-template name="toc.line"/> + + <xsl:if test="$toc.section.depth > $depth and section"> + <fo:block + start-indent="{$reldepth*$toc.indent.width}pt"> + <xsl:apply-templates select="section" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="bg.toc"/> +<xsl:template match="bibliography|glossary" + mode="toc" dtm:id="bg.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> +</xsl:template> + +<dtm:doc dtm:idref="reference.toc"/> +<xsl:template match="reference" mode="toc" dtm:id="reference.toc"> + <xsl:param name="toc-context" select="."/> + + <xsl:call-template name="toc.line"/> + + <xsl:if test="$toc.section.depth > 0 and refentry"> + <fo:block + start-indent="{count(ancestor::*)*$toc.indent.width}pt"> + <xsl:apply-templates select="refentry" mode="toc" xse:apply-serna-fold-template="false"> + <xsl:with-param name="toc-context" select="$toc-context"/> + </xsl:apply-templates> + </fo:block> + </xsl:if> +</xsl:template> + +<dtm:doc dtm:idref="title.toc"/> +<xsl:template match="title" mode="toc" dtm:id="title.toc"> + <xsl:apply-templates xse:apply-serna-fold-template="false"/> +</xsl:template> + +</xsl:stylesheet> + diff --git a/doc/editor_configs/serna/scons/docbook-xsl-serna/xref.xsl b/doc/editor_configs/serna/scons/docbook-xsl-serna/xref.xsl new file mode 100644 index 0000000..1566d46 --- /dev/null +++ b/doc/editor_configs/serna/scons/docbook-xsl-serna/xref.xsl @@ -0,0 +1,624 @@ +<?xml version='1.0' encoding='utf-8'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + xmlns:exsl="http://exslt.org/common" + xmlns:dtm="http://syntext.com/Extensions/DocumentTypeMetadata-1.0" + xmlns:xse="http://www.syntext.com/Extensions/XSLT-1.0" + extension-element-prefixes="dtm" + exclude-result-prefixes="xse exsl" version="1.0"> + + <xsl:include href="gentext.xsl"/> + + <dtm:doc dtm:idref="xref"/> + <xsl:template match="xref" name="xref" dtm:id="xref"> + <xsl:variable name="target" select="id(@linkend)"/> + <xsl:variable name="refelem" select="local-name($target)"/> + + <fo:inline> + <xsl:choose> + <xsl:when test="not($refelem)"> + <fo:inline color="#F00000">[XRef: Nonexistent linkend ID "<xsl:value-of select="@linkend"/>"]</fo:inline> + </xsl:when> + <xsl:when test="@endterm"> + <fo:inline xsl:use-attribute-sets="xref.properties"> + <xsl:variable name="etarget" select="id(@endterm)"/> + <xsl:choose> + <xsl:when test="count($etarget) = 0"> + <fo:inline color="#F00000">[XRef: Nonexistent endterm ID "<xsl:value-of select="@endterm"/>"]</fo:inline> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$etarget" mode="endterm" + xse:apply-serna-fold-template="false"/> + </xsl:otherwise> + </xsl:choose> + </fo:inline> + </xsl:when> + <xsl:when test="$target/@xreflabel"> + <fo:inline xsl:use-attribute-sets="xref.properties"> + <xsl:call-template name="xref.xreflabel"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </fo:inline> + </xsl:when> + <xsl:when test="@xreflabel"> + <fo:inline xsl:use-attribute-sets="xref.properties"> + <xsl:value-of select="@xreflabel"/> + </fo:inline> + </xsl:when> + <xsl:otherwise> + <fo:inline xsl:use-attribute-sets="xref.properties"> + <xsl:apply-templates select="$target" mode="xref-to" + xse:apply-serna-fold-template="false"> + <xsl:with-param name="referrer" select="."/> + <xsl:with-param name="xrefstyle"> + <xsl:choose> + <xsl:when test="@role and not(@xrefstyle) and $use.role.as.xrefstyle != 0"> + <xsl:value-of select="@role"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="@xrefstyle"/> + </xsl:otherwise> + </xsl:choose> + </xsl:with-param> + </xsl:apply-templates> + </fo:inline> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="$insert.xref.page.number != 0 or local-name($target) = 'para'"> + <xsl:apply-templates select="$target" mode="page.citation" + xse:apply-serna-fold-template="false"> + <xsl:with-param name="id" select="@linkend"/> + </xsl:apply-templates> + </xsl:if> + </fo:inline> + </xsl:template> + + <dtm:doc dtm:idref="endterm.childs"/> + <xsl:template match="*" mode="endterm" dtm:id="endterm.childs"> + <!-- Process the children of the endterm element --> + <xsl:variable name="endterm"> + <xsl:apply-templates select="child::node()"/> + </xsl:variable> + <xsl:apply-templates select="$endterm" mode="remove-ids"/> + </xsl:template> + <xsl:template match="*" mode="remove-ids"> + <xsl:copy> + <xsl:for-each select="@*"> + <xsl:choose> + <xsl:when test="name(.) != 'id'"> + <xsl:copy/> + </xsl:when> + <xsl:otherwise> + <xsl:message>removing <xsl:value-of select="name(.)"/> +</xsl:message> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + <xsl:apply-templates mode="remove-ids"/> + </xsl:copy> + </xsl:template> + + <dtm:doc dtm:idref="all.xref-to"/> + <xsl:template match="*" mode="xref-to" dtm:id="all.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:message> + <xsl:text>Don't know what gentext to create for xref to: "</xsl:text> + <xsl:value-of select="name(.)"/> + <xsl:text>"</xsl:text> + </xsl:message> + <xsl:text>???</xsl:text> + </xsl:template> + <xsl:template match="title" mode="xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <!-- if you xref to a title, xref to the parent... --> + <xsl:choose> + <!-- FIXME: how reliable is this? --> + <xsl:when test="contains(local-name(parent::*), 'info')"> + <xsl:apply-templates select="parent::*[2]" mode="xref-to"> + <xsl:with-param name="referrer" select="$referrer"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="parent::*" mode="xref-to"> + <xsl:with-param name="referrer" select="$referrer"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <dtm:doc dtm:idref="elements.xref-to"/> + <xsl:template match="abstract|article|authorblurb|bibliodiv|bibliomset| + biblioset|blockquote|calloutlist|caution|colophon| + constraintdef|formalpara|glossdiv|important|indexdiv| + itemizedlist|legalnotice|lot|msg|msgexplan|msgmain| + msgrel|msgset|msgsub|note|orderedlist|partintro| + productionset|qandadiv|refsynopsisdiv|segmentedlist| + set|setindex|sidebar|tip|toc|variablelist|warning" mode="xref-to" dtm:id="elements.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <!-- catch-all for things with (possibly optional) titles --> <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="aeop.xref-to"/> + <xsl:template match="author|editor|othercredit|personname" mode="xref-to" dtm:id="aeop.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:call-template name="person.name"/> + </xsl:template> + + <dtm:doc dtm:idref="authorgroup.xref-to"/> + <xsl:template match="authorgroup" mode="xref-to" dtm:id="authorgroup.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:call-template name="person.name.list"/> + </xsl:template> + + <dtm:doc dtm:idref="fete.xref-to"/> + <xsl:template match="figure|example|table|equation" mode="xref-to" dtm:id="fete.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="procedure.xref-to"/> + <xsl:template match="procedure" mode="xref-to" dtm:id="procedure.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="cmdsynopsis.xref-to"/> + <xsl:template match="cmdsynopsis" mode="xref-to" dtm:id="cmdsynopsis.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="(.//command)[1]" mode="xref"/> + </xsl:template> + + <dtm:doc dtm:idref="funcsynopsis.xref-to"/> + <xsl:template match="funcsynopsis" mode="xref-to" dtm:id="funcsynopsis.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="(.//function)[1]" mode="xref"/> + </xsl:template> + + <dtm:doc dtm:idref="dpca.xref-to"/> + <xsl:template match="dedication|preface|chapter|appendix" mode="xref-to" dtm:id="dpca.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="bibliography.xref-to"/> + <xsl:template match="bibliography" mode="xref-to" dtm:id="bibliography.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="biblio.xref-to"/> + <xsl:template match="biblioentry|bibliomixed" mode="xref-to" dtm:id="biblio.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <!-- handles both biblioentry and bibliomixed --> + <xsl:text>[</xsl:text> + <xsl:choose> + <xsl:when test="string(.) = ''"> + <xsl:variable name="bib" select="document($bibliography.collection)"/> + <xsl:variable name="id" select="@id"/> + <xsl:variable name="entry" select="$bib/bibliography/*[@id=$id][1]"/> + <xsl:choose> + <xsl:when test="$entry"> + <xsl:choose> + <xsl:when test="$bibliography.numbered != 0"> + <xsl:number from="bibliography" count="biblioentry|bibliomixed" level="any" format="1"/> + </xsl:when> + <xsl:when test="local-name($entry/*[1]) = 'abbrev'"> + <xsl:apply-templates select="$entry/*[1]"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="@id"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:message> + <xsl:text>No bibliography entry: </xsl:text> + <xsl:value-of select="$id"/> + <xsl:text> found in </xsl:text> + <xsl:value-of select="$bibliography.collection"/> + </xsl:message> + <xsl:value-of select="@id"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:choose> + <xsl:when test="$bibliography.numbered != 0"> + <xsl:number from="bibliography" count="biblioentry|bibliomixed" + level="any" format="1"/> + </xsl:when> + <xsl:when test="local-name(*[1]) = 'abbrev'"> + <xsl:apply-templates select="*[1]"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="@id"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + <xsl:text>]</xsl:text> + </xsl:template> + + <dtm:doc dtm:idref="glossary.xref-to"/> + <xsl:template match="glossary" mode="xref-to" dtm:id="glossary.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="glossentry.xref-to"/> + <xsl:template match="glossentry" mode="xref-to" dtm:id="glossentry.xref-to"> + <xsl:choose> + <xsl:when test="$glossentry.show.acronym = 'primary'"> + <xsl:choose> + <xsl:when test="acronym|abbrev"> + <xsl:apply-templates select="(acronym|abbrev)[1]"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="glossterm[1]" mode="xref-to"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="glossterm[1]" mode="xref-to"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <dtm:doc dtm:idref="glossterm.xref-to"/> + <xsl:template match="glossterm" mode="xref-to" dtm:id="glossterm.xref-to"> + <xsl:apply-templates/> + </xsl:template> + + <dtm:doc dtm:idref="index.xref-to"/> + <xsl:template match="index" mode="xref-to" dtm:id="index.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="listitem.xref-to"/> + <xsl:template match="listitem" mode="xref-to" dtm:id="listitem.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="sections.xref-to"/> + <xsl:template match="section|simplesect|sect1|sect2|sect3|sect4| + sect5|refsect1|refsect2|refsect3" mode="xref-to" dtm:id="xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + <!-- What about "in Chapter X"? --> + </xsl:template> + + <dtm:doc dtm:idref="bridgehead.xref-to"/> + <xsl:template match="bridgehead" mode="xref-to" dtm:id="bridgehead.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + <!-- What about "in Chapter X"? --> + </xsl:template> + + <dtm:doc dtm:idref="qandaset.xref-to"/> + <xsl:template match="qandaset" mode="xref-to" dtm:id="qandaset.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="qandadiv.xref-to"/> + <xsl:template match="qandadiv" mode="xref-to" dtm:id="qandadiv.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="qandaentry.xref-to"/> + <xsl:template match="qandaentry" mode="xref-to" dtm:id="qandaentry.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="question[1]" mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="qa.xref-to"/> + <xsl:template match="question|answer" mode="xref-to" dtm:id="qa.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="pr.xref-to"/> + <xsl:template match="part|reference" mode="xref-to" dtm:id="pr.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="refentry.xref-to"/> + <xsl:template match="refentry" mode="xref-to" dtm:id="refentry.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:choose> + <xsl:when test="refmeta/refentrytitle"> + <xsl:apply-templates select="refmeta/refentrytitle"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="refnamediv/refname[1]"/> + </xsl:otherwise> + </xsl:choose> + <xsl:apply-templates select="refmeta/manvolnum"/> + </xsl:template> + + <dtm:doc dtm:idref="refnamediv.xref-to"/> + <xsl:template match="refnamediv" mode="xref-to" dtm:id="refnamediv.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="refname[1]" mode="xref-to"> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="refname.xref-to"/> + <xsl:template match="refname" mode="xref-to" dtm:id="refname.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates mode="xref-to"> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="step.xref-to"/> + <xsl:template match="step" mode="xref-to" dtm:id="step.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="'Step'"/> + </xsl:call-template> + <xsl:text/> + <xsl:apply-templates select="." mode="number"/> + </xsl:template> + + <dtm:doc dtm:idref="varlistentry.xref-to"/> + <xsl:template match="varlistentry" mode="xref-to" dtm:id="varlistentry.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="term[1]" mode="xref-to"> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="term.varlistentry.xref-to"/> + <xsl:template match="varlistentry/term" mode="xref-to" dtm:id="term.varlistentry.xref-to"> + <!-- to avoid the comma that will be generated if there are several terms --> + <xsl:apply-templates/> + </xsl:template> + + <dtm:doc dtm:idref="co.xref-to"/> + <xsl:template match="co" mode="xref-to" dtm:id="co.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="callout-bug"/> + </xsl:template> + + <dtm:doc dtm:idref="book.xref-to"/> + <xsl:template match="book" mode="xref-to" dtm:id="book.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> + </xsl:template> + + <dtm:doc dtm:idref="para.xref-to"/> + <xsl:template match="para" mode="xref-to" dtm:id="para.xref-to"> + <xsl:param name="referrer"/> + <xsl:param name="xrefstyle"/> + <xsl:variable name="context" select="(ancestor::simplesect|ancestor::section|ancestor::sect1|ancestor::sect2|ancestor::sect3|ancestor::sect4|ancestor::sect5|ancestor::refsection |ancestor::refsect1 |ancestor::refsect2 |ancestor::refsect3 |ancestor::chapter |ancestor::appendix|ancestor::preface|ancestor::partintro|ancestor::dedication|ancestor::colophon|ancestor::bibliography|ancestor::index|ancestor::glossary|ancestor::glossentry|ancestor::listitem|ancestor::varlistentry)[last()]"/> + <xsl:apply-templates select="$context" mode="xref-to"/> + <!-- + <xsl:apply-templates select="." mode="object.xref.markup"> + <xsl:with-param name="purpose" select="'xref'"/> + <xsl:with-param name="xrefstyle" select="$xrefstyle"/> + <xsl:with-param name="referrer" select="$referrer"/> + </xsl:apply-templates> +--> + </xsl:template> + +<dtm:doc dtm:idref="title.xref"/> +<xsl:template match="title" mode="xref" dtm:id="title.xref"> + <xsl:apply-templates/> +</xsl:template> + +<dtm:doc dtm:idref="command.xref"/> +<xsl:template match="command" mode="xref" dtm:id="command.xref"> + <xsl:call-template name="inline.boldseq"/> +</xsl:template> + +<dtm:doc dtm:idref="function.xref"/> +<xsl:template match="function" mode="xref" dtm:id="function.xref"> + <xsl:call-template name="inline.monoseq"/> +</xsl:template> + +<dtm:doc dtm:idref="all.page-citation"/> +<xsl:template match="*" mode="page.citation" dtm:id="all.page-citation"> + <xsl:param name="id" select="'???'"/> + <fo:inline keep-together.within-line="always"> + <xsl:call-template name="substitute-markup"> + <xsl:with-param name="template"> + <xsl:call-template name="gentext.template"> + <xsl:with-param name="name" select="'page.citation'"/> + <xsl:with-param name="context" select="'xref'"/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </fo:inline> +</xsl:template> + +<dtm:doc dtm:idref="all.pagenumber-markup"/> +<xsl:template match="*" mode="pagenumber.markup" dtm:id="all.pagenumber-markup"> + <!--fo:page-number-citation ref-id="{@id}"/--> +</xsl:template> + +<dtm:doc dtm:elements="xref/@xreflabel" dtm:idref="xref.xreflabel"/> +<xsl:template name="xref.xreflabel" dtm:id="xref.xreflabel"> + <!-- called to process an xreflabel...you might use this to make --> + <!-- xreflabels come out in the right font for different targets, --> + <!-- for example. --> + <xsl:param name="target" select="."/> + <xsl:value-of select="$target/@xreflabel"/> +</xsl:template> + +<dtm:doc dtm:idref="all.insert-title-markup"/> +<xsl:template match="*" mode="insert.title.markup" dtm:id="all.insert-title-markup"> + <xsl:param name="purpose"/> + <xsl:param name="xrefstyle"/> + <xsl:param name="title"/> + + <xsl:choose> + <!-- FIXME: what about the case where titleabbrev is inside the info? --> + <xsl:when test="$purpose = 'xref' and titleabbrev"> + <xsl:apply-templates select="." mode="titleabbrev.markup"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$title"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="ca.insert-title-markup"/> +<xsl:template match="chapter|appendix" mode="insert.title.markup" dtm:id="ca.insert-title-markup"> + <xsl:param name="purpose"/> + <xsl:param name="xrefstyle"/> + <xsl:param name="title"/> + + <xsl:choose> + <xsl:when test="$purpose = 'xref'"> + <fo:inline font-style="italic"> + <xsl:value-of select="$title"/> + </fo:inline> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$title"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<dtm:doc dtm:idref="all.insert-subtitle-markup"/> +<xsl:template match="*" mode="insert.subtitle.markup" dtm:id="all.insert-subtitle-markup"> + <xsl:param name="purpose"/> + <xsl:param name="xrefstyle"/> + <xsl:param name="subtitle"/> + + <xsl:value-of select="$subtitle"/> +</xsl:template> + +<dtm:doc dtm:idref="all.insert-pagenumber-markup"/> +<xsl:template match="*" mode="insert.pagenumber.markup" dtm:id="all.insert-pagenumber-markup"> + <xsl:param name="purpose"/> + <xsl:param name="xrefstyle"/> + <xsl:param name="pagenumber"/> + + <xsl:value-of select="$pagenumber"/> +</xsl:template> + +<dtm:doc dtm:idref="all.insert-direction-markup"/> +<xsl:template match="*" mode="insert.direction.markup" dtm:id="all.insert-direction-markup"> + <xsl:param name="purpose"/> + <xsl:param name="xrefstyle"/> + <xsl:param name="direction"/> + + <xsl:value-of select="$direction"/> +</xsl:template> + +<dtm:doc dtm:idref="all.insert-label-markup"/> +<xsl:template match="*" mode="insert.label.markup" dtm:id="all.insert-label-markup"> + <xsl:param name="purpose"/> + <xsl:param name="xrefstyle"/> + <xsl:param name="label"/> + + <xsl:value-of select="$label"/> +</xsl:template> + +</xsl:stylesheet> + -- cgit v1.2.3