diff options
author | Alexander Bokovoy <ab@samba.org> | 2003-04-30 21:39:49 +0000 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2003-04-30 21:39:49 +0000 |
commit | bd30b6066f1a28663b28466a67064149b6e060a4 (patch) | |
tree | dc4478c5aafd9078f380e5e2ea11926519905fb0 /docs | |
parent | 049791de5b6e43e827e2be01a65958389d9c76e2 (diff) | |
download | samba-bd30b6066f1a28663b28466a67064149b6e060a4.tar.gz samba-bd30b6066f1a28663b28466a67064149b6e060a4.tar.bz2 samba-bd30b6066f1a28663b28466a67064149b6e060a4.zip |
Docbook XML conversion: XSLT and build infrastructure
(This used to be commit f4f6e0b29e744077dfb836745716a659a49d7529)
Diffstat (limited to 'docs')
147 files changed, 28190 insertions, 771 deletions
diff --git a/docs/docbook/.cvsignore b/docs/docbook/.cvsignore index 04290fcd2e..052b1cf2a2 100644 --- a/docs/docbook/.cvsignore +++ b/docs/docbook/.cvsignore @@ -2,3 +2,5 @@ Makefile config.cache config.log config.status +samba-doc.* +dev-doc.*
\ No newline at end of file diff --git a/docs/docbook/Makefile.in b/docs/docbook/Makefile.in index d55d2daaec..eba98e6c66 100644 --- a/docs/docbook/Makefile.in +++ b/docs/docbook/Makefile.in @@ -28,24 +28,20 @@ MANPAGES_NAMES=findsmb.1 smbclient.1 \ ## This part contains only rules. You shouldn't need to change it ## if you are adding docs -DOCBOOK2MAN = @JW@ -b man -DOCBOOK2HTML = @JW@ -b html -DOCBOOK2PDF = @JW@ -b pdf -DOCBOOK2PS = @JW@ -b ps -DOCBOOK2TXT = @JW@ -b txt -DOCBOOK2INFO = @JW@ -b texi +XSLTPROC = @XSLTPROC@ +PDFLATEX = @PDFLATEX@ HTMLDOC = @HTMLDOC@ SRCDIR = @srcdir@ MANDIR=../manpages HTMLDIR=../htmldocs -MANPROJDOC = manpages/ -PROJDOC = projdoc/ -DEVDOC = devdoc/ -PERL = @PERL@ +MANPROJDOC = manpages +PROJDOC = projdoc +DEVDOC = devdoc +SMBDOTCONFDOC = smbdotconf PSDIR = .. PDFDIR = .. TXTDIR = ../textdocs -FAQPROJDOC = faq/ +FAQPROJDOC = faq FAQDIR = ../faq MANPAGES=$(patsubst %,$(MANDIR)/%,$(MANPAGES_NAMES)) @@ -54,91 +50,103 @@ MANPAGES_HTML=$(patsubst %,$(HTMLDIR)/%.html,$(MANPAGES_NAMES)) all: @echo "Supported make targets:" @echo "manpages - Build manpages" - @echo "ps - Build PostScript version of HOWTO Collection" @echo "pdf - Build PDF version of HOWTO Collection" @echo -n "html-single - Build single file HTML version of HOWTO Collection" @echo " and developers guide" @echo "html - Build HTML version of HOWTO Collection" @echo "htmlman - Build html version of manpages" - @echo "txt - Build plain text version of HOWTO Collection" @echo "htmlfaq - Build html version of the FAQ" @echo "everything - Build all of the above" -everything: manpages ps pdf html-single html htmlman txt htmlfaq +everything: manpages pdf html-single html htmlman htmlfaq # Global rules manpages: $(MANDIR) $(MANPAGES) -pdf: $(PDFDIR) $(PDFDIR)/Samba-HOWTO-Collection.pdf ../Samba-Developers-Guide.pdf -ps: $(PSDIR) $(PSDIR)/Samba-HOWTO-Collection.ps ../Samba-Developers-Guide.ps -txt: $(TXTDIR) $(TXTDIR)/Samba-HOWTO-Collection.txt $(TXTDIR)/Samba-Developers-Guide.txt -htmlman: $(HTMLDIR) $(MANPAGES_HTML) -htmlfaq: $(HTMLDIR) - $(DOCBOOK2HTML) -d samba.dsl -o $(FAQDIR) $(FAQPROJDOC)/sambafaq.sgml -html-single: $(HTMLDIR) $(HTMLDIR)/Samba-HOWTO-Collection.html $(HTMLDIR)/Samba-Developers-Guide.html -html: $(HTMLDIR) - $(DOCBOOK2HTML) -d samba.dsl -o $(HTMLDIR) $(PROJDOC)/samba-doc.sgml +pdf: $(PDFDIR) $(PDFDIR)/Samba-HOWTO-Collection.pdf $(PDFDIR)/Samba-Developers-Guide.pdf +htmlman: $(HTMLDIR) $(MANPAGES_HTML) CSS +htmlfaq: $(HTMLDIR) CSS + @$(XSLTPROC) --output $(FAQDIR)/samba-faq.html xslt/html.xsl $(FAQPROJDOC)/sambafaq.xml +html-single: $(HTMLDIR) CSS $(HTMLDIR)/Samba-HOWTO-Collection.html $(HTMLDIR)/Samba-Developers-Guide.html +html: $(HTMLDIR) CSS + @$(XSLTPROC) xslt/html-chunk.xsl $(PROJDOC)/samba-doc.xml # Text files -$(TXTDIR): - mkdir $(TXTDIR) - -$(TXTDIR)/Samba-HOWTO-Collection.txt: $(PROJDOC)/samba-doc.sgml - $(DOCBOOK2TXT) -d samba.dsl -o . $< - mv ./samba-doc.txt $@ - -$(TXTDIR)/Samba-Developers-Guide.txt: $(DEVDOC)/dev-doc.sgml - $(DOCBOOK2TXT) -d samba.dsl -o . $< - mv ./dev-doc.txt $@ - -# PostScript - -$(PSDIR): - mkdir $(PSDIR) - -$(PSDIR)/Samba-HOWTO-Collection.ps: $(PROJDOC)/samba-doc.sgml - $(DOCBOOK2PS) -d samba.dsl -o . $< - mv ./samba-doc.ps $@ - -$(PSDIR)/Samba-Developers-Guide.ps: $(DEVDOC)/dev-doc.sgml - $(DOCBOOK2PS) -d samba.dsl -o . $< - mv ./dev-doc.ps $@ - # Adobe PDF files - -$(PDFDIR)/Samba-HOWTO-Collection.pdf: $(HTMLDIR)/Samba-HOWTO-Collection.html - $(HTMLDOC) --book --color --links -f $@ $< - -$(PDFDIR)/Samba-Developers-Guide.pdf: $(HTMLDIR)/Samba-Developers-Guide.html - $(HTMLDOC) --book --color --links -f $@ $< +$(PDFDIR)/Samba-HOWTO-Collection.pdf: $(PROJDOC)/samba-doc.xml + @echo "Converting samba-doc to LaTeX..." + @$(XSLTPROC) --output samba-doc.tex xslt/latex.xsl $< + @echo "Building LaTeX sources via $(PDFLATEX)..." + @$(PDFLATEX) samba-doc.tex | grep 'Rerun to get cross-references right' && \ + $(PDFLATEX) samba-doc.tex | grep 'Rerun to get cross-references right' && \ + $(PDFLATEX) samba-doc.tex || echo + @echo "done" + @mv samba-doc.pdf $@ + +$(PDFDIR)/Samba-Developers-Guide.pdf: $(DEVDOC)/dev-doc.xml + @echo "Converting dev-doc to LaTeX..." + @$(XSLTPROC) --output dev-doc.tex xslt/latex.xsl $< + @echo "Building LaTeX sources via $(PDFLATEX)..." + @$(PDFLATEX) dev-doc.tex | grep 'Rerun to get cross-references right' && \ + $(PDFLATEX) dev-doc.tex | grep 'Rerun to get cross-references right' && \ + $(PDFLATEX) dev-doc.tex || echo + @echo "done" + @mv dev-doc.pdf $@ # Single large HTML files $(HTMLDIR): - mkdir $(HTMLDIR) + @mkdir $(HTMLDIR) -$(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/samba-doc.sgml - $(DOCBOOK2HTML) -d samba.dsl -u -o . $< - mv ./samba-doc.html $@ +CSS: $(HTMLDIR) xslt/html/samba.css + @cp xslt/html/samba.css $(HTMLDIR)/ -$(HTMLDIR)/Samba-Developers-Guide.html: $(DEVDOC)/dev-doc.sgml - $(DOCBOOK2HTML) -d samba.dsl -u -o . $< - mv ./dev-doc.html $@ +$(HTMLDIR)/Samba-HOWTO-Collection.html: $(PROJDOC)/samba-doc.xml + @$(XSLTPROC) --output $@ xslt/html.xsl $< +$(HTMLDIR)/Samba-Developers-Guide.html: $(DEVDOC)/dev-doc.xml + @$(XSLTPROC) --output $@ xslt/html.xsl $< -$(HTMLDIR)/%.html: $(MANPROJDOC)/%.sgml - $(DOCBOOK2HTML) -d samba.dsl -u -o $(HTMLDIR) $< + +$(HTMLDIR)/%.html: $(MANPROJDOC)/%.xml + @$(XSLTPROC) --output $@ xslt/html.xsl $< # Manpages +$(SMBDOTCONFDOC)/parameters.all.xml: $(SMBDOTCONFDOC)/generate-file-list.sh + @cd $(SMBDOTCONFDOC) && \ + /bin/sh generate-file-list.sh >parameters.all.xml && \ + cd .. + +$(SMBDOTCONFDOC)/parameters.global.xml: $(SMBDOTCONFDOC)/parameters.all.xml $(SMBDOTCONFDOC)/generate-context.xsl + @cd $(SMBDOTCONFDOC) && \ + $(XSLTPROC) --xinclude \ + --param smb.context "'G'" \ + --output parameters.global.xml \ + generate-context.xsl parameters.all.xml && \ + cd .. + +$(SMBDOTCONFDOC)/parameters.service.xml: $(SMBDOTCONFDOC)/parameters.all.xml $(SMBDOTCONFDOC)/generate-context.xsl + @cd $(SMBDOTCONFDOC) && \ + $(XSLTPROC) --xinclude \ + --param smb.context "'S'" \ + --output parameters.service.xml \ + generate-context.xsl parameters.all.xml && \ + cd .. + +$(MANPROJDOC)/smb.conf.5.xml: $(SMBDOTCONFDOC)/smb.conf.5.xml $(SMBDOTCONFDOC)/parameters.all.xml \ + $(SMBDOTCONFDOC)/parameters.global.xml $(SMBDOTCONFDOC)/parameters.service.xml \ + $(SMBDOTCONFDOC)/expand-smb.conf.xsl + @$(XSLTPROC) --xinclude --output $(MANPROJDOC)/smb.conf.5.xml $(SMBDOTCONFDOC)/expand-smb.conf.xsl $(SMBDOTCONFDOC)/smb.conf.5.xml $(MANDIR): mkdir $(MANDIR) -$(MANDIR)/%: $(MANPROJDOC)/%.sgml - $(DOCBOOK2MAN) -d samba.dsl -o $(MANDIR) $< - $(PERL) scripts/strip-links.pl < $@ > $@.temp - mv $@.temp $@ +$(MANDIR)/%: $(MANPROJDOC)/%.xml + @$(XSLTPROC) xslt/man.xsl $< clean: - rm -f $(MANPAGES) $(MANPAGES_HTML) $(HTMLDIR)/*.html $(TXTDIR)/*.txt $(PSDIR)/*.ps $(PDFDIR)/*.pdf + @rm -f $(MANPAGES) $(MANPAGES_HTML) $(HTMLDIR)/*.html $(HTMLDIR)/*.css $(TXTDIR)/*.txt $(PSDIR)/*.ps $(PDFDIR)/*.pdf + @rm -f $(MANPROJDOC)/smb.conf.5.xml $(SMBDOTCONFDOC)/parameters.*.xml + @rm -f samba-doc.* dev-doc.* + diff --git a/docs/docbook/configure b/docs/docbook/configure index 8680e5b5ab..690e16437a 100755 --- a/docs/docbook/configure +++ b/docs/docbook/configure @@ -1,26 +1,287 @@ #! /bin/sh - # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# Generated by GNU Autoconf 2.57. # +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# Work around bugs in pre-3.0 UWIN ksh. +$as_unset ENV MAIL MAILPATH +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + $as_unset $as_var + fi +done + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done + + ;; + esac + # We did not find ourselves, most probably we were run as `sh COMMAND' + # in which case we are not to be found in the path. + if test "x$as_myself" = x; then + as_myself=$0 + fi + if test ! -f "$as_myself"; then + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } + CONFIG_SHELL=$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + as_mkdir_p=false +fi -# Defaults: -ac_help= +as_executable_p="test -f" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH + + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 + +# +# Initializations. +# ac_default_prefix=/usr/local -# Any additions from configure.in: +ac_config_libobj_dir=. +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= + +ac_unique_file="global.ent" +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS XSLTPROC PDFLATEX DOC_BUILD_DATE LIBOBJS LTLIBOBJS' +ac_subst_files='' # Initialize some variables set by options. +ac_init_help= +ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. -build=NONE -cache_file=./config.cache +cache_file=/dev/null exec_prefix=NONE -host=NONE no_create= -nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE @@ -29,10 +290,15 @@ program_transform_name=s,x,x, silent= site= srcdir= -target=NONE verbose= x_includes=NONE x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' @@ -46,17 +312,9 @@ oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - ac_prev= for ac_option do - # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" @@ -64,59 +322,59 @@ do continue fi - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. - case "$ac_option" in + case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; + bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) - ac_prev=build ;; + ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; + build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) - datadir="$ac_optarg" ;; + datadir=$ac_optarg ;; -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac - eval "enable_${ac_feature}='$ac_optarg'" ;; + eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -125,95 +383,47 @@ do -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; + exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; -host | --host | --hos | --ho) - ac_prev=host ;; + ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; + host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; + includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; + infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; + libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; + libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ @@ -222,19 +432,19 @@ EOF -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; + localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; + mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) + | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ @@ -248,26 +458,26 @@ EOF -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; + oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; + prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; + program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; + program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ @@ -284,7 +494,7 @@ EOF | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; + program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) @@ -294,7 +504,7 @@ EOF ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; + sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ @@ -305,58 +515,57 @@ EOF | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; + sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; + site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; + srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; + sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; + ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; + target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac - eval "with_${ac_package}='$ac_optarg'" ;; + eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. @@ -367,99 +576,110 @@ EOF ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; + x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; + x_libraries=$ac_optarg ;; - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } ;; + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } fi -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 +# Be sure to have absolute paths. +for ac_var in exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; esac done -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=global.ent # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + ac_confdir=`(dirname "$0") 2>/dev/null || +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$0" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. @@ -469,13 +689,390 @@ else fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 + { (exit 1); exit 1; }; } else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 + { (exit 1); exit 1; }; } fi fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 + { (exit 1); exit 1; }; } +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures this package to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +_ACEOF + + cat <<_ACEOF +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data [PREFIX/share] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --infodir=DIR info documentation [PREFIX/info] + --mandir=DIR man documentation [PREFIX/man] +_ACEOF + + cat <<\_ACEOF +_ACEOF +fi + +if test -n "$ac_init_help"; then + + cat <<\_ACEOF + +_ACEOF +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=`pwd` + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d $ac_dir || continue + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be +# absolute. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` + + cd $ac_dir + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_srcdir/configure.gnu; then + echo + $SHELL $ac_srcdir/configure.gnu --help=recursive + elif test -f $ac_srcdir/configure; then + echo + $SHELL $ac_srcdir/configure --help=recursive + elif test -f $ac_srcdir/configure.ac || + test -f $ac_srcdir/configure.in; then + echo + $ac_configure --help + else + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\_ACEOF + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 +Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit 0 +fi +exec 5>config.log +cat >&5 <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by $as_me, which was +generated by GNU Autoconf 2.57. Invocation command line was + + $ $0 $@ +_ACEOF +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + echo "PATH: $as_dir" +done + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_sep= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 2) + ac_configure_args1="$ac_configure_args1 '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + # Get rid of the leading space. + ac_sep=" " + ;; + esac + done +done +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Be sure not to use single quotes in there, as some shells, +# such as our DU 5.0 friend, will then `close' the trap. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=$`echo $ac_var` + echo "$ac_var='"'"'$ac_val'"'"'" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------- ## +## Output files. ## +## ------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=$`echo $ac_var` + echo "$ac_var='"'"'$ac_val'"'"'" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + sed "/^$/d" confdefs.h | sort + echo + fi + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" + echo "$as_me: exit $exit_status" + } >&5 + rm -f core core.* *.core && + rm -rf conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then @@ -486,412 +1083,1064 @@ if test -z "$CONFIG_SITE"; then fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . $cache_file;; + *) . ./$cache_file;; + esac + fi else - echo "creating cache $cache_file" - > $cache_file + { echo "$as_me:$LINENO: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file fi -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val="\$ac_cv_env_${ac_var}_value" + eval ac_new_val="\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + esac fi -else - ac_n= ac_c='\c' ac_t= +done +if $ac_cache_corrupted; then + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Extract the first word of "jw", so it can be a program name with args. -set dummy jw; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:529: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_JW'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$JW" in - /*) - ac_cv_path_JW="$JW" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_JW="$JW" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_JW="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -JW="$ac_cv_path_JW" -if test -n "$JW"; then - echo "$ac_t""$JW" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi -if test "x$JW" = x; then - { echo "configure: error: "jw is required"" 1>&2; exit 1; } -fi -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:567: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + + + + + + + + + + + + + + + + + +# Extract the first word of "xsltproc", so it can be a program name with args. +set dummy xsltproc; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_XSLTPROC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$PERL" in - /*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. + case $XSLTPROC in + [\\/]* | ?:[\\/]*) + ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PERL="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + ;; esac fi -PERL="$ac_cv_path_PERL" -if test -n "$PERL"; then - echo "$ac_t""$PERL" 1>&6 +XSLTPROC=$ac_cv_path_XSLTPROC + +if test -n "$XSLTPROC"; then + echo "$as_me:$LINENO: result: $XSLTPROC" >&5 +echo "${ECHO_T}$XSLTPROC" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -if test "x$PERL" = x; then - { echo "configure: error: "perl is required"" 1>&2; exit 1; } +if test "x$XSLTPROC" = x; then + { { echo "$as_me:$LINENO: error: \"xsltproc is required\"" >&5 +echo "$as_me: error: \"xsltproc is required\"" >&2;} + { (exit 1); exit 1; }; } fi -# Extract the first word of "htmldoc", so it can be a program name with args. -set dummy htmldoc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:605: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_HTMLDOC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +# Extract the first word of "pdflatex", so it can be a program name with args. +set dummy pdflatex; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_PDFLATEX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$HTMLDOC" in - /*) - ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a dos path. + case $PDFLATEX in + [\\/]* | ?:[\\/]*) + ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_HTMLDOC="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + ;; esac fi -HTMLDOC="$ac_cv_path_HTMLDOC" -if test -n "$HTMLDOC"; then - echo "$ac_t""$HTMLDOC" 1>&6 +PDFLATEX=$ac_cv_path_PDFLATEX + +if test -n "$PDFLATEX"; then + echo "$as_me:$LINENO: result: $PDFLATEX" >&5 +echo "${ECHO_T}$PDFLATEX" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -if test "x$HTMLDOC" = x; then - { echo "configure: error: "htmldoc is required"" 1>&2; exit 1; } +if test "x$PDFLATEX" = x; then + { { echo "$as_me:$LINENO: error: \"pdflatex is required\"" >&5 +echo "$as_me: error: \"pdflatex is required\"" >&2;} + { (exit 1); exit 1; }; } fi DOC_BUILD_DATE=`date '+%d-%m-%Y'` -trap '' 1 2 15 -cat > confcache <<\EOF + ac_config_files="$ac_config_files Makefile" +cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. # -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. # -EOF +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else +{ + (set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + : end' >>confcache +if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" + cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' fi -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then we branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +cat >confdef2opt.sed <<\_ACEOF +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g +t quote +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g +t quote +d +: quote +s,[ `~#$^&*(){}\\|;'"<>?],\\&,g +s,\[,\\&,g +s,\],\\&,g +s,\$,$$,g +p +_ACEOF +# We use echo to avoid assuming a particular line-breaking character. +# The extra dot is to prevent the shell from consuming trailing +# line-breaks from the sub-command output. A line-break within +# single-quotes doesn't work because, if this script is created in a +# platform that uses two characters for line-breaks (e.g., DOS), tr +# would break. +ac_LF_and_DOT=`echo; echo .` +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` +rm -f confdef2opt.sed + + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_i=`echo "$ac_i" | + sed 's/\$U\././;s/\.o$//;s/\.obj$//'` + # 2. Add them. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. +LTLIBOBJS=$ac_ltlibobjs + + + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL +# Generated by $as_me. # Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# # Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false +SHELL=\${CONFIG_SHELL-$SHELL} +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# Work around bugs in pre-3.0 UWIN ksh. +$as_unset ENV MAIL MAILPATH +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + $as_unset $as_var + fi done -ac_given_srcdir=$srcdir +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi -trap 'rm -fr `echo "Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@JW@%$JW%g -s%@PERL@%$PERL%g -s%@HTMLDOC@%$HTMLDOC%g -s%@DOC_BUILD_DATE@%$DOC_BUILD_DATE%g -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file +# Name of the executable. +as_me=`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file + PATH_SEPARATOR=: fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file + rm -f conf$$.sh +fi + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done + + ;; + esac + # We did not find ourselves, most probably we were run as `sh COMMAND' + # in which case we are not to be found in the path. + if test "x$as_myself" = x; then + as_myself=$0 + fi + if test ! -f "$as_myself"; then + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } + CONFIG_SHELL=$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` + as_ln_s='ln -s' fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + as_mkdir_p=false +fi + +as_executable_p="test -f" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH + +exec 6>&1 + +# Open the log real soon, to keep \$[0] and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. Logging --version etc. is OK. +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX +} >&5 +cat >&5 <<_CSEOF + +This file was extended by $as_me, which was +generated by GNU Autoconf 2.57. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +_CSEOF +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 +echo >&5 +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\_ACEOF + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Report bugs to <bug-autoconf@gnu.org>." +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF +ac_cs_version="\\ +config.status +configured by $0, generated by GNU Autoconf 2.57, + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." +srcdir=$srcdir +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "x$1" : 'x\([^=]*\)='` + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + ac_shift=: + ;; + -*) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_option=$1 + ac_need_defaults=false;; + esac + + case $ac_option in + # Handling of the options. +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:$LINENO: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + CONFIG_FILES="$CONFIG_FILES $ac_optarg" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" + ac_need_defaults=false;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" ;; + + esac + shift done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" fi -EOF -cat >> $CONFIG_STATUS <<EOF +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF +if \$ac_cs_recheck; then + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +fi -CONFIG_FILES=\${CONFIG_FILES-"Makefile "} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; +_ACEOF + + + + + +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; esac +done - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +fi - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason to put it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./confstat$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in ." >&2 + { (exit 1); exit 1; } +} + +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF + +# +# CONFIG_FILES section. +# + +# No need to generate the scripts if there are no CONFIG_FILES. +# This happens for instance when ./config.status config.h +if test -n "\$CONFIG_FILES"; then + # Protect against being on the right side of a sed subst in config.status. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@build_alias@,$build_alias,;t t +s,@host_alias@,$host_alias,;t t +s,@target_alias@,$target_alias,;t t +s,@DEFS@,$DEFS,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@LIBS@,$LIBS,;t t +s,@XSLTPROC@,$XSLTPROC,;t t +s,@PDFLATEX@,$PDFLATEX,;t t +s,@DOC_BUILD_DATE@,$DOC_BUILD_DATE,;t t +s,@LIBOBJS@,$LIBOBJS,;t t +s,@LTLIBOBJS@,$LTLIBOBJS,;t t +CEOF + +_ACEOF + + cat >>$CONFIG_STATUS <<\_ACEOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=48 + ac_sed_frag=1 # Number of current file. + ac_beg=1 # First line for current file. + ac_end=$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=: + ac_sed_cmds= + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + else + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + fi + if test ! -s $tmp/subs.frag; then + ac_more_lines=false + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=`expr $ac_sed_frag + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_lines` + fi + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat fi +fi # test -n "$CONFIG_FILES" - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; esac + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=`(dirname "$ac_file") 2>/dev/null || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir="$ac_dir" + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be +# absolute. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* -EOF -cat >> $CONFIG_STATUS <<EOF -EOF -cat >> $CONFIG_STATUS <<\EOF + if test x"$ac_file" != x-; then + { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + if test x"$ac_file" = x-; then + configure_input= + else + configure_input="$ac_file. " + fi + configure_input=$configure_input"Generated from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF + sed "$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@srcdir@,$ac_srcdir,;t t +s,@abs_srcdir@,$ac_abs_srcdir,;t t +s,@top_srcdir@,$ac_top_srcdir,;t t +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t +s,@builddir@,$ac_builddir,;t t +s,@abs_builddir@,$ac_abs_builddir,;t t +s,@top_builddir@,$ac_top_builddir,;t t +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" != x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi + +done +_ACEOF -exit 0 -EOF +cat >>$CONFIG_STATUS <<\_ACEOF + +{ (exit 0); exit 0; } +_ACEOF chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 +ac_clean_files=$ac_clean_files_save + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi diff --git a/docs/docbook/configure.in b/docs/docbook/configure.in index 57482d134e..6775e6db94 100644 --- a/docs/docbook/configure.in +++ b/docs/docbook/configure.in @@ -1,17 +1,12 @@ AC_INIT(global.ent) -# Jade wrapper -AC_PATH_PROG(JW, jw) -if test "x$JW" = x; then - AC_MSG_ERROR("jw is required") +AC_PATH_PROG(XSLTPROC, xsltproc) +if test "x$XSLTPROC" = x; then + AC_MSG_ERROR("xsltproc is required") fi -AC_PATH_PROG(PERL, perl) -if test "x$PERL" = x; then - AC_MSG_ERROR("perl is required") -fi -AC_PATH_PROG(HTMLDOC, htmldoc) -if test "x$HTMLDOC" = x; then - AC_MSG_ERROR("htmldoc is required") +AC_PATH_PROG(PDFLATEX, pdflatex) +if test "x$PDFLATEX" = x; then + AC_MSG_ERROR("pdflatex is required") fi DOC_BUILD_DATE=`date '+%d-%m-%Y'` diff --git a/docs/docbook/global.ent b/docs/docbook/global.ent index efe33c4ff9..a524d2d34a 100644 --- a/docs/docbook/global.ent +++ b/docs/docbook/global.ent @@ -387,7 +387,7 @@ an Active Directory environment. <!ENTITY net '<application>net</application>'> <!-- We only need this for SGML, and not for XML... --> -<!ENTITY percnt '%'> +<!-- <!ENTITY percnt '%'> --> <!-- IDs for various Samba documentation sections --> @@ -417,78 +417,78 @@ an Active Directory environment. <!ENTITY ID-pdb-xml SYSTEM "pdb-xml"> <!ENTITY ID-VFS SYSTEM "VFS"> -<!ENTITY MANUALPAGES SYSTEM "manpages/manuals.sgml"> -<!ENTITY MAN-FINDSMB SYSTEM "manpages/findsmb.1.sgml"> -<!ENTITY MAN-NMBLOOKUP SYSTEM "manpages/nmblookup.1.sgml"> -<!ENTITY MAN-RPCCLIENT SYSTEM "manpages/rpcclient.1.sgml"> -<!ENTITY MAN-SMBCACLS SYSTEM "manpages/smbcacls.1.sgml"> -<!ENTITY MAN-SMBCLIENT SYSTEM "manpages/smbclient.1.sgml"> -<!ENTITY MAN-SMBCONTROL SYSTEM "manpages/smbcontrol.1.sgml"> -<!ENTITY MAN-LMHOSTS SYSTEM "manpages/lmhosts.5.sgml"> -<!ENTITY MAN-SMBCONF SYSTEM "manpages/smb.conf.5.sgml"> -<!ENTITY MAN-SAMBA SYSTEM "manpages/samba.7.sgml"> -<!ENTITY MAN-NET SYSTEM "manpages/net.8.sgml"> -<!ENTITY MAN-NMBD SYSTEM "manpages/nmbd.8.sgml"> -<!ENTITY MAN-PDBEDIT SYSTEM "manpages/pdbedit.8.sgml"> -<!ENTITY MAN-SMBD SYSTEM "manpages/smbd.8.sgml"> -<!ENTITY MAN-SMBGROUPEDIT SYSTEM "manpages/smbgroupedit.8.sgml"> -<!ENTITY MAN-SMBMOUNT SYSTEM "manpages/smbmount.8.sgml"> -<!ENTITY MAN-SMBMNT SYSTEM "manpages/smbmnt.8.sgml"> -<!ENTITY MAN-SMBPASSWDCONF SYSTEM "manpages/smbpasswd.5.sgml"> -<!ENTITY MAN-SMBPASSWD SYSTEM "manpages/smbpasswd.8.sgml"> -<!ENTITY MAN-SMBSH SYSTEM "manpages/smbsh.1.sgml"> -<!ENTITY MAN-SMBTAR SYSTEM "manpages/smbtar.1.sgml"> -<!ENTITY MAN-SMBSPOOL SYSTEM "manpages/smbspool.8.sgml"> -<!ENTITY MAN-SMBSTATUS SYSTEM "manpages/smbstatus.1.sgml"> -<!ENTITY MAN-SMBUMOUNT SYSTEM "manpages/smbumount.8.sgml"> -<!ENTITY MAN-SWAT SYSTEM "manpages/swat.8.sgml"> -<!ENTITY MAN-TDBBACKUP SYSTEM "manpages/tdbbackup.8.sgml"> -<!ENTITY MAN-TESTPARM SYSTEM "manpages/testparm.1.sgml"> -<!ENTITY MAN-TESTPRNS SYSTEM "manpages/testprns.1.sgml"> -<!ENTITY MAN-VFSTEST SYSTEM "manpages/vfstest.1.sgml"> -<!ENTITY MAN-WBINFO SYSTEM "manpages/wbinfo.1.sgml"> -<!ENTITY MAN-WINBINDD SYSTEM "manpages/winbindd.8.sgml"> - - -<!ENTITY ADS-HOWTO SYSTEM "projdoc/ADS-HOWTO.sgml"> -<!ENTITY AdvancedNetworkAdmin SYSTEM "projdoc/AdvancedNetworkAdmin.sgml"> -<!ENTITY NetworkBrowsing SYSTEM "projdoc/NetworkBrowsing.sgml"> -<!ENTITY BUGS SYSTEM "projdoc/Bugs.sgml"> -<!ENTITY CUPS SYSTEM "projdoc/CUPS-printing.sgml"> -<!ENTITY CVS-Access SYSTEM "projdoc/CVS-Access.sgml"> -<!ENTITY Compiling SYSTEM "projdoc/Compiling.sgml"> -<!ENTITY DOMAIN-MEMBER SYSTEM "projdoc/DOMAIN_MEMBER.sgml"> -<!ENTITY Diagnosis SYSTEM "projdoc/Diagnosis.sgml"> -<!ENTITY ENCRYPTION SYSTEM "projdoc/ENCRYPTION.sgml"> -<!ENTITY GROUP-MAPPING-HOWTO SYSTEM "projdoc/GROUP-MAPPING-HOWTO.sgml"> -<!ENTITY IntegratingWithWindows SYSTEM "projdoc/Integrating-with-Windows.sgml"> -<!ENTITY IntroSMB SYSTEM "projdoc/IntroSMB.sgml"> -<!ENTITY locking SYSTEM "projdoc/locking.sgml"> -<!ENTITY MS-Dfs-Setup SYSTEM "projdoc/msdfs_setup.sgml"> -<!ENTITY NT-Security SYSTEM "projdoc/NT_Security.sgml"> -<!ENTITY NT4Migration SYSTEM "projdoc/NT4Migration.sgml"> -<!ENTITY Other-Clients SYSTEM "projdoc/Other-Clients.sgml"> -<!ENTITY PRINTER-DRIVER2 SYSTEM "projdoc/printer_driver2.sgml"> -<!ENTITY Passdb SYSTEM "projdoc/passdb.sgml"> -<!ENTITY PolicyMgmt SYSTEM "projdoc/PolicyMgmt.sgml"> -<!ENTITY Portability SYSTEM "projdoc/Portability.sgml"> -<!ENTITY ProfileMgmt SYSTEM "projdoc/ProfileMgmt.sgml"> -<!ENTITY SECURITY-LEVEL SYSTEM "projdoc/security_level.sgml"> -<!ENTITY SPEED SYSTEM "projdoc/Speed.sgml"> -<!ENTITY SWAT SYSTEM "projdoc/SWAT.sgml"> -<!ENTITY Samba-BDC-HOWTO SYSTEM "projdoc/Samba-BDC-HOWTO.sgml"> -<!ENTITY Samba-LDAP SYSTEM "projdoc/Samba-LDAP-HOWTO.sgml"> -<!ENTITY Samba-PAM SYSTEM "projdoc/PAM-Authentication-And-Samba.sgml"> -<!ENTITY Samba-PDC-HOWTO SYSTEM "projdoc/Samba-PDC-HOWTO.sgml"> -<!ENTITY SecuringSamba SYSTEM "projdoc/securing-samba.sgml"> -<!ENTITY ServerType SYSTEM "projdoc/ServerType.sgml"> -<!ENTITY Trusts SYSTEM "projdoc/InterdomainTrusts.sgml"> -<!ENTITY UNIX-INSTALL SYSTEM "projdoc/UNIX_INSTALL.sgml"> -<!ENTITY VFS SYSTEM "projdoc/VFS.sgml"> -<!ENTITY WINBIND SYSTEM "projdoc/winbind.sgml"> -<!ENTITY pdb-mysql SYSTEM "projdoc/pdb_mysql.sgml"> -<!ENTITY pdb.sgml SYSTEM "projdoc/pdb.sgml.sgml"> -<!ENTITY problems SYSTEM "projdoc/Problems.sgml"> -<!ENTITY unicode SYSTEM "projdoc/unicode.sgml"> +<!ENTITY MANUALPAGES SYSTEM "manpages/manuals.xml"> +<!ENTITY MAN-FINDSMB SYSTEM "manpages/findsmb.1.xml"> +<!ENTITY MAN-NMBLOOKUP SYSTEM "manpages/nmblookup.1.xml"> +<!ENTITY MAN-RPCCLIENT SYSTEM "manpages/rpcclient.1.xml"> +<!ENTITY MAN-SMBCACLS SYSTEM "manpages/smbcacls.1.xml"> +<!ENTITY MAN-SMBCLIENT SYSTEM "manpages/smbclient.1.xml"> +<!ENTITY MAN-SMBCONTROL SYSTEM "manpages/smbcontrol.1.xml"> +<!ENTITY MAN-LMHOSTS SYSTEM "manpages/lmhosts.5.xml"> +<!ENTITY MAN-SMBCONF SYSTEM "smbdotconf/smb.conf.5.expanded.xml"> +<!ENTITY MAN-SAMBA SYSTEM "manpages/samba.7.xml"> +<!ENTITY MAN-NET SYSTEM "manpages/net.8.xml"> +<!ENTITY MAN-NMBD SYSTEM "manpages/nmbd.8.xml"> +<!ENTITY MAN-PDBEDIT SYSTEM "manpages/pdbedit.8.xml"> +<!ENTITY MAN-SMBD SYSTEM "manpages/smbd.8.xml"> +<!ENTITY MAN-SMBGROUPEDIT SYSTEM "manpages/smbgroupedit.8.xml"> +<!ENTITY MAN-SMBMOUNT SYSTEM "manpages/smbmount.8.xml"> +<!ENTITY MAN-SMBMNT SYSTEM "manpages/smbmnt.8.xml"> +<!ENTITY MAN-SMBPASSWDCONF SYSTEM "manpages/smbpasswd.5.xml"> +<!ENTITY MAN-SMBPASSWD SYSTEM "manpages/smbpasswd.8.xml"> +<!ENTITY MAN-SMBSH SYSTEM "manpages/smbsh.1.xml"> +<!ENTITY MAN-SMBTAR SYSTEM "manpages/smbtar.1.xml"> +<!ENTITY MAN-SMBSPOOL SYSTEM "manpages/smbspool.8.xml"> +<!ENTITY MAN-SMBSTATUS SYSTEM "manpages/smbstatus.1.xml"> +<!ENTITY MAN-SMBUMOUNT SYSTEM "manpages/smbumount.8.xml"> +<!ENTITY MAN-SWAT SYSTEM "manpages/swat.8.xml"> +<!ENTITY MAN-TDBBACKUP SYSTEM "manpages/tdbbackup.8.xml"> +<!ENTITY MAN-TESTPARM SYSTEM "manpages/testparm.1.xml"> +<!ENTITY MAN-TESTPRNS SYSTEM "manpages/testprns.1.xml"> +<!ENTITY MAN-VFSTEST SYSTEM "manpages/vfstest.1.xml"> +<!ENTITY MAN-WBINFO SYSTEM "manpages/wbinfo.1.xml"> +<!ENTITY MAN-WINBINDD SYSTEM "manpages/winbindd.8.xml"> + + +<!ENTITY ADS-HOWTO SYSTEM "projdoc/ADS-HOWTO.xml"> +<!ENTITY AdvancedNetworkAdmin SYSTEM "projdoc/AdvancedNetworkAdmin.xml"> +<!ENTITY NetworkBrowsing SYSTEM "projdoc/NetworkBrowsing.xml"> +<!ENTITY BUGS SYSTEM "projdoc/Bugs.xml"> +<!ENTITY CUPS SYSTEM "projdoc/CUPS-printing.xml"> +<!ENTITY CVS-Access SYSTEM "projdoc/CVS-Access.xml"> +<!ENTITY Compiling SYSTEM "projdoc/Compiling.xml"> +<!ENTITY DOMAIN-MEMBER SYSTEM "projdoc/DOMAIN_MEMBER.xml"> +<!ENTITY Diagnosis SYSTEM "projdoc/Diagnosis.xml"> +<!ENTITY ENCRYPTION SYSTEM "projdoc/ENCRYPTION.xml"> +<!ENTITY GROUP-MAPPING-HOWTO SYSTEM "projdoc/GROUP-MAPPING-HOWTO.xml"> +<!ENTITY IntegratingWithWindows SYSTEM "projdoc/Integrating-with-Windows.xml"> +<!ENTITY IntroSMB SYSTEM "projdoc/IntroSMB.xml"> +<!ENTITY locking SYSTEM "projdoc/locking.xml"> +<!ENTITY MS-Dfs-Setup SYSTEM "projdoc/msdfs_setup.xml"> +<!ENTITY NT-Security SYSTEM "projdoc/NT_Security.xml"> +<!ENTITY NT4Migration SYSTEM "projdoc/NT4Migration.xml"> +<!ENTITY Other-Clients SYSTEM "projdoc/Other-Clients.xml"> +<!ENTITY PRINTER-DRIVER2 SYSTEM "projdoc/printer_driver2.xml"> +<!ENTITY Passdb SYSTEM "projdoc/passdb.xml"> +<!ENTITY PolicyMgmt SYSTEM "projdoc/PolicyMgmt.xml"> +<!ENTITY Portability SYSTEM "projdoc/Portability.xml"> +<!ENTITY ProfileMgmt SYSTEM "projdoc/ProfileMgmt.xml"> +<!ENTITY SECURITY-LEVEL SYSTEM "projdoc/security_level.xml"> +<!ENTITY SPEED SYSTEM "projdoc/Speed.xml"> +<!ENTITY SWAT SYSTEM "projdoc/SWAT.xml"> +<!ENTITY Samba-BDC-HOWTO SYSTEM "projdoc/Samba-BDC-HOWTO.xml"> +<!ENTITY Samba-LDAP SYSTEM "projdoc/Samba-LDAP-HOWTO.xml"> +<!ENTITY Samba-PAM SYSTEM "projdoc/PAM-Authentication-And-Samba.xml"> +<!ENTITY Samba-PDC-HOWTO SYSTEM "projdoc/Samba-PDC-HOWTO.xml"> +<!ENTITY SecuringSamba SYSTEM "projdoc/securing-samba.xml"> +<!ENTITY ServerType SYSTEM "projdoc/ServerType.xml"> +<!ENTITY Trusts SYSTEM "projdoc/InterdomainTrusts.xml"> +<!ENTITY UNIX-INSTALL SYSTEM "projdoc/UNIX_INSTALL.xml"> +<!ENTITY VFS SYSTEM "projdoc/VFS.xml"> +<!ENTITY WINBIND SYSTEM "projdoc/winbind.xml"> +<!ENTITY pdb-mysql SYSTEM "projdoc/pdb_mysql.xml"> +<!ENTITY pdb.xml SYSTEM "projdoc/pdb.xml.xml"> +<!ENTITY problems SYSTEM "projdoc/Problems.xml"> +<!ENTITY unicode SYSTEM "projdoc/unicode.xml"> <!ENTITY not.implemented "<note><para>Currently NOT implemented.</para></note>"> diff --git a/docs/docbook/samba.dsl b/docs/docbook/samba.dsl deleted file mode 100644 index 5a424a551f..0000000000 --- a/docs/docbook/samba.dsl +++ /dev/null @@ -1,86 +0,0 @@ -<!-- This file defines the DocBook-utils Style Sheet for DocBook - Eric Bischoff <eric@caldera.de> ---> - -<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ - <!ENTITY % html "IGNORE"> - <![%html; [ - <!ENTITY % print "IGNORE"> - <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA dsssl> - ]]> - <!ENTITY % print "INCLUDE"> - <![%print; [ - <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl> - ]]> -]> - -<STYLE-SHEET> - - <STYLE-SPECIFICATION ID="UTILS" USE="DOCBOOK"> - <STYLE-SPECIFICATION-BODY> -;; =================================================================== -;; Generic Parameters -;; (Generic currently means: both print and html) -(define (chunk-element-list) - (list (normalize "preface") - (normalize "chapter") - (normalize "appendix") - (normalize "article") - (normalize "glossary") - (normalize "bibliography") - (normalize "index") - (normalize "colophon") - (normalize "setindex") - (normalize "reference") - (normalize "refentry") - (normalize "part") -; We would like to split up in chapters, not in sect1's... -; (normalize "sect1") - (normalize "section") - (normalize "book") ;; just in case nothing else matches... - (normalize "set") ;; sets are definitely chunks... - )) - -(define %chapter-autolabel% #t) -(define %section-autolabel% #t) -(define (toc-depth nd) 3) - -(define %html-ext% ".html") ;; default extension for html output files -(define %html-prefix% "") ;; prefix for all filenames generated (except root) -(define %use-id-as-filename% #t) - -; === HTML settings === -(define %html-pubid% "-//W3C//DTD HTML 4.01 Transitional//EN") ;; Nearly true :-( -(define %html40% #t) - -; === Media objects === -(define preferred-mediaobject-extensions ;; this magic allows to use different graphical - (list "png" "jpg" "jpeg")) ;; formats for printing and putting online -(define acceptable-mediaobject-extensions - (list "bmp" "gif" "eps" "epsf" "avi" "mpg" "mpeg" "qt")) -(define preferred-mediaobject-notations - (list "PNG" "JPG" "JPEG")) -(define acceptable-mediaobject-notations - (list "EPS" "BMP" "GIF" "linespecific")) -; === Rendering === -(define %admon-graphics% #t) ;; use symbols for Caution|Important|Note|Tip|Warning - -; === Books only === -(define %generate-book-titlepage% #t) -(define %generate-book-toc% #t) -(define %generate-part-toc% #f) -(define %generate-part-titlepage% #t) -(define %generate-chapter-toc% #f) -(define %number-screen-lines% #t) -(define %generate-partintro-on-titlepage% #f) - -; === Articles only === -(define %generate-article-titlepage% #t) -(define %generate-article-toc% #t) ;; make TOC - - </STYLE-SPECIFICATION-BODY> - </STYLE-SPECIFICATION> - - <EXTERNAL-SPECIFICATION ID="DOCBOOK" DOCUMENT="docbook.dsl"> - -</STYLE-SHEET> diff --git a/docs/docbook/smbdotconf/.cvsignore b/docs/docbook/smbdotconf/.cvsignore index 0f8c6cb0ed..e9d3f9c05a 100644 --- a/docs/docbook/smbdotconf/.cvsignore +++ b/docs/docbook/smbdotconf/.cvsignore @@ -1,4 +1,3 @@ parameters.all.xml parameters.global.xml parameters.service.xml - diff --git a/docs/docbook/smbdotconf/expand-smb.conf.xsl b/docs/docbook/smbdotconf/expand-smb.conf.xsl index 87b4898cf7..62fc4a9ccf 100644 --- a/docs/docbook/smbdotconf/expand-smb.conf.xsl +++ b/docs/docbook/smbdotconf/expand-smb.conf.xsl @@ -12,6 +12,20 @@ <xsl:param name="xmlSambaNsUri" select="'http://samba.org/common'"/> +<xsl:template match="refentry"> +<xsl:text disable-output-escaping="yes"> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +<!ENTITY % globalentities SYSTEM './../global.ent'> %globalentities; +]> +</xsl:text> +<xsl:element name="refentry"> + <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> + <xsl:apply-templates/> +</xsl:element> +</xsl:template> + <!-- This is needed to copy content unchanged --> <xsl:template match="@*|node()"> <xsl:copy> @@ -61,8 +75,7 @@ </xsl:variable> <xsl:element name="varlistentry"> - <xsl:text> -</xsl:text> + <xsl:text> </xsl:text> <xsl:copy-of select="$term"/> <xsl:copy-of select="$content"/> <xsl:text> diff --git a/docs/docbook/smbdotconf/process-all.sh b/docs/docbook/smbdotconf/process-all.sh deleted file mode 100755 index 6d8c9941b4..0000000000 --- a/docs/docbook/smbdotconf/process-all.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -sh generate-file-list.sh >parameters.all.xml - -xsltproc --xinclude \ - --param smb.context "'G'" \ - --output parameters.global.xml \ - generate-context.xsl parameters.all.xml - -xsltproc --xinclude \ - --param smb.context "'S'" \ - --output parameters.service.xml \ - generate-context.xsl parameters.all.xml - -xsltproc --xinclude expand-smb.conf.xsl smb.conf.5.xml | \ -xsltproc http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl - diff --git a/docs/docbook/xslt/db2latex/VERSION.xml b/docs/docbook/xslt/db2latex/VERSION.xml new file mode 100644 index 0000000000..6ac59ae4dd --- /dev/null +++ b/docs/docbook/xslt/db2latex/VERSION.xml @@ -0,0 +1,24 @@ +<?xml version='1.0'?> +<!--############################################################################# + | $Id: VERSION.xml,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: + + ############################################################################## --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> +<xsl:variable name="VERSION">0.7.1</xsl:variable> +<xsl:variable name="LASTRELEASE">0.7</xsl:variable> +<xsl:variable name="TAG"> + <xsl:variable name="RCSTAG" select="substring-before(substring-after('$Name: $',concat('$','Name: ')),'$')"/> + <xsl:choose> + <xsl:when test="normalize-space($RCSTAG)=''">HEAD</xsl:when> + <xsl:otherwise><xsl:value-of select="$RCSTAG" /></xsl:otherwise> + </xsl:choose> +</xsl:variable> +<xsl:variable name="CVSVERSION">$Id: VERSION.xml,v 1.1 2003/04/30 21:39:49 ab Exp $</xsl:variable> + + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/abstract.mod.xsl b/docs/docbook/xslt/db2latex/abstract.mod.xsl new file mode 100644 index 0000000000..6fd44bf9f2 --- /dev/null +++ b/docs/docbook/xslt/db2latex/abstract.mod.xsl @@ -0,0 +1,95 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: abstract.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="abstract" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: abstract.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author><firstname>Ramon</firstname> <surname>Casellas</surname></author> + <author><firstname>James</firstname> <surname>Devenish</surname></author> + </authorgroup> + <copyright> + <year>2000</year><year>2001</year><year>2002</year><year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Abstract <filename>abstract.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para>This file <filename>abstract.mod.xsl</filename> contains a single + XSL template for <sgmltag>abstract</sgmltag>.</para> + <itemizedlist> + <listitem><para>Calls <literal>map.begin</literal>.</para></listitem> + <listitem><para>Processes children with <sgmltag>xsl:apply-templates</sgmltag>.</para></listitem> + <listitem><para>Calls <literal>map.end</literal></para></listitem> + <listitem><para>The abstract/title template is empty.</para></listitem> + </itemizedlist> + </section> + </partintro> + </doc:reference> + + + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="abstract" xmlns=""> + <refpurpose> Abstract XSL template. </refpurpose> + <refdescription> + <para>Calls template <xref linkend="map.begin"/>(<literal>map.begin</literal>), + to output the opening command (by default):</para> + <screen> + % -------------------------------------------- + % Abstract + % -------------------------------------------- + \begin{abstract} + </screen> + <para> Calls "apply-templates" for all the children, and calls template + <xref linkend="map.end"/>(<literal>map.end</literal>) to output the closing + command.</para> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + <listitem><para> The title of the abstract is lost.</para></listitem> + <listitem><para> The template for abstract/title is defined EMPTY.</para></listitem> + </itemizedlist> + </formalpara> + + <formalpara><title>Default Behaviour</title> + <screen> + Fill + </screen> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <!-- TEMPLATE --> + <xsl:template match="abstract"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + <xsl:call-template name="map.end"/> + </xsl:template> + + <xsl:template match="abstract/title"/> + +</xsl:stylesheet> + + diff --git a/docs/docbook/xslt/db2latex/admonition.mod.xsl b/docs/docbook/xslt/db2latex/admonition.mod.xsl new file mode 100644 index 0000000000..c42d926c16 --- /dev/null +++ b/docs/docbook/xslt/db2latex/admonition.mod.xsl @@ -0,0 +1,225 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: admonition.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: Admonition templates. ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference name="admonition" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: admonition.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author><firstname>Ramon</firstname> <surname>Casellas</surname></author> + <author><firstname>James</firstname> <surname>Devenish</surname></author> + </authorgroup> + <copyright><year>2000</year><year>2001</year><year>2002</year><year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Admonition XSL Variables and Templates <filename>admonition.mod.xsl</filename></title> + + <partintro> + <section><title>Introduction</title> + <para>DocBook includes admonitions, which are set off from the main text.</para> + </section> + <formalpara><title>Pertinent Variables</title> + <itemizedlist> + <listitem><simpara><xref linkend="param.latex.use.fancybox"/></simpara></listitem> + <listitem><simpara><xref linkend="param.latex.admonition.path"/></simpara></listitem> + <listitem><simpara><xref linkend="param.latex.admonition.imagesize"/></simpara></listitem> + <listitem><simpara><xref linkend="param.latex.apply.title.templates.admonitions"/></simpara></listitem> + </itemizedlist> + </formalpara> + </partintro> + </doc:reference> + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:param name="latex.admonition.environment" xmlns=""> + <refpurpose> + Declares a new environment to be used for admonitions + (warning, tip, important, caution, note). + </refpurpose> + <refdescription> + <para> + A LaTeX environment is emitted. That environment has two mandatory parameters. + Instances of the environment are customised for each admonition via those parameters. + Instances will be typeset as boxed areas in the document flow. + </para> + <para> + The first argument is the filename for graphics (e.g $latex.admonition.path/warning). + The second argument is the admonition title or the associated generic text. + </para> + <para> + It requires the LaTeX <link linkend="param.latex.use.fancybox">fancybox package</link>. + It also uses graphics, by default. + </para> + <example> + <title>Processing the <sgmltag class="element">warning</sgmltag> admonition</title> + <para> When processing the admonition, the following code is generated: </para> + <programlisting><![CDATA[ + \begin{admonition}{figures/warning}{My WARNING} + ... + \end{admonition}]]> + </programlisting> + </example> + </refdescription> + </doc:param> + +<!--############################################################################# --> +<xsl:variable name="latex.admonition.environment"> +<xsl:text>% ---------------------------------------------- </xsl:text> +<xsl:text>% Define a new LaTeX environment (adminipage) </xsl:text> +<xsl:text>% ---------------------------------------------- </xsl:text> +<xsl:text>\newenvironment{admminipage}% </xsl:text> +<xsl:text>{ % this code corresponds to the \begin{adminipage} command </xsl:text> +<xsl:text> \begin{Sbox}% </xsl:text> +<xsl:text> \begin{minipage}% </xsl:text> +<xsl:text>} %done </xsl:text> +<xsl:text>{ % this code corresponds to the \end{adminipage} command </xsl:text> +<xsl:text> \end{minipage} </xsl:text> +<xsl:text> \end{Sbox} </xsl:text> +<xsl:text> \fbox{\TheSbox} </xsl:text> +<xsl:text>} %done </xsl:text> +<xsl:text>% ---------------------------------------------- </xsl:text> +<xsl:text>% Define a new LaTeX length (admlength) </xsl:text> +<xsl:text>% ---------------------------------------------- </xsl:text> +<xsl:text>\newlength{\admlength} </xsl:text> +<xsl:text>% ---------------------------------------------- </xsl:text> +<xsl:text>% Define a new LaTeX environment (admonition) </xsl:text> +<xsl:text>% With 2 parameters: </xsl:text> +<xsl:text>% #1 The file (e.g. note.pdf) </xsl:text> +<xsl:text>% #2 The caption </xsl:text> +<xsl:text>% ---------------------------------------------- </xsl:text> +<xsl:text>\newenvironment{admonition}[2] </xsl:text> +<xsl:text>{ % this code corresponds to the \begin{admonition} command </xsl:text> +<xsl:text> \hspace{0mm}\newline\hspace*\fill\newline </xsl:text> +<xsl:text> \noindent </xsl:text> +<xsl:text> \setlength{\fboxsep}{5pt} </xsl:text> +<xsl:text> \setlength{\admlength}{\linewidth} </xsl:text> +<xsl:text> \addtolength{\admlength}{-10\fboxsep} </xsl:text> +<xsl:text> \addtolength{\admlength}{-10\fboxrule} </xsl:text> +<xsl:text> \admminipage{\admlength} </xsl:text> +<xsl:text> {\bfseries \sc\large{#2}}</xsl:text> +<xsl:text> \newline </xsl:text> +<xsl:text> \\[1mm] </xsl:text> +<xsl:text> \sffamily </xsl:text> +<!-- +If we cannot find the latex.admonition.path; +Comment out the next line (\includegraphics). +This tactic is to avoid deleting the \includegraphics +altogether, as that could confuse a person trying to +find the use of parameter #1 in the environment. +--> +<xsl:if test="$latex.admonition.path=''"> + <xsl:text>%</xsl:text> +</xsl:if> +<xsl:text> \includegraphics[</xsl:text> <xsl:value-of select="$latex.admonition.imagesize" /> <xsl:text>]{#1} </xsl:text> +<xsl:text> \addtolength{\admlength}{-1cm} </xsl:text> +<xsl:text> \addtolength{\admlength}{-20pt} </xsl:text> +<xsl:text> \begin{minipage}[lt]{\admlength} </xsl:text> +<xsl:text> \parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt </xsl:text> +<xsl:text>} %done </xsl:text> +<xsl:text>{ % this code corresponds to the \end{admonition} command </xsl:text> +<xsl:text> \vspace{5mm} </xsl:text> +<xsl:text> \end{minipage} </xsl:text> +<xsl:text> \endadmminipage </xsl:text> +<xsl:text> \vspace{.5em} </xsl:text> +<xsl:text> \par </xsl:text> +<xsl:text>} </xsl:text> +</xsl:variable> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template name="admon.graphic" xmlns=""> + <refpurpose> Choose an admonition graphic </refpurpose> + <refdescription> + <para> For each admonition element (note, warning, caution, top, important), + this template chooses the graphics filename. If the admonition element is + not known, the <sgmltag class="element">note</sgmltag> graphic is used. + </para> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template name="admon.graphic"> + <xsl:param name="node" select="."/> + <xsl:choose> + <xsl:when test="name($node)='note'">note</xsl:when> + <xsl:when test="name($node)='warning'">warning</xsl:when> + <xsl:when test="name($node)='caution'">caution</xsl:when> + <xsl:when test="name($node)='tip'">tip</xsl:when> + <xsl:when test="name($node)='important'">important</xsl:when> + <xsl:otherwise>note</xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template name="admonitions" match="note|important|warning|caution|tip" xmlns=""> + <refpurpose> XSL Template for admonitions </refpurpose> + <refdescription> + <para> Uses the <xref linkend="param.latex.admonition.environment"/>. + </para> + <note><para>An admonition will look something like this.</para></note> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + <listitem> + <para> + There can be <quote>excessive</quote> whitespace between + the bottom of the admonition area and a subsequent paragraph. + </para> + </listitem> + </itemizedlist> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="note|important|warning|caution|tip"> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword">admonition</xsl:with-param> + <xsl:with-param name="string"> + <xsl:text>{</xsl:text> + <xsl:value-of select="$latex.admonition.path"/><xsl:text>/</xsl:text> + <xsl:call-template name="admon.graphic"/> + <xsl:text>}{</xsl:text> + <xsl:choose> + <xsl:when test="title and $latex.apply.title.templates.admonitions='1'"> + <xsl:call-template name="extract.object.title"> + <xsl:with-param name="object" select="."/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext.element.name"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}</xsl:text> + </xsl:with-param> + </xsl:call-template> + <xsl:apply-templates/> + <xsl:call-template name="map.end"> + <xsl:with-param name="keyword">admonition</xsl:with-param> + </xsl:call-template> + </xsl:template> + + <!-- Empty title template --> + <xsl:template match="note/title|important/title|warning/title|caution/title|tip/title"/> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/authorgroup.mod.xsl b/docs/docbook/xslt/db2latex/authorgroup.mod.xsl new file mode 100644 index 0000000000..6af88ff51a --- /dev/null +++ b/docs/docbook/xslt/db2latex/authorgroup.mod.xsl @@ -0,0 +1,81 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: authorgroup.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: Manage Authorgroups ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="authorgroup" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: authorgroup.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author><firstname>Ramon</firstname> <surname>Casellas</surname></author> + <author><firstname>James</firstname> <surname>Devenish</surname></author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Authorgroup <filename>authorgroup.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <formalpara><title>Pertinent Variables</title> + <itemizedlist> + <listitem><simpara><xref linkend="param.biblioentry.item.separator"/></simpara></listitem> + </itemizedlist> + </formalpara> + </section> + </partintro> + </doc:reference> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="authorgroup" xmlns=""> + <refpurpose> Authorgroup XSL template. </refpurpose> + <refdescription> + </refdescription> + </doc:template> + + <xsl:template match="authorgroup"> + <xsl:for-each select="author"> + <xsl:apply-templates select="."/> + <xsl:if test="not(position()=last())"> + <xsl:text> \and </xsl:text> + </xsl:if> + </xsl:for-each> + </xsl:template> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="authorinitials" xmlns=""> + <refpurpose> AuthorInitials XSL template. </refpurpose> + <refdescription> + </refdescription> + </doc:template> + + <xsl:template match="authorinitials"> + <xsl:apply-templates/> + <xsl:value-of select="$biblioentry.item.separator"/> + </xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/biblio.mod.xsl b/docs/docbook/xslt/db2latex/biblio.mod.xsl new file mode 100644 index 0000000000..f26cfb7b2d --- /dev/null +++ b/docs/docbook/xslt/db2latex/biblio.mod.xsl @@ -0,0 +1,608 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: biblio.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: Manage Bibliography. ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="biblio" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: biblio.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year><year>2001</year><year>2002</year><year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Bibliography related XSL Variables and Templates <filename>biblio.mod.xsl</filename></title> + + <partintro> + <section><title>Introduction</title> + <para>This reference describes the templates and parameters relevant + to formatting DocBook bibliography markup.</para> + </section> + <section><title>All Vs. Cited mode</title> + <para> Using this option, only the biblioentries that have been + cited somewhere in the document are output. Otherwise (in All mode) + all bibentries found are output (as the HTML stylesheets do).</para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + + <!--############################################################################# + | BIBLIOGRAPHY + |- ############################################################################# + | + | + | + + ############################################################################## --> + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="bibliography" xmlns=""> + <refpurpose> bibliography XSL template </refpurpose> + <refdescription> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + </itemizedlist> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="bibliography"> + <xsl:message>DB2LaTeX: Processing BIBLIOGRAPHY</xsl:message> + <xsl:message>DB2LaTeX: Output Mode : <xsl:value-of select="$latex.biblio.output"/></xsl:message> + <xsl:text>% ------------------------------------------- </xsl:text> + <xsl:text>% </xsl:text> + <xsl:text>% Bibliography </xsl:text> + <xsl:text>% </xsl:text> + <xsl:text>% ------------------------------------------- </xsl:text> + <xsl:text>\bibliography{</xsl:text><xsl:value-of select="$latex.bibfiles"/><xsl:text>} </xsl:text> + <xsl:if test="biblioentry or bibliodiv"> + <xsl:text>\begin{thebibliography}{</xsl:text> + <xsl:value-of select="$latex.bibwidelabel"/> + <xsl:text>} </xsl:text> + <xsl:choose> + <xsl:when test="$latex.biblio.output ='cited'"> + <xsl:apply-templates select="biblioentry" mode="bibliography.cited"> + <xsl:sort select="./abbrev"/> + <xsl:sort select="./@xreflabel"/> + <xsl:sort select="./@id"/> + </xsl:apply-templates> + </xsl:when> + <xsl:when test="$latex.biblio.output ='all'"> + <xsl:apply-templates select="biblioentry" mode="bibliography.all"> + <xsl:sort select="./abbrev"/> + <xsl:sort select="./@xreflabel"/> + <xsl:sort select="./@id"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="biblioentry"> + <xsl:sort select="./abbrev"/> + <xsl:sort select="./@xreflabel"/> + <xsl:sort select="./@id"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> + <!-- <xsl:apply-templates select="child::*[name(.)!='biblioentry']"/> --> + <xsl:apply-templates select="bibliodiv"/> + <xsl:text> \end{thebibliography} </xsl:text> + </xsl:if> + </xsl:template> + + <xsl:template match="bibliography/title"/> + <xsl:template match="bibliography/subtitle"/> + <xsl:template match="bibliography/titleabbrev"/> + + + + <!--############################################################################# + | BIBLIODIV + |- ############################################################################# + | + | + | + + ############################################################################## --> + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="bibliodiv" xmlns=""> + <refpurpose> bibliography XSL template </refpurpose> + <refdescription> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + </itemizedlist> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="bibliodiv"> + <xsl:message>DB2LaTeX: Processing BIBLIOGRAPHY - BIBLIODIV</xsl:message> + <!-- + <xsl:call-template name="label.id"/> + <xsl:text> </xsl:text> + <xsl:text>\vspace{1cm}</xsl:text> + <xsl:text>\noindent{\Large {\sc </xsl:text><xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="title"/> </xsl:call-template> + <xsl:text>}}\\ </xsl:text> + --> + <xsl:choose> + <xsl:when test="$latex.biblio.output ='cited'"> + <xsl:apply-templates select="biblioentry" mode="bibliography.cited"> + <xsl:sort select="./abbrev"/> + <xsl:sort select="./@xreflabel"/> + <xsl:sort select="./@id"/> + </xsl:apply-templates> + </xsl:when> + <xsl:when test="$latex.biblio.output ='all'"> + <xsl:apply-templates select="biblioentry"> + <xsl:sort select="./abbrev"/> + <xsl:sort select="./@xreflabel"/> + <xsl:sort select="./@id"/> + </xsl:apply-templates> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="bibliodiv/title"/> + + + + <!--############################################################################# + | BIBLIOENTRY + - ############################################################################# + | + | + | + + ############################################################################## --> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="biblioentry" mode="bibliography.cited" xmlns=""> + <refpurpose> bibliography XSL template </refpurpose> + <refdescription> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + </itemizedlist> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="biblioentry" mode="bibliography.cited"> + <xsl:param name="bibid" select="@id"/> + <xsl:param name="ab" select="abbrev"/> + <xsl:variable name="nx" select="//xref[@linkend=$bibid]"/> + <xsl:variable name="nc" select="//citation[text()=$ab]"/> + <xsl:if test="count($nx) > 0 or count($nc) > 0"> + <xsl:call-template name="biblioentry.output"/> + </xsl:if> + </xsl:template> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="biblioentry" mode="bibliography.all" xmlns=""> + <refpurpose> bibliography XSL template </refpurpose> + <refdescription> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + </itemizedlist> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="biblioentry" mode="bibliography.all"> + <xsl:call-template name="biblioentry.output"/> + </xsl:template> + + <xsl:template match="biblioentry"> + <xsl:call-template name="biblioentry.output"/> + </xsl:template> + + <xsl:template name="biblioentry.output"> + <xsl:variable name="biblioentry.label"> + <xsl:choose> + <xsl:when test="@xreflabel"> + <xsl:value-of select="normalize-space(@xreflabel)"/> + </xsl:when> + <xsl:when test="abbrev"> + <xsl:apply-templates select="abbrev" mode="bibliography.mode"/> + </xsl:when> + <xsl:when test="@id"> + <xsl:value-of select="normalize-space(@id)"/> + </xsl:when> + <xsl:otherwise> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:variable name="biblioentry.id"> + <xsl:choose> + <xsl:when test="abbrev"> + <xsl:apply-templates select="abbrev" mode="bibliography.mode"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="generate.label.id"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:text> </xsl:text> + <xsl:text>% -------------- biblioentry </xsl:text> + <xsl:choose> + <xsl:when test="$biblioentry.label=''"> + <xsl:text>\bibitem</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\bibitem[</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="$biblioentry.label"/> + </xsl:call-template> + <xsl:text>]</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:text>{</xsl:text> + <xsl:value-of select="$biblioentry.id"/> + <xsl:text>}\docbooktolatexbibaux{</xsl:text> + <xsl:call-template name="generate.label.id"/> + <xsl:text>}{</xsl:text> + <xsl:value-of select="$biblioentry.id"/> + <xsl:text>} \hypertarget{</xsl:text> + <xsl:call-template name="generate.label.id"/> + <xsl:text>}{\emph{</xsl:text> <xsl:apply-templates select="title" mode="bibliography.mode"/> <xsl:text>}}</xsl:text> + <xsl:value-of select="$biblioentry.item.separator"/> + <xsl:apply-templates select="author|authorgroup" mode="bibliography.mode"/> + <xsl:for-each select="child::copyright|child::publisher|child::pubdate|child::pagenums|child::isbn|child::editor|child::releaseinfo"> + <xsl:value-of select="$biblioentry.item.separator"/> + <xsl:apply-templates select="." mode="bibliography.mode"/> + </xsl:for-each> + <xsl:text>.</xsl:text> + <xsl:text> </xsl:text> + </xsl:template> + + <!-- EMPTY templates --> + <xsl:template match="abstract" mode="bibliography.mode"/> + <xsl:template match="authorblurb" mode="bibliography.mode"/> + + + + <xsl:template match="abbrev" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="address" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="affiliation" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="shortaffil" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="jobtitle" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="artheader" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="artpagenums" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="author" mode="bibliography.mode"> + <xsl:variable name="authorsstring"> + <xsl:call-template name="person.name"/> + </xsl:variable> + <xsl:value-of select="normalize-space($authorsstring)"/> + </xsl:template> + + + + <xsl:template match="author[position()=last()]" mode="bibliography.mode"> + <xsl:variable name="authorsstring"> + <xsl:call-template name="person.name"/> + </xsl:variable> + <xsl:value-of select="normalize-space($authorsstring)"/> + </xsl:template> + + + <!-- + Authorgroup + calls person.name.list in ../common/common.xsl in order to get a + formatted string. We need to return to "normalized-space(.) of it + --> + + <xsl:template match="authorgroup" mode="bibliography.mode"> + <xsl:variable name="authorsstring"> + <xsl:call-template name="person.name.list"/> + </xsl:variable> + <xsl:value-of select="normalize-space($authorsstring)"/> + </xsl:template> + + <xsl:template match="authorinitials" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="bibliomisc" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="bibliomset" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="bibliomixed" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + + + + + + + <xsl:template match="biblioset" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="biblioset/title|biblioset/citetitle" + mode="bibliography.mode"> + <xsl:variable name="relation" select="../@relation"/> + <xsl:choose> + <xsl:when test="$relation='article'"> + <xsl:call-template name="dingbat"> + <xsl:with-param name="dingbat">ldquo</xsl:with-param> + </xsl:call-template> + <xsl:apply-templates/> + <xsl:call-template name="dingbat"> + <xsl:with-param name="dingbat">rdquo</xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="bookbiblio" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="citetitle" mode="bibliography.mode"> + <I><xsl:apply-templates mode="bibliography.mode"/></I> + </xsl:template> + + <xsl:template match="collab" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="collabname" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="confgroup" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="confdates" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="conftitle" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="confnum" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="confsponsor" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="contractnum" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="contractsponsor" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="contrib" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="copyright" mode="bibliography.mode"> + <xsl:call-template name="gentext.element.name"/> + <xsl:call-template name="gentext.space"/> + <xsl:call-template name="dingbat"> + <xsl:with-param name="dingbat">copyright</xsl:with-param> + </xsl:call-template> + <xsl:call-template name="gentext.space"/> + <xsl:apply-templates select="year" mode="bibliography.mode"/> + <xsl:call-template name="gentext.space"/> + <xsl:apply-templates select="holder" mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="year" mode="bibliography.mode"> + <xsl:apply-templates/><xsl:text>, </xsl:text> + </xsl:template> + + <xsl:template match="year[position()=last()]" mode="bibliography.mode"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="holder" mode="bibliography.mode"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="corpauthor" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="corpname" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="date" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="edition" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="editor" mode="bibliography.mode"> + <xsl:call-template name="person.name"/> + </xsl:template> + + <xsl:template match="firstname" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="honorific" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="indexterm" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="invpartnumber" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="isbn" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="issn" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="issuenum" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="lineage" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="orgname" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="orgdiv" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="othercredit" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="othername" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="pagenums" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="printhistory" mode="bibliography.mode"> + <!-- suppressed --> + </xsl:template> + + <xsl:template match="productname" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="productnumber" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="pubdate" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="publisher" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="publishername" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="pubsnumber" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="releaseinfo" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="revhistory" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="seriesinfo" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="seriesvolnums" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="subtitle" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="surname" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="title" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="titleabbrev" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="volumenum" mode="bibliography.mode"> + <xsl:apply-templates mode="bibliography.mode"/> + </xsl:template> + + <xsl:template match="*" mode="bibliography.mode"> + <xsl:apply-templates select="."/> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/block.mod.xsl b/docs/docbook/xslt/db2latex/block.mod.xsl new file mode 100644 index 0000000000..98d689989d --- /dev/null +++ b/docs/docbook/xslt/db2latex/block.mod.xsl @@ -0,0 +1,177 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: block.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="block" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: block.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author><firstname>Ramon</firstname> <surname>Casellas</surname></author> + <author><firstname>James</firstname> <surname>Devenish</surname></author> + </authorgroup> + <copyright> + <year>2000</year><year>2001</year><year>2002</year><year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Block Objects <filename>block.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para>Sundry block-formatted objects.</para> + </section> + </partintro> + </doc:reference> + + + + <doc:template name="block.object" xmlns=""> + <refpurpose> + Generic handler for block-formatted objects. + </refpurpose> + <refdescription> + <para> + Calls <xref linkend="template.label.id"/> and then applies templates. + </para> + </refdescription> + </doc:template> + + <xsl:template name="block.object"> + <xsl:call-template name="label.id"/> + <xsl:apply-templates/> + </xsl:template> + + <doc:template match="blockquote" xmlns=""> + <refpurpose> + A quotation set off from the main text (not inline). + </refpurpose> + <refdescription> + <para> + Uses the LaTeX <literal>quote</literal> environment. + If an attribution is present, it will be set at the end. + </para> + </refdescription> + </doc:template> + + <xsl:template match="blockquote"> + <xsl:text>\begin{quote}</xsl:text> + <xsl:apply-templates/> + <xsl:apply-templates select="attribution" mode="block.attribution"/> + <xsl:text>\end{quote} </xsl:text> + </xsl:template> + + <doc:template match="epigraph" xmlns=""> + <refpurpose> + A short inscription that occurs at the beginning of a section, chapter, or document. + </refpurpose> + <refdescription> + <para> + Uses the LaTeX <literal>quote</literal> environment. + If an attribution is present, it will be set at the end. + </para> + </refdescription> + </doc:template> + + <xsl:template match="epigraph"> + <xsl:text>\begin{quote}</xsl:text> + <xsl:apply-templates/> + <xsl:apply-templates select="attribution" mode="block.attribution"/> + <xsl:text>\end{quote} </xsl:text> + </xsl:template> + + <doc:template match="attribution" xmlns=""> + <refpurpose> + This template produces no output. + </refpurpose> + <refdescription> + <para> + The <sgmltag class="element">attribution</sgmltag> element only occurs within + <xref linkend="template.blockquote"/> and <xref linkend="template.epigraph"/>. + However, the templates for those elements use a <quote>mode</quote> mechanism. + Therefore, this template is intentionally suppressed and a replacement exists. + See <xref linkend="template.attribution-block.attribution"/> instead. + </para> + </refdescription> + </doc:template> + + <xsl:template match="attribution"/> + + <doc:template match="attribution" mode="block.attribution" xmlns=""> + <refpurpose> + The source of a block quote or epigraph. + </refpurpose> + <refdescription> + <para> + Starts a new line with right-aligned text preceded by an em dash. + </para> + </refdescription> + </doc:template> + + <xsl:template match="attribution" mode="block.attribution"> + <xsl:text> \hspace*\fill---</xsl:text> + <xsl:apply-templates/> + </xsl:template> + + <doc:template match="sidebar" xmlns=""> + <refpurpose> + A block of text that is isolated from the main flow. + </refpurpose> + <refdescription> + <para> + This is formatted as a plain block. + </para> + </refdescription> + </doc:template> + + <xsl:template match="sidebar"> + <xsl:call-template name="block.object"/> + </xsl:template> + + <doc:template match="sidebar/title|blockquote/title" xmlns=""> + <refpurpose> + Title lines for sundry block elements. + </refpurpose> + <refdescription> + <para> + This is formatted as a line on its own. + </para> + </refdescription> + </doc:template> + + <xsl:template match="sidebar/title|blockquote/title"> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + + <doc:template match="ackno" xmlns=""> + <refpurpose> + Acknowledgements in an Article. + </refpurpose> + <refdescription> + <para> + This is formatted as a plain block. + </para> + </refdescription> + </doc:template> + + <xsl:template match="ackno"> + <xsl:apply-templates/> + </xsl:template> + + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/book-article.mod.xsl b/docs/docbook/xslt/db2latex/book-article.mod.xsl new file mode 100644 index 0000000000..594e2f7f2a --- /dev/null +++ b/docs/docbook/xslt/db2latex/book-article.mod.xsl @@ -0,0 +1,545 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: book-article.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: +| This template matches a book / article ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="book-article" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: book-article.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Books and Articles <filename>book-article.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="book" xmlns=""> + <refpurpose>Book XSL Template</refpurpose> + <refdescription> + <para> Most DocBook documents are either articles or books, so the book + XSL template <xref linkend="template.book"/> is one classical entry point + when processign docbook documents.</para> + + <formalpara><title>Tasks</title> + <itemizedlist> + <listitem><para></para></listitem> + </itemizedlist> + </formalpara> + + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + </itemizedlist> + </formalpara> + </refdescription> + <refparameter> + <variablelist> + <varlistentry> + <term>colwidth</term> + <listitem> + <para>The CALS column width specification.</para> + </listitem> + </varlistentry> + </variablelist> + </refparameter> + <refreturn> + :<para>Outputs the LaTeX Code corresponding to a book.</para> + </refreturn> + </doc:template> + + + + + <!--############################################################################# --> + <!-- XSL TEMPLATE book --> + <!-- --> + <!-- Main entry point for a DocBook "book" --> + <!--############################################################################# --> + <xsl:template match="book"> + <!-- book:1: generate.latex.book.preamble --> + <xsl:call-template name="generate.latex.book.preamble"/> + <!-- book:2: output title information --> + <xsl:text>\title{</xsl:text> + <xsl:choose> + <xsl:when test="./title"> + <xsl:apply-templates select="title" mode="maketitle.mode"/> + <xsl:apply-templates select="subtitle" mode="maketitle.mode"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="bookinfo/title" mode="maketitle.mode"/> + <xsl:apply-templates select="bookinfo/subtitle" mode="maketitle.mode"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>} </xsl:text> + <!-- book:3: output author information --> + <xsl:text>\author{</xsl:text> + <xsl:choose> + <xsl:when test="bookinfo/authorgroup"> + <xsl:apply-templates select="bookinfo/authorgroup"/> + </xsl:when> + <xsl:otherwise> + <xsl:for-each select="bookinfo/author"> + <xsl:apply-templates select="."/> + <xsl:if test="not(position()=last())"> + <xsl:text> \and </xsl:text> + </xsl:if> + </xsl:for-each> + </xsl:otherwise> + </xsl:choose> + <xsl:text>} </xsl:text> + <!-- book:4: dump any preamble after author --> + <xsl:value-of select="$latex.book.afterauthor"/> + <!-- book:5: set some counters --> + <xsl:text> \setcounter{tocdepth}{</xsl:text><xsl:value-of select="$toc.section.depth"/><xsl:text>} </xsl:text> + <xsl:text> \setcounter{secnumdepth}{</xsl:text><xsl:value-of select="$section.depth"/><xsl:text>} </xsl:text> + <!-- book:6: dump the begin document command --> + <xsl:value-of select="$latex.book.begindocument"/> + + <!-- book:7: include external Cover page if specified --> + <xsl:if test="$latex.titlepage.file != ''"> + <xsl:text> \InputIfFileExists{</xsl:text><xsl:value-of select="$latex.titlepage.file"/> + <xsl:text>}{\typeout{WARNING: Using cover page</xsl:text> + <xsl:value-of select="$latex.titlepage.file"/> + <xsl:text>}}</xsl:text> + </xsl:if> + + <!-- book:7b: maketitle and set up pagestyle --> + <xsl:value-of select="$latex.maketitle"/> + <!-- book:8: - APPLY TEMPLATES --> + <xsl:apply-templates/> + <!-- book:9: call map.end --> + <xsl:call-template name="map.end"/> + </xsl:template> + + + <!-- Titles/subtitles --> + <!-- Empty templates --> + + <xsl:template match="book/title"/> + <xsl:template match="book/subtitle"/> + <xsl:template match="book/titleabbrev"/> + <xsl:template match="book/bookinfo/title"/> + <xsl:template match="book/bookinfo/subtitle"/> + <xsl:template match="book/bookinfo/titleabbrev"/> + + <xsl:template match="book/title" mode="maketitle.mode">\bfseries <xsl:apply-templates /></xsl:template> + <xsl:template match="book/subtitle" mode="maketitle.mode">\\[12pt]\normalsize <xsl:apply-templates /></xsl:template> + <xsl:template match="book/bookinfo/title" mode="maketitle.mode">\bfseries <xsl:apply-templates /></xsl:template> + <xsl:template match="book/bookinfo/subtitle" mode="maketitle.mode">\\[12pt]\normalsize <xsl:apply-templates /></xsl:template> + + <xsl:template match="book/bookinfo"> + <xsl:apply-templates select="revhistory" /> + <xsl:apply-templates select="abstract" /> + <xsl:apply-templates select="keywordset" /> + <xsl:apply-templates select="copyright" /> + <xsl:apply-templates select="legalnotice" /> + </xsl:template> + + + + <!--############################################################################# + | Template : article + + ############################################################################# --> + + <!-- DOCUMENTATION --> + <doc:template match="article" xmlns=""> + <refpurpose>Article XSL Template</refpurpose> + <refdescription> + <para> Most DocBook documents are either articles or books, so the article + XSL template <xref linkend="template.article"/> is one classical entry point + when processign docbook documents.</para> + + <formalpara><title>Tasks</title> + <itemizedlist> + <listitem><para>Calls <literal>generate.latex.article.preamble</literal>.</para></listitem> + <listitem><para>Outputs \title, \author, \date, getting the information from its children.</para></listitem> + <listitem><para>Calls <literal>latex.article.begindocument</literal>.</para></listitem> + <listitem><para>Calls <literal>latex.article.maketitle.</literal></para></listitem> + <listitem><para>Applies templates.</para></listitem> + <listitem><para>Calls <literal>latex.article.end</literal> template.</para></listitem> + </itemizedlist> + </formalpara> + + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + <listitem><para> EMPTY templates: article/title and article/subtitle</para></listitem> + </itemizedlist> + </formalpara> + </refdescription> + <refparameter> + <variablelist> + <varlistentry> + <term>colwidth</term> + <listitem> + <para>The CALS column width specification.</para> + </listitem> + </varlistentry> + </variablelist> + </refparameter> + <refreturn> + <para>Outputs the LaTeX Code corresponding to an article.</para> + </refreturn> + </doc:template> + <!--############################################################################# --> + + + <xsl:template match="book/article"> + <xsl:text> \makeatletter\if@openright\cleardoublepage\else\clearpage\fi</xsl:text> + <xsl:call-template name="generate.latex.pagestyle"/> + <xsl:text>\makeatother </xsl:text> + <!-- Get and output article title --> + <xsl:variable name="article.title"> + <xsl:choose> + <xsl:when test="./title"> + <xsl:apply-templates select="./title"/> + </xsl:when> + <xsl:when test="./articleinfo/title"> + <xsl:apply-templates select="./articleinfo/title"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="./artheader/title"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:text>\begin{center}{</xsl:text> + <xsl:value-of select="$latex.book.article.title.style"/> + <xsl:text>{</xsl:text> + <xsl:value-of select="$article.title"/> + <xsl:text>}}\par </xsl:text> + <!-- Display author information --> + <xsl:choose> + <xsl:when test="artheader/author"> + <xsl:text>\textsf{</xsl:text> + <xsl:for-each select="artheader/author"> + <xsl:apply-templates select="."/> + <xsl:if test="not(position()=last())"> + <xsl:text> \and </xsl:text> + </xsl:if> + </xsl:for-each> + <xsl:text>}\par </xsl:text> + </xsl:when> + <xsl:when test="artheader/authorgroup"> + <xsl:text>\textsf{</xsl:text> + <xsl:apply-templates select="artheader/authorgroup"/> + <xsl:text>}\par </xsl:text> + </xsl:when> + <xsl:when test="articleinfo/author"> + <xsl:text>\textsf{</xsl:text> + <xsl:for-each select="articleinfo/author"> + <xsl:apply-templates select="."/> + <xsl:if test="not(position()=last())"> + <xsl:text> \and </xsl:text> + </xsl:if> + </xsl:for-each> + <xsl:text>}\par </xsl:text> + </xsl:when> + <xsl:when test="articleinfo/authorgroup"> + <xsl:text>\textsf{</xsl:text> + <xsl:apply-templates select="articleinfo/authorgroup"/> + <xsl:text>}\par </xsl:text> + </xsl:when> + <xsl:when test="author"> + <xsl:text>\textsf{</xsl:text> + <xsl:for-each select="author"> + <xsl:apply-templates select="."/> + <xsl:if test="not(position()=last())"> + <xsl:text> \and </xsl:text> + </xsl:if> + </xsl:for-each> + <xsl:text>}\par </xsl:text> + </xsl:when> + </xsl:choose> + <xsl:apply-templates select="artheader|articleinfo" mode="article.within.book"/> + <xsl:text>\end{center} </xsl:text> + <xsl:apply-templates select="*[not(self::title)]"/> + </xsl:template> + + <xsl:template match="artheader|articleinfo" mode="article.within.book"> + <xsl:value-of select="."/> + </xsl:template> + + + + <!-- ARTICLE TEMPLATE --> + <xsl:template match="article"> + <!-- Output LaTeX preamble --> + <xsl:call-template name="generate.latex.article.preamble"/> + <!-- Get and output article title --> + <xsl:variable name="article.title"> + <xsl:choose> + <xsl:when test="./title"> + <xsl:apply-templates select="./title"/> + </xsl:when> + <xsl:when test="./articleinfo/title"> + <xsl:apply-templates select="./articleinfo/title"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="./artheader/title"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:text>\title{</xsl:text> + <xsl:value-of select="$latex.article.title.style"/> + <xsl:text>{</xsl:text> + <xsl:value-of select="$article.title"/> + <xsl:text>}} </xsl:text> + <!-- Display date and author information --> + <xsl:variable name="article.date"> + <xsl:apply-templates select="./artheader/date|./articleinfo/date"/> + </xsl:variable> + <xsl:if test="$article.date!=''"> + <xsl:text>\date{</xsl:text> + <xsl:value-of select="$article.date"/> + <xsl:text>} </xsl:text> + </xsl:if> + <xsl:text>\author{</xsl:text> + <xsl:choose> + <xsl:when test="artheader/authorgroup"> + <xsl:apply-templates select="artheader/authorgroup"/> + </xsl:when> + <xsl:when test="articleinfo/authorgroup"> + <xsl:apply-templates select="articleinfo/authorgroup"/> + </xsl:when> + <xsl:when test="artheader/author"> + <xsl:for-each select="artheader/author"> + <xsl:apply-templates select="."/> + <xsl:if test="not(position()=last())"> + <xsl:text> \and </xsl:text> + </xsl:if> + </xsl:for-each> + </xsl:when> + <xsl:when test="articleinfo/author"> + <xsl:for-each select="articleinfo/author"> + <xsl:apply-templates select="."/> + <xsl:if test="not(position()=last())"> + <xsl:text> \and </xsl:text> + </xsl:if> + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <xsl:for-each select="author"> + <xsl:apply-templates select="."/> + <xsl:if test="not(position()=last())"> + <xsl:text> \and </xsl:text> + </xsl:if> + </xsl:for-each> + </xsl:otherwise> + </xsl:choose> + <xsl:text>} </xsl:text> + <!-- Display begindocument command --> + <xsl:value-of select="$latex.article.begindocument"/> + <xsl:value-of select="$latex.maketitle"/> + <xsl:apply-templates select="*[not(self::title)]"/> + <xsl:value-of select="$latex.article.end"/> + </xsl:template> + + + <xsl:template match="article/title|articleinfo/title|articleinfo/date|artheader/date"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="article/artheader|article/articleinfo"> + <xsl:apply-templates select="legalnotice" /> + <xsl:apply-templates select="abstract"/> + </xsl:template> + + <!-- EMPTY TEMPLATES --> + <xsl:template match="article/subtitle"/> + + + + + <!--############################################################################# + | Template: copyright + |- ############################################################################# --> + <xsl:template match="copyright"> + <xsl:call-template name="gentext.element.name"/> + <xsl:call-template name='gentext.space'/> + <xsl:call-template name="dingbat"> + <xsl:with-param name="dingbat">copyright</xsl:with-param> + </xsl:call-template> + <xsl:call-template name='gentext.space'/> + <xsl:apply-templates select="year"/> + <xsl:call-template name='gentext.space'/> + <xsl:apply-templates select="holder"/> + </xsl:template> + + <xsl:template match="copyright/holder"> + <xsl:apply-templates /> + </xsl:template> + <xsl:template match="copyright/year[position()<last()-1]"> + <xsl:apply-templates /> + <xsl:text>, </xsl:text> + </xsl:template> + + <!-- RCAS 2003/03/11 FIXME : "and" --> + <xsl:template match="copyright/year[position()=last()-1]"> + <xsl:apply-templates /> + <xsl:text>, </xsl:text> + </xsl:template> + + <xsl:template match="copyright/year[position()=last()]"> + <xsl:apply-templates /> + </xsl:template> + + + + + <!--############################################################################# + | Template: name legalnotice.caption + |- ############################################################################# --> + <xsl:template name="legalnotice.caption"> + <xsl:choose> + <xsl:when test="./title"> + <xsl:apply-templates select="./title"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">legalnotice</xsl:with-param> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + <!--############################################################################# + | Template: legalnotice + |- ############################################################################# --> +<xsl:template match="legalnotice"> + <!-- Support for legalnotice. --> + <xsl:text>\vspace{-.3em} </xsl:text> + <xsl:text>\if@twocolumn </xsl:text> + <xsl:text>\noindent\small{\itshape </xsl:text> + <xsl:call-template name="legalnotice.caption"/> + <xsl:text>}\/\bfseries---$\!$% </xsl:text> + <xsl:text>\else </xsl:text> + <xsl:text>\noindent\begin{center}\small\bfseries </xsl:text> + <xsl:call-template name="legalnotice.caption"/> + <xsl:text>\end{center}\quotation\small </xsl:text> + <xsl:text>\fi </xsl:text> + <xsl:apply-templates select="*[not(self::title)]"/> + <xsl:text>\vspace{0.6em}\par\if@twocolumn\else\endquotation\fi </xsl:text> + <xsl:text>\normalsize\rmfamily </xsl:text> +</xsl:template> + + + <xsl:template match="legalnotice/title"> + <xsl:apply-templates/> + </xsl:template> + + + + <!--############################################################################# + | $Id: book-article.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: Table of Contents, Figures, ... + + ############################################################################## --> + + <xsl:template match="toc"> + <xsl:text> </xsl:text> + <xsl:text>\tableofcontents </xsl:text> + </xsl:template> + + <xsl:template match="lot"> + <xsl:choose> + <xsl:when test="@label"> + <xsl:choose> + <xsl:when test="@label='figures'"> + <xsl:text>\listoffigures </xsl:text> + </xsl:when> + <xsl:when test="@label='tables'"> + <xsl:text>\listoftables </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\listoffigures </xsl:text> + <xsl:text>\listoftables </xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:text>\listoffigures </xsl:text> + <xsl:text>\listoftables </xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <xsl:template match="lotentry"> + </xsl:template> + + <xsl:template match="lotentry"/> + <xsl:template match="tocpart|tocchap|tocfront|tocback|tocentry"/> + <xsl:template match="toclevel1|toclevel2|toclevel3|toclevel4|toclevel5"/> + + <doc:template name="generate.latex.pagestyle" xmlns=""> + <refpurpose> Choose the preferred page style for document body </refpurpose> + <refdescription> + <para> + If no page style is preferred by the user, the defaults will be + "empty" for articles, "plain" for books, or "fancy" (if the + fancyhdr packages is permitted). + </para> + <formalpara><title>Pertinent Variables</title> + <itemizedlist> + <listitem><simpara><xref linkend="param.pagestyle"/></simpara></listitem> + <listitem><simpara><xref linkend="param.use.fancyhdr"/></simpara></listitem> + </itemizedlist> + </formalpara> + </refdescription> + </doc:template> + <xsl:template name="generate.latex.pagestyle"> + <xsl:text>\pagestyle{</xsl:text> + <xsl:choose> + <xsl:when test="$latex.pagestyle!=''"><xsl:value-of select="$latex.pagestyle"/></xsl:when> + <xsl:when test="count(//book)>0"> + <xsl:choose> + <xsl:when test="$latex.use.fancyhdr=1"><xsl:text>fancy</xsl:text></xsl:when> + <xsl:otherwise><xsl:text>plain</xsl:text></xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise><xsl:text>empty</xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:text>}</xsl:text> + </xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/bridgehead.mod.xsl b/docs/docbook/xslt/db2latex/bridgehead.mod.xsl new file mode 100644 index 0000000000..0fb75841cd --- /dev/null +++ b/docs/docbook/xslt/db2latex/bridgehead.mod.xsl @@ -0,0 +1,74 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: bridgehead.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="bridgehead" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: bridgehead.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author><firstname>Ramon</firstname> <surname>Casellas</surname></author> + <author><firstname>James</firstname> <surname>Devenish</surname></author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>BridgeHead <filename>bridgehead.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para>Handle the <sgmltag class="element">bridgehead</sgmltag> element.</para> + </section> + </partintro> + </doc:reference> + + + <doc:template match="bridgehead" xmlns=""> + <refpurpose> + A free-floating heading. + </refpurpose> + <refdescription> + <para> + Renders un-numbered section headings. + For <literal>renderas</literal> values of sect1, sect2, and sect3, LaTeX <quote>star</quote> commands (such as <literal>\section*</literal>) are used. + Otherwise, a bold heading is put on a line of its own. + </para> + </refdescription> + </doc:template> + + <xsl:template match="bridgehead"> + <xsl:choose> + <xsl:when test="@renderas='sect1' or @renderas='sect2' or @renderas='sect3'"> + <xsl:text> \</xsl:text> + <xsl:if test="@renderas='sect2'"><xsl:text>sub</xsl:text></xsl:if> + <xsl:if test="@renderas='sect3'"><xsl:text>subsub</xsl:text></xsl:if> + <xsl:text>section*{</xsl:text> + <xsl:apply-templates/> + <xsl:text>}</xsl:text> + <xsl:call-template name="label.id"/> + <xsl:text> </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text> </xsl:text> + <xsl:text> \noindent{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>} \\ </xsl:text> + <xsl:call-template name="label.id"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/callout.mod.xsl b/docs/docbook/xslt/db2latex/callout.mod.xsl new file mode 100644 index 0000000000..25ccc95882 --- /dev/null +++ b/docs/docbook/xslt/db2latex/callout.mod.xsl @@ -0,0 +1,64 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: callout.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="callout" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: callout.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Callout <filename>callout.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <xsl:template match="programlistingco|screenco"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="areaspec|areaset|area"> + </xsl:template> + + <xsl:template match="co"> + <xsl:apply-templates select="." mode="callout-bug"/> + </xsl:template> + + <xsl:template match="co" mode="callout-bug"> + <xsl:variable name="conum"> + <xsl:number count="co" format="1"/> + </xsl:variable> + + <xsl:text>(</xsl:text> + <xsl:value-of select="$conum"/> + <xsl:text>)</xsl:text> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/citation.mod.xsl b/docs/docbook/xslt/db2latex/citation.mod.xsl new file mode 100644 index 0000000000..ef3493d413 --- /dev/null +++ b/docs/docbook/xslt/db2latex/citation.mod.xsl @@ -0,0 +1,66 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: citation.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="citation" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: citation.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Citation <filename>citation.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para>This file contais a single (and simple!) XSL template, that maps the + <sgmltag>citation</sgmltag> SGML tag to the LaTeX <literal>\cite{}</literal> + command.</para> + </section> + </partintro> + </doc:reference> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="citation" xmlns=""> + <refpurpose> Citation XSL template. </refpurpose> + <refdescription> + <para> Outputs a simple <literal>\cite{ }</literal> Command, + containing the result of processing the citation's children + </para> + </refdescription> + </doc:template> + + + + <xsl:template match="citation"> + <!-- todo: biblio-citation-check --> + <xsl:text>\docbooktolatexcite{</xsl:text> + <xsl:value-of select="."/> + <xsl:text>}{}</xsl:text> + </xsl:template> + +</xsl:stylesheet> + + diff --git a/docs/docbook/xslt/db2latex/common/ca.xml b/docs/docbook/xslt/db2latex/common/ca.xml new file mode 100644 index 0000000000..fec3efff1a --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/ca.xml @@ -0,0 +1,100 @@ +<localization language="ca"> + +<gentext key="abstract" text="Resum"/> +<gentext key="appendix" text="Apèndix"/> +<gentext key="article" text="Article"/> +<gentext key="bibliography" text="Bibliografia"/> +<gentext key="book" text="Llibre"/> +<gentext key="caution" text="ATENCIÓ"/> +<gentext key="caution" text="Atenció"/> +<gentext key="chapter" text="Capítol"/> +<gentext key="copyright" text="Dret de reproducció"/> +<gentext key="dedication" text="Dedicatòria"/> +<gentext key="edition" text="Edició"/> +<gentext key="equation" text="Equació"/> +<gentext key="example" text="Exemple"/> +<gentext key="figure" text="Figura"/> +<gentext key="glosssee" text="Veure"/> +<gentext key="glossseealso" text="Veure també"/> +<gentext key="glossary" text="Glossari"/> +<gentext key="important" text="IMPORTANT"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Important"/> +<gentext key="index" text="Índex alfabètic"/> +<gentext key="legalnotice" text=""/> +<gentext key="msgaud" text="Audiència"/> +<gentext key="msglevel" text="Nivell"/> +<gentext key="msgorig" text="Origen"/> +<gentext key="note" text="NOTA"/> +<gentext key="note" text="Nota"/> +<gentext key="part" text="Part"/> +<gentext key="preface" text="Prefaci"/> +<gentext key="procedure" text="Procediment"/> +<gentext key="pubdate" text="Data de publicació"/> +<gentext key="published" text="Data de publicació"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="Referència"/> +<gentext key="refname" text="Nom"/> +<gentext key="revision" text="Revisió"/> +<gentext key="revhistory" text="Historial de revisions"/> +<gentext key="section" text="Secció"/> +<gentext key="see" text="Veure"/> +<gentext key="seealso" text="Veure tambié"/> +<gentext key="set" text="Conjunt"/> +<gentext key="setindex" text="Índex del conjunt"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Pas"/> +<gentext key="tip" text="SUGGERIMENT"/> +<gentext key="table" text="Taula"/> +<gentext key="tip" text="Suggeriment"/> +<gentext key="warning" text="AVÍS"/> +<gentext key="warning" text="Avís"/> +<gentext key="appendix" text="apèndex"/> +<gentext key="chapter" text="capítol"/> +<gentext key="section" text="secció"/> +<gentext key="sidebar" text="glossa"/> +<gentext key="step" text="pas"/> +<gentext key="seealso" text="Veure també"/> + +<gentext key="TableofContents" text="Sumari"/> +<gentext key="in" text="a"/> +<gentext key="by" text="per"/> +<gentext key="Edited" text="Editat"/> +<gentext key="Editedby" text="Editat per"/> +<gentext key="and" text="i"/> +<gentext key="Notes" text="Notes"/> +<gentext key="TableNotes" text="Notes"/> +<gentext key="nonexistantelement" text="element inexistent"/> +<gentext key="Pgs" text="Pàgs."/> +<gentext key="unsupported" text="no reconeguda"/> +<gentext key="xrefto" text="xref a"/> +<gentext key="unexpectedelementname" text="Nom d'element no esperat"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Índex de taules"/> +<gentext key="ListofExamples" text="Índex d'exemples"/> +<gentext key="ListofFigures" text="Índex de figures"/> +<gentext key="ListofEquations" text="Índex d'equacions"/> +<gentext key="ListofUnknown" text="Índex de desconegut ?"/> + +<gentext key="nav-prev" text="Anterior"/> +<gentext key="nav-prev-sibling" text="Retrocedir"/> +<gentext key="nav-next-sibling" text="Avancar"/> +<gentext key="nav-next" text="Seguent"/> +<gentext key="nav-up" text="Pujar"/> +<gentext key="nav-home" text="Inici"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/common.xsl b/docs/docbook/xslt/db2latex/common/common.xsl new file mode 100644 index 0000000000..2f0883a7f3 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/common.xsl @@ -0,0 +1,1929 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" + version='1.0'> + +<!-- ******************************************************************** + $Id: common.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + ******************************************************************** + + Derived from the official DocBook XSL Stylesheets + See http://nwalsh.com/docbook/xsl/ for copyright and other information. + + This file contains general templates common to both the HTML and FO + versions of the DocBook stylesheets. + ******************************************************************** --> + +<doc:reference xmlns=""> +<referenceinfo> +<releaseinfo role="meta"> $Id: common.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ </releaseinfo> +<author> + <surname>Ramon</surname> + <firstname>Casellas</firstname> +</author> +<copyright> + <year>1999</year><year>2000</year> + <holder>Norman Walsh</holder> +</copyright> +</referenceinfo> +<title>Common Template Reference</title> + +<partintro> +<section><title>Introduction</title> + +<para>This is technical reference documentation for the DocBook XSL +Stylesheets; it documents (some of) the parameters, templates, and +other elements of the stylesheets.</para> + +<para>This is not intended to be <quote>user</quote> documentation. +It is provided for developers writing customization layers for the +stylesheets, and for anyone who's interested in <quote>how it +works</quote>.</para> + +<para>Although I am trying to be thorough, this documentation is known +to be incomplete. Don't forget to read the source, too :-)</para> +</section> +</partintro> + +</doc:reference> + +<!-- ==================================================================== --> +<!-- Establish strip/preserve whitespace rules --> + +<xsl:preserve-space elements="*"/> + +<xsl:strip-space elements=" +abstract affiliation anchor answer appendix area areaset areaspec +artheader article audiodata audioobject author authorblurb authorgroup +beginpage bibliodiv biblioentry bibliography biblioset blockquote book +bookbiblio bookinfo callout calloutlist caption caution chapter +citerefentry cmdsynopsis co collab colophon colspec confgroup +copyright dedication docinfo editor entry entrytbl epigraph equation +example figure footnote footnoteref formalpara funcprototype +funcsynopsis glossary glossdef glossdiv glossentry glosslist graphicco +group highlights imagedata imageobject imageobjectco important index +indexdiv indexentry indexterm informalequation informalexample +informalfigure informaltable inlineequation inlinemediaobject +itemizedlist itermset keycombo keywordset legalnotice listitem lot +mediaobject mediaobjectco menuchoice msg msgentry msgexplan msginfo +msgmain msgrel msgset msgsub msgtext note objectinfo +orderedlist othercredit part partintro preface printhistory procedure +programlistingco publisher qandadiv qandaentry qandaset question +refentry reference refmeta refnamediv refsect1 refsect1info refsect2 +refsect2info refsect3 refsect3info refsynopsisdiv refsynopsisdivinfo +revhistory revision row sbr screenco screenshot sect1 sect1info sect2 +sect2info sect3 sect3info sect4 sect4info sect5 sect5info section +sectioninfo seglistitem segmentedlist seriesinfo set setindex setinfo +shortcut sidebar simplelist simplesect spanspec step subject +subjectset substeps synopfragment table tbody textobject tfoot tgroup +thead tip toc tocchap toclevel1 toclevel2 toclevel3 toclevel4 +toclevel5 tocpart varargs variablelist varlistentry videodata +videoobject void warning subjectset + +classsynopsis +constructorsynopsis +destructorsynopsis +fieldsynopsis +methodparam +methodsynopsis +ooclass +ooexception +oointerface +simplemsgentry +"/> + +<!-- ====================================================================== --> + +<doc:template name="is.component" xmlns=""> +<refpurpose>Tests if a given node is a component-level element</refpurpose> + +<refdescription> +<para>This template returns '1' if the specified node is a component +(Chapter, Appendix, etc.), and '0' otherwise.</para> +</refdescription> + +<refparameter> +<variablelist> +<varlistentry><term>node</term> +<listitem> +<para>The node which is to be tested.</para> +</listitem> +</varlistentry> +</variablelist> +</refparameter> + +<refreturn> +<para>This template returns '1' if the specified node is a component +(Chapter, Appendix, etc.), and '0' otherwise.</para> +</refreturn> +</doc:template> + +<xsl:template name="is.component"> + <xsl:param name="node" select="."/> + <xsl:choose> + <xsl:when test="local-name($node) = 'appendix' + or local-name($node) = 'article' + or local-name($node) = 'chapter' + or local-name($node) = 'preface' + or local-name($node) = 'bibliography' + or local-name($node) = 'glossary' + or local-name($node) = 'index'">1</xsl:when> + <xsl:otherwise>0</xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- ====================================================================== --> + +<doc:template name="is.section" xmlns=""> +<refpurpose>Tests if a given node is a section-level element</refpurpose> + +<refdescription> +<para>This template returns '1' if the specified node is a section +(Section, Sect1, Sect2, etc.), and '0' otherwise.</para> +</refdescription> + +<refparameter> +<variablelist> +<varlistentry><term>node</term> +<listitem> +<para>The node which is to be tested.</para> +</listitem> +</varlistentry> +</variablelist> +</refparameter> + +<refreturn> +<para>This template returns '1' if the specified node is a section +(Section, Sect1, Sect2, etc.), and '0' otherwise.</para> +</refreturn> +</doc:template> + +<xsl:template name="is.section"> + <xsl:param name="node" select="."/> + <xsl:choose> + <xsl:when test="local-name($node) = 'section' + or local-name($node) = 'sect1' + or local-name($node) = 'sect2' + or local-name($node) = 'sect3' + or local-name($node) = 'sect4' + or local-name($node) = 'sect5' + or local-name($node) = 'refsect1' + or local-name($node) = 'refsect2' + or local-name($node) = 'refsect3' + or local-name($node) = 'simplesect'">1</xsl:when> + <xsl:otherwise>0</xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- ====================================================================== --> + +<doc:template name="section.level" xmlns=""> +<refpurpose>Returns the hierarchical level of a section.</refpurpose> + +<refdescription> +<para>This template calculates the hierarchical level of a section. +Hierarchically, components are <quote>top level</quote>, so a +<sgmltag>sect1</sgmltag> is at level 2, <sgmltag>sect3</sgmltag> is +at level 3, etc.</para> + +<para>Recursive sections are calculated down to the sixth level.</para> +</refdescription> + +<refparameter> +<variablelist> +<varlistentry><term>node</term> +<listitem> +<para>The section node for which the level should be calculated. +Defaults to the context node.</para> +</listitem> +</varlistentry> +</variablelist> +</refparameter> + +<refreturn> +<para>The section level, <quote>2</quote>, <quote>3</quote>, etc. +</para> +</refreturn> +</doc:template> + +<xsl:template name="section.level"> + <xsl:param name="node" select="."/> + <xsl:choose> + <xsl:when test="name($node)='sect1'">2</xsl:when> + <xsl:when test="name($node)='sect2'">3</xsl:when> + <xsl:when test="name($node)='sect3'">4</xsl:when> + <xsl:when test="name($node)='sect4'">5</xsl:when> + <xsl:when test="name($node)='sect5'">6</xsl:when> + <xsl:when test="name($node)='section'"> + <xsl:choose> + <xsl:when test="$node/../../../../../section">6</xsl:when> + <xsl:when test="$node/../../../../section">5</xsl:when> + <xsl:when test="$node/../../../section">4</xsl:when> + <xsl:when test="$node/../../section">3</xsl:when> + <xsl:otherwise>2</xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:when test="name($node)='simplesect'"> + <xsl:choose> + <xsl:when test="$node/../../sect1">3</xsl:when> + <xsl:when test="$node/../../sect2">4</xsl:when> + <xsl:when test="$node/../../sect3">5</xsl:when> + <xsl:when test="$node/../../sect4">6</xsl:when> + <xsl:when test="$node/../../sect5">6</xsl:when> + <xsl:when test="$node/../../section"> + <xsl:choose> + <xsl:when test="$node/../../../../../section">6</xsl:when> + <xsl:when test="$node/../../../../section">5</xsl:when> + <xsl:when test="$node/../../../section">4</xsl:when> + <xsl:otherwise>3</xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise>2</xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise>2</xsl:otherwise> + </xsl:choose> +</xsl:template><!-- section.level --> + +<doc:template name="qanda.section.level" xmlns=""> +<refpurpose>Returns the hierarchical level of a QandASet.</refpurpose> + +<refdescription> +<para>This template calculates the hierarchical level of a QandASet. +</para> +</refdescription> + +<refreturn> +<para>The level, <quote>1</quote>, <quote>2</quote>, etc. +</para> +</refreturn> +</doc:template> + +<xsl:template name="qanda.section.level"> + <xsl:variable name="section" + select="(ancestor::section + |ancestor::simplesect + |ancestor::sect5 + |ancestor::sect4 + |ancestor::sect3 + |ancestor::sect2 + |ancestor::sect1 + |ancestor::refsect3 + |ancestor::refsect2 + |ancestor::refsect1)[last()]"/> + <xsl:choose> + <xsl:when test="count($section) = '0'">1</xsl:when> + <xsl:otherwise> + <xsl:call-template name="section.level"> + <xsl:with-param name="node" select="$section"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="qandadiv.section.level"> + <xsl:variable name="section.level"> + <xsl:call-template name="qanda.section.level"/> + </xsl:variable> + <xsl:variable name="anc.divs" select="ancestor::qandadiv"/> + + <xsl:value-of select="count($anc.divs) + number($section.level)"/> +</xsl:template> + +<!-- ====================================================================== --> + +<xsl:template name="object.id"> + <xsl:param name="object" select="."/> + <xsl:choose> + <xsl:when test="$object/@id"> + <xsl:value-of select="$object/@id"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="generate-id($object)"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="person.name"> + <!-- Return a formatted string representation of the contents of + the specified node (by default, the current element). + Handles Honorific, FirstName, SurName, and Lineage. + If %author-othername-in-middle% is #t, also OtherName + Handles *only* the first of each. + Format is "Honorific. FirstName [OtherName] SurName, Lineage" + --> + <xsl:param name="node" select="."/> + + <xsl:choose> + <!-- handle corpauthor as a special case...--> + <xsl:when test="name($node)='corpauthor'"> + <xsl:apply-templates select="$node"/> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="h_nl" select="$node//honorific[1]"/> + <xsl:variable name="f_nl" select="$node//firstname[1]"/> + <xsl:variable name="o_nl" select="$node//othername[1]"/> + <xsl:variable name="s_nl" select="$node//surname[1]"/> + <xsl:variable name="l_nl" select="$node//lineage[1]"/> + + <xsl:variable name="has_h" select="$h_nl"/> + <xsl:variable name="has_f" select="$f_nl"/> + <xsl:variable name="has_o" + select="$o_nl and ($author.othername.in.middle != 0)"/> + <xsl:variable name="has_s" select="$s_nl"/> + <xsl:variable name="has_l" select="$l_nl"/> + + <xsl:if test="$has_h"> + <xsl:value-of select="$h_nl"/>. + </xsl:if> + + <xsl:if test="$has_f"> + <xsl:if test="$has_h"><xsl:text> </xsl:text></xsl:if> + <xsl:value-of select="$f_nl"/> + </xsl:if> + + <xsl:if test="$has_o"> + <xsl:if test="$has_h or $has_f"><xsl:text> </xsl:text></xsl:if> + <xsl:value-of select="$o_nl"/> + </xsl:if> + + <xsl:if test="$has_s"> + <xsl:if test="$has_h or $has_f or $has_o"> + <xsl:text> </xsl:text> + </xsl:if> + <xsl:value-of select="$s_nl"/> + </xsl:if> + + <xsl:if test="$has_l"> + <xsl:text>, </xsl:text> + <xsl:value-of select="$l_nl"/> + </xsl:if> + </xsl:otherwise> + </xsl:choose> +</xsl:template> <!-- person.name --> + +<xsl:template name="person.name.list"> + <!-- Return a formatted string representation of the contents of + the current element. The current element must contain one or + more AUTHORs, CORPAUTHORs, OTHERCREDITs, and/or EDITORs. + + John Doe + or + John Doe and Jane Doe + or + John Doe, Jane Doe, and A. Nonymous + --> + <xsl:param name="person.list" select="./author|./corpauthor|./othercredit|./editor"/> + <xsl:param name="person.count" select="count($person.list)"/> + <xsl:param name="count" select="1"/> + + <xsl:choose> + <xsl:when test="$count>$person.count"></xsl:when> + <xsl:otherwise> + <xsl:call-template name="person.name"> + <xsl:with-param name="node" select="$person.list[position()=$count]"/> + </xsl:call-template> + <xsl:if test="$count<$person.count"> + <xsl:if test="$person.count>2">,</xsl:if> + <xsl:text> </xsl:text> + </xsl:if> + <xsl:if test="$count+1=$person.count">and </xsl:if> + <xsl:call-template name="person.name.list"> + <xsl:with-param name="person.list" select="$person.list"/> + <xsl:with-param name="person.count" select="$person.count"/> + <xsl:with-param name="count" select="$count+1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template><!-- person.name.list --> + +<!-- === synopsis ======================================================= --> +<!-- The following definitions match those given in the reference + documentation for DocBook V3.0 +--> + +<xsl:variable name="arg.choice.opt.open.str">[</xsl:variable> +<xsl:variable name="arg.choice.opt.close.str">]</xsl:variable> +<xsl:variable name="arg.choice.req.open.str">{</xsl:variable> +<xsl:variable name="arg.choice.req.close.str">}</xsl:variable> +<xsl:variable name="arg.choice.plain.open.str"><xsl:text> </xsl:text></xsl:variable> +<xsl:variable name="arg.choice.plain.close.str"><xsl:text> </xsl:text></xsl:variable> +<xsl:variable name="arg.choice.def.open.str">[</xsl:variable> +<xsl:variable name="arg.choice.def.close.str">]</xsl:variable> +<xsl:variable name="arg.rep.repeat.str">...</xsl:variable> +<xsl:variable name="arg.rep.norepeat.str"></xsl:variable> +<xsl:variable name="arg.rep.def.str"></xsl:variable> +<xsl:variable name="arg.or.sep"> | </xsl:variable> +<xsl:variable name="cmdsynopsis.hanging.indent">4pi</xsl:variable> + +<!-- ====================================================================== --> +<!-- label content --> + +<doc:mode mode="label.content" xmlns=""> +<refpurpose>Provides access to element labels</refpurpose> +<refdescription> +<para>Processing an element in the +<literal role="mode">label.content</literal> mode produces the +element label.</para> +<para>If the label is non-null, either because the +<sgmltag class="attribute">label</sgmltag> attribute was present on the +element or the stylesheet automatically generated a label, trailing +punctuation is automatically added.</para> +</refdescription> +</doc:mode> + +<xsl:template match="*" mode="label.content"> + <xsl:message> + <xsl:text>Request for label of unexpected element: </xsl:text> + <xsl:value-of select="name(.)"/> + </xsl:message> +</xsl:template> + +<xsl:template match="set|book" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> +</xsl:template> + +<xsl:template match="part" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$part.autolabel != 0"> + <xsl:number from="book" count="part" format="I"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="preface" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$preface.autolabel != 0"> + <xsl:number from="book" count="preface" format="1" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="chapter" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$chapter.autolabel != 0"> + <xsl:number from="book" count="chapter" format="1" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="appendix" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$chapter.autolabel != 0"> + <xsl:number from="book" count="appendix" format="A" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="article" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> +</xsl:template> + +<xsl:template match="dedication|colophon" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> +</xsl:template> + +<xsl:template match="reference" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$part.autolabel != 0"> + <xsl:number from="book" count="reference" format="I" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="refentry" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> +</xsl:template> + +<xsl:template match="section" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + + <!-- if this is a nested section, label the parent --> + <xsl:if test="local-name(..) = 'section'"> + <xsl:apply-templates select=".." mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + </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:apply-templates select=".." mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + </xsl:if> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$label != 0"> + <xsl:number count="section"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="sect1" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + + <!-- 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:apply-templates select=".." mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + </xsl:if> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:number count="sect1"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="sect2|sect3|sect4|sect5" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + + <!-- label the parent --> + <xsl:apply-templates select=".." mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </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:otherwise> + <xsl:message>label.content: this can't happen!</xsl:message> + </xsl:otherwise> + </xsl:choose> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="refsect1|refsect2|refsect3" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:number level="multiple" count="refsect1|refsect2|refsect3"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="simplesect" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:number level="multiple" count="section + |sect1|sect2|sect3|sect4|sect5 + |refsect1|refsect2|refsect3 + |simplesect"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="qandadiv" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:variable name="prefix"> + <xsl:if test="$qanda.inherit.numeration != 0"> + <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:if test="count($lparent)>0"> + <xsl:apply-templates select="$lparent" mode="label.content"/> + </xsl:if> + </xsl:if> + </xsl:variable> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="$prefix"/> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$qandadiv.autolabel != 0"> + <xsl:value-of select="$prefix"/> + <xsl:number level="multiple" count="qandadiv" format="1"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="question|answer" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:variable name="prefix"> + <xsl:if test="$qanda.inherit.numeration != 0"> + <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 + |ancestor::qandadiv)[last()]"/> + <xsl:if test="count($lparent)>0"> + <xsl:apply-templates select="$lparent" mode="label.content"/> + </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"/> + + <xsl:choose> + <xsl:when test="count($label)>0"> + <xsl:value-of select="$prefix"/> + <xsl:apply-templates select="$label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + + <xsl:when test="$deflabel = 'qanda'"> + <xsl:call-template name="gentext.element.name"/> + </xsl:when> + + <xsl:when test="$deflabel = 'number'"> + <xsl:if test="name(.) = 'question'"> + <xsl:value-of select="$prefix"/> + <xsl:number level="multiple" count="qandaentry" format="1"/> + <xsl:value-of select="$punct"/> + </xsl:if> + </xsl:when> + </xsl:choose> +</xsl:template> + +<xsl:template match="bibliography|glossary|index" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> +</xsl:template> + +<xsl:template match="figure|table|example|equation" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="pchap" + select="ancestor::chapter|ancestor::appendix"/> + <xsl:choose> + <xsl:when test="count($pchap)>0"> + <xsl:apply-templates select="$pchap" mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + <xsl:number format="1" from="chapter|appendix" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:otherwise> + <xsl:number format="1" from="book|article" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="abstract" mode="label.content"> + <xsl:param name="punct">.</xsl:param> +</xsl:template> + +<!-- ====================================================================== --> + +<xsl:template name="label.this.section"> + <xsl:param name="section" select="."/> + <xsl:value-of select="$section.autolabel"/> +</xsl:template> + +<doc:template name="label.this.section" xmlns=""> +<refpurpose>Returns true if $section should be labelled</refpurpose> +<refdescription> +<para>Returns true if the specified section should be labelled. +By default, this template simply returns $section.autolabel, but +custom stylesheets may override it to get more selective behavior.</para> +</refdescription> +</doc:template> + +<!-- ====================================================================== --> +<!-- title content --> + +<doc:mode mode="title.content" xmlns=""> +<refpurpose>Provides access to element titles</refpurpose> +<refdescription> +<para>Processing an element in the +<literal role="mode">title.content</literal> mode produces the +title of the element. This does not include the label. If +<parameter>text-only</parameter> is true, the text of the title +is returned, without inline markup, otherwise inline markup is processed +(in the default mode). By default, <parameter>text-only</parameter> +is false. +</para> +</refdescription> +</doc:mode> + +<xsl:template match="*" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title[1]" mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:message> + <xsl:text>Request for title of unexpected element: </xsl:text> + <xsl:value-of select="name(.)"/> + </xsl:message> + <xsl:text>???TITLE???</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="*" mode="no.anchor.mode"> + <xsl:apply-templates select="."/> +</xsl:template> + +<xsl:template match="anchor" mode="no.anchor.mode"> + <!-- nop, suppressed --> +</xsl:template> + +<xsl:template match="title" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:choose> + <xsl:when test="$text-only != 0"> + <xsl:value-of select="."/> + </xsl:when> + <xsl:otherwise> + <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:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="set" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(setinfo/title|title)[1]" + mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="book" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(bookinfo/title|title)[1]" + mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="part" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(partinfo/title|docinfo/title|title)[1]" + mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="preface|chapter|appendix" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:variable name="title" select="(docinfo/title + |prefaceinfo/title + |chapterinfo/title + |appendixinfo/title + |title)[1]"/> + <xsl:choose> + <xsl:when test="$title"> + <xsl:apply-templates select="$title" mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name" select="name(.)"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="dedication|colophon" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title" mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name" select="name(.)"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="article" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:variable name="title" select="(artheader/title + |articleinfo/title + |title)[1]"/> + + <xsl:apply-templates select="$title" mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="reference" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(referenceinfo/title|docinfo/title|title)[1]" + mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="refentry" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <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.content"/> + </xsl:when> + <xsl:when test="$refname"> + <xsl:apply-templates select="$refname[1]" mode="title.content"/> + </xsl:when> + <xsl:otherwise>REFENTRY WITHOUT TITLE???</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:choose> + <xsl:when test="$text-only != 0"> + <xsl:value-of select="$title"/> + </xsl:when> + <xsl:otherwise><xsl:copy-of select="$title"/></xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="refentrytitle|refname" mode="title.content"> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="section + |sect1|sect2|sect3|sect4|sect5 + |refsect1|refsect2|refsect3 + |simplesect" + mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:variable name="title" select="(sectioninfo/title + |sect1info/title + |sect2info/title + |sect3info/title + |sect4info/title + |sect5info/title + |refsect1info/title + |refsect2info/title + |refsect3info/title + |title)[1]"/> + + <xsl:apply-templates select="$title" mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="bibliography|glossary|index" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title" mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name" select="name(.)"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="figure|table|example|equation" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="title" mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="abstract" mode="title.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title" mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name" select="name(.)"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- ====================================================================== --> +<!-- subtitle content --> + +<doc:mode mode="subtitle.content" xmlns=""> +<refpurpose>Provides access to element subtitles</refpurpose> +<refdescription> +<para>Processing an element in the +<literal role="mode">subtitle.content</literal> mode produces the +subtitle of the element. If +<parameter>text-only</parameter> is true, the text of the title +is returned, without inline markup, otherwise inline markup is processed +(in the default mode). By default, <parameter>text-only</parameter> +is false. +</para> +</refdescription> +</doc:mode> + +<xsl:template match="*" mode="subtitle.content"> + <xsl:message> + <xsl:text>Request for subtitle of unexpected element: </xsl:text> + <xsl:value-of select="name(.)"/> + </xsl:message> + <xsl:text>???SUBTITLE???</xsl:text> +</xsl:template> + +<xsl:template match="subtitle" mode="subtitle.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:choose> + <xsl:when test="$text-only != 0"> + <xsl:value-of select="."/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="set" mode="subtitle.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(setinfo/subtitle|subtitle)[1]" + mode="subtitle.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="book" mode="subtitle.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(bookinfo/subtitle|subtitle)[1]" + mode="subtitle.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="part" mode="subtitle.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(partinfo/subtitle + |docinfo/subtitle + |subtitle)[1]" + mode="subtitle.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="preface|chapter|appendix" mode="subtitle.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(docinfo/subtitle + |prefaceinfo/subtitle + |chapterinfo/subtitle + |appendixinfo/subtitle + |subtitle)[1]" + mode="subtitle.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="dedication|colophon" mode="subtitle.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="subtitle" + mode="subtitle.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="reference" mode="subtitle.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(referenceinfo/subtitle + |docinfo/subtitle + |subtitle)[1]" + mode="subtitle.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="refentry" mode="subtitle.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(refentryinfo/subtitle + |docinfo/subtitle)[1]" + mode="subtitle.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<xsl:template match="section + |sect1|sect2|sect3|sect4|sect5 + |refsect1|refsect2|refsect3 + |simplesect" + mode="subtitle.content"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:apply-templates select="(sectioninfo/subtitle + |sect1info/subtitle + |sect2info/subtitle + |sect3info/subtitle + |sect4info/subtitle + |sect5info/subtitle + |refsect1info/subtitle + |refsect2info/subtitle + |refsect3info/subtitle + |subtitle)[1]" + mode="subtitle.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> +</xsl:template> + +<!-- ====================================================================== --> +<!-- title reference (label + title) --> + +<doc:mode mode="title.ref" xmlns=""> +<refpurpose>Provides reference text for an element</refpurpose> +<refdescription> +<para>Processing an element in the +<literal role="mode">title.ref</literal> mode produces the +label and title of the element. +</para> +</refdescription> +<refparameter> +<variablelist> +<varlistentry><term>text-only</term> +<listitem> +<para> If +<parameter>text-only</parameter> is true, the text of the title +is returned, without inline markup, otherwise inline markup is processed +(in the default mode). By default, <parameter>text-only</parameter> +is false.</para> +</listitem> +</varlistentry> +<varlistentry><term>label-wrapper</term> +<listitem> +<para>If <parameter>label-wrapper</parameter> is not the emtpy string, +it must be the name of an element. The element so named will be wrapped +around labels on output.</para> +</listitem> +</varlistentry> +<varlistentry><term>title-wrapper</term> +<listitem> +<para>If <parameter>title.wrapper</parameter> is not the emtpy string, +it must be the name of an element. The element so named will be wrapped +around titles on output.</para> +</listitem> +</varlistentry> +<varlistentry><term>label-wrapper-class</term> +<listitem> +<para>If a <parameter>label-wrapper</parameter> is provided and +<parameter>label-wrapper-class</parameter> is not the emtpy string, +it be used as the value for a <sgmltag class="attribute">class</sgmltag> +attribute on the <parameter>label-wrapper</parameter> element.</para> +<para>This is a dirty hack because it only makes sense for the HTML +stylesheet (there's no <sgmltag class="attribute">class</sgmltag> attribute +on the FO elements). What I'd really like to do is pass an attribute +set as a parameter, but I can't.</para> +</listitem> +</varlistentry> +<varlistentry><term>title-wrapper-class</term> +<listitem> +<para>If a <parameter>title-wrapper</parameter> is provided and +<parameter>title-wrapper-class</parameter> is not the emtpy string, +it be used as the value for a <sgmltag class="attribute">class</sgmltag> +attribute on the <parameter>title-wrapper</parameter> element.</para> +<para>This is a dirty hack because it only makes sense for the HTML +stylesheet (there's no <sgmltag class="attribute">class</sgmltag> attribute +on the FO elements). What I'd really like to do is pass an attribute +set as a parameter, but I can't.</para> +</listitem> +</varlistentry> +</variablelist> +</refparameter> +</doc:mode> + +<xsl:template match="*" mode="title.ref"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="label-wrapper" select="''"/> + <xsl:param name="title-wrapper" select="''"/> + <!-- Dirty hack --> + <xsl:param name="label-wrapper-class" select="''"/> + <xsl:param name="title-wrapper-class" select="''"/> + + <xsl:variable name="label"> + <xsl:apply-templates select="." mode="label.content"/> + </xsl:variable> + + <xsl:if test="$label != ''"> + <xsl:choose> + <xsl:when test="$text-only = 0"> + <xsl:choose> + <xsl:when test="$label-wrapper != ''"> + <xsl:element name="{$label-wrapper}"> + <xsl:if test="$label-wrapper-class != ''"> + <xsl:attribute name="class"> + <xsl:value-of select="$label-wrapper-class"/> + </xsl:attribute> + </xsl:if> + <xsl:copy-of select="$label"/> + </xsl:element> + </xsl:when> + <xsl:otherwise> + <xsl:copy-of select="$label"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text> </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$label"/> + <xsl:text> </xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:if> + + <xsl:choose> + <xsl:when test="$text-only = 0"> + <xsl:choose> + <xsl:when test="$title-wrapper != ''"> + <xsl:element name="{$title-wrapper}"> + <xsl:if test="$title-wrapper-class != ''"> + <xsl:attribute name="class"> + <xsl:value-of select="$title-wrapper-class"/> + </xsl:attribute> + </xsl:if> + <xsl:apply-templates select="." mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:element> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="." mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="." mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="figure|table|example|equation + |chapter|appendix" mode="title.ref"> + <xsl:param name="text-only" select="'0'"/> + <xsl:param name="allow-anchors" select="'0'"/> + <xsl:param name="label-wrapper" select="''"/> + <xsl:param name="title-wrapper" select="''"/> + <!-- Dirty hack --> + <xsl:param name="label-wrapper-class" select="''"/> + <xsl:param name="title-wrapper-class" select="''"/> + + <xsl:variable name="label"> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name"> + <xsl:value-of select="name(.)"/> + </xsl:with-param> + </xsl:call-template> + <xsl:call-template name="gentext.space"/> + <xsl:apply-templates select="." mode="label.content"/> + </xsl:variable> + + <xsl:if test="$label != ''"> + <xsl:choose> + <xsl:when test="$text-only = 0"> + <xsl:choose> + <xsl:when test="$label-wrapper != ''"> + <xsl:element name="{$label-wrapper}"> + <xsl:if test="$label-wrapper-class != ''"> + <xsl:attribute name="class"> + <xsl:value-of select="$label-wrapper-class"/> + </xsl:attribute> + </xsl:if> + <xsl:copy-of select="$label"/> + </xsl:element> + </xsl:when> + <xsl:otherwise> + <xsl:copy-of select="$label"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text> </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$label"/> + <xsl:text> </xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:if> + + <xsl:choose> + <xsl:when test="$text-only = 0"> + <xsl:choose> + <xsl:when test="$title-wrapper != ''"> + <xsl:element name="{$title-wrapper}"> + <xsl:if test="$title-wrapper-class != ''"> + <xsl:attribute name="class"> + <xsl:value-of select="$title-wrapper-class"/> + </xsl:attribute> + </xsl:if> + <xsl:apply-templates select="." mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:element> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="." mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="." mode="title.content"> + <xsl:with-param name="text-only" select="$text-only"/> + <xsl:with-param name="allow-anchors" select="$allow-anchors"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- ====================================================================== --> + +<xsl:template name="xref.g.subst"> + <xsl:param name="string"></xsl:param> + <xsl:param name="target" select="."/> + <xsl:variable name="subst">%g</xsl:variable> + + <xsl:choose> + <xsl:when test="contains($string, $subst)"> + <xsl:value-of select="substring-before($string, $subst)"/> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name" select="name($target)"/> + </xsl:call-template> + <xsl:call-template name="xref.g.subst"> + <xsl:with-param name="string" + select="substring-after($string, $subst)"/> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$string"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="xref.t.subst"> + <xsl:param name="string"></xsl:param> + <xsl:param name="target" select="."/> + <xsl:variable name="subst">%t</xsl:variable> + + <xsl:choose> + <xsl:when test="contains($string, $subst)"> + <xsl:call-template name="xref.g.subst"> + <xsl:with-param name="string" + select="substring-before($string, $subst)"/> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + <xsl:call-template name="title.xref"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + <xsl:call-template name="xref.t.subst"> + <xsl:with-param name="string" + select="substring-after($string, $subst)"/> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="xref.g.subst"> + <xsl:with-param name="string" select="$string"/> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="xref.n.subst"> + <xsl:param name="string"></xsl:param> + <xsl:param name="target" select="."/> + <xsl:variable name="subst">%n</xsl:variable> + + <xsl:choose> + <xsl:when test="contains($string, $subst)"> + <xsl:call-template name="xref.t.subst"> + <xsl:with-param name="string" + select="substring-before($string, $subst)"/> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + <xsl:call-template name="number.xref"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + <xsl:call-template name="xref.t.subst"> + <xsl:with-param name="string" + select="substring-after($string, $subst)"/> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="xref.t.subst"> + <xsl:with-param name="string" select="$string"/> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="subst.xref.text"> + <xsl:param name="xref.text"></xsl:param> + <xsl:param name="target" select="."/> + + <xsl:call-template name="xref.n.subst"> + <xsl:with-param name="string" select="$xref.text"/> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> +</xsl:template> + +<!-- ====================================================================== --> + +<xsl:template name="filename-basename"> + <!-- We assume all filenames are really URIs and use "/" --> + <xsl:param name="filename"></xsl:param> + <xsl:param name="recurse" select="false()"/> + + <xsl:choose> + <xsl:when test="substring-after($filename, '/') != ''"> + <xsl:call-template name="filename-basename"> + <xsl:with-param name="filename" + select="substring-after($filename, '/')"/> + <xsl:with-param name="recurse" select="true()"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$filename"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="filename-extension"> + <xsl:param name="filename"></xsl:param> + <xsl:param name="recurse" select="false()"/> + + <!-- Make sure we only look at the base name... --> + <xsl:variable name="basefn"> + <xsl:choose> + <xsl:when test="$recurse"> + <xsl:value-of select="$filename"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="filename-basename"> + <xsl:with-param name="filename" select="$filename"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:choose> + <xsl:when test="substring-after($basefn, '.') != ''"> + <xsl:call-template name="filename-extension"> + <xsl:with-param name="filename" + select="substring-after($basefn, '.')"/> + <xsl:with-param name="recurse" select="true()"/> + </xsl:call-template> + </xsl:when> + <xsl:when test="$recurse"> + <xsl:value-of select="$basefn"/> + </xsl:when> + <xsl:otherwise></xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- ====================================================================== --> + +<doc:template name="select.mediaobject" xmlns=""> +<refpurpose>Selects an appropriate media object from a list</refpurpose> + +<refdescription> +<para>This template examines a list of media objects (usually the +children of a mediaobject or inlinemediaobject) and processes +the "right" object.</para> + +<para>This template relies on a template named "is.acceptable.mediaobject" +to determine if a given object is an acceptable graphic. The semantics +of media objects is that the first acceptable graphic should be used. +</para> + +<para>If no acceptable object is located, nothing happens.</para> +</refdescription> + +<refparameter> +<variablelist> +<varlistentry><term>olist</term> +<listitem> +<para>The node list of potential objects to examine.</para> +</listitem> +</varlistentry> +</variablelist> +</refparameter> + +<refreturn> +<para>Calls <xsl:apply-templates> on the selected object.</para> +</refreturn> +</doc:template> + +<xsl:template name="select.mediaobject"> + <xsl:param name="olist" + select="imageobject|imageobjectco + |videoobject|audioobject|textobject"/> + <xsl:param name="count">1</xsl:param> + + <xsl:if test="$count <= count($olist)"> + <xsl:variable name="object" select="$olist[position()=$count]"/> + + <xsl:variable name="useobject"> + <xsl:choose> + <!-- The phrase is never used --> + <xsl:when test="name($object)='textobject' and $object/phrase"> + <xsl:text>0</xsl:text> + </xsl:when> + <!-- The first textobject is a reasonable fallback --> + <xsl:when test="name($object)='textobject'"> + <xsl:text>1</xsl:text> + </xsl:when> + <!-- If there's only one object, use it --> + <xsl:when test="$count = 1 and count($olist) = 1"> + <xsl:text>1</xsl:text> + </xsl:when> + <!-- Otherwise, see if this one is a useable graphic --> + <xsl:otherwise> + <xsl:choose> + <!-- peek inside imageobjectco to simplify the test --> + <xsl:when test="local-name($object) = 'imageobjectco'"> + <xsl:call-template name="is.acceptable.mediaobject"> + <xsl:with-param name="object" select="$object/imageobject"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="is.acceptable.mediaobject"> + <xsl:with-param name="object" select="$object"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:choose> + <xsl:when test="$useobject='1'"> + <xsl:apply-templates select="$object"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="select.mediaobject"> + <xsl:with-param name="olist" select="$olist"/> + <xsl:with-param name="count" select="$count + 1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:if> +</xsl:template> + +<doc:template name="is.acceptable.mediaobject" xmlns=""> +<refpurpose>Returns '1' if the specified media object is recognized.</refpurpose> + +<refdescription> +<para>This template examines a media object and returns '1' if the +object is recognized as a graphic.</para> +</refdescription> + +<refparameter> +<variablelist> +<varlistentry><term>object</term> +<listitem> +<para>The media object to consider.</para> +</listitem> +</varlistentry> +</variablelist> +</refparameter> + +<refreturn> +<para>0 or 1</para> +</refreturn> +</doc:template> + +<xsl:template name="is.acceptable.mediaobject"> + <xsl:param name="object"></xsl:param> + + <xsl:variable name="filename"> + <xsl:call-template name="mediaobject.filename"> + <xsl:with-param name="object" select="$object"/> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name="ext"> + <xsl:call-template name="filename-extension"> + <xsl:with-param name="filename" select="$filename"/> + </xsl:call-template> + </xsl:variable> + + <!-- there will only be one --> + <xsl:variable name="data" select="$object/videodata + |$object/imagedata + |$object/audiodata"/> + + <xsl:variable name="format" select="$data/@format"/> + + <xsl:variable name="graphic.format"> + <xsl:if test="$format"> + <xsl:call-template name="is.graphic.format"> + <xsl:with-param name="format" select="$format"/> + </xsl:call-template> + </xsl:if> + </xsl:variable> + + <xsl:variable name="graphic.ext"> + <xsl:if test="$ext"> + <xsl:call-template name="is.graphic.extension"> + <xsl:with-param name="ext" select="$ext"/> + </xsl:call-template> + </xsl:if> + </xsl:variable> + + <xsl:choose> + <xsl:when test="$graphic.format = '1'">1</xsl:when> + <xsl:when test="$graphic.ext = '1'">1</xsl:when> + <xsl:otherwise>0</xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="is.graphic.format"> + <xsl:param name="format"></xsl:param> + <xsl:if test="$format = 'PNG' + or $format = 'JPG' + or $format = 'JPEG' + or $format = 'linespecific' + or $format = 'GIF' + or $format = 'GIF87a' + or $format = 'GIF89a' + or $format = 'BMP'">1</xsl:if> +</xsl:template> + +<xsl:template name="is.graphic.extension"> + <xsl:param name="ext"></xsl:param> + <xsl:if test="$ext = 'png' + or $ext = 'jpeg' + or $ext = 'jpg' + or $ext = 'avi' + or $ext = 'mpg' + or $ext = 'mpeg' + or $ext = 'qt' + or $ext = 'gif' + or $ext = 'bmp'">1</xsl:if> +</xsl:template> + +<xsl:template name="mediaobject.filename"> + <xsl:param name="object"></xsl:param> + + <xsl:variable name="data" select="$object/videodata + |$object/imagedata + |$object/audiodata"/> + + <xsl:variable name="filename"> + <xsl:choose> + <xsl:when test="$data[@fileref]"> + <xsl:value-of select="$data/@fileref"/> + </xsl:when> + <xsl:when test="$data[@entityref]"> + <xsl:value-of select="unparsed-entity-uri($data/@entityref)"/> + </xsl:when> + <xsl:otherwise></xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="has.ext" select="contains($filename, '.') != ''"/> + + <xsl:variable name="ext"> + <xsl:choose> + <xsl:when test="contains($filename, '.')"> + <xsl:call-template name="filename-extension"> + <xsl:with-param name="filename" select="$filename"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$graphic.default.extension"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:variable name="graphic.ext"> + <xsl:call-template name="is.graphic.extension"> + <xsl:with-param name="ext" select="$ext"/> + </xsl:call-template> + </xsl:variable> + + <xsl:choose> + <xsl:when test="not($has.ext)"> + <xsl:choose> + <xsl:when test="$ext != ''"> + <xsl:value-of select="$filename"/> + <xsl:text>.</xsl:text> + <xsl:value-of select="$ext"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$filename"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:when test="not($graphic.ext)"> + <xsl:choose> + <xsl:when test="$graphic.default.extension != ''"> + <xsl:value-of select="$filename"/> + <xsl:text>.</xsl:text> + <xsl:value-of select="$graphic.default.extension"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$filename"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$filename"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- ====================================================================== --> + +<doc:template name="check.id.unique" xmlns=""> +<refpurpose>Warn users about references to non-unique IDs</refpurpose> +<refdescription> +<para>If passed an ID in <varname>linkend</varname>, +<function>check.id.unique</function> prints +a warning message to the user if either the ID does not exist or +the ID is not unique.</para> +</refdescription> +</doc:template> + +<xsl:template name="check.id.unique"> + <xsl:param name="linkend"></xsl:param> + <xsl:if test="$linkend != ''"> + <xsl:variable name="targets" select="id($linkend)"/> + <xsl:variable name="target" select="$targets[1]"/> + + <xsl:if test="count($targets)=0"> + <xsl:message> + <xsl:text>Error: no ID for constraint linkend: </xsl:text> + <xsl:value-of select="$linkend"/> + <xsl:text>.</xsl:text> + </xsl:message> + </xsl:if> + + <xsl:if test="count($targets)>1"> + <xsl:message> + <xsl:text>Warning: multiple "IDs" for constraint linkend: </xsl:text> + <xsl:value-of select="$linkend"/> + <xsl:text>.</xsl:text> + </xsl:message> + </xsl:if> + </xsl:if> +</xsl:template> + +<doc:template name="check.idref.targets" xmlns=""> +<refpurpose>Warn users about incorrectly typed references</refpurpose> +<refdescription> +<para>If passed an ID in <varname>linkend</varname>, +<function>check.idref.targets</function> makes sure that the element +pointed to by the link is one of the elements listed in +<varname>element-list</varname> and warns the user otherwise.</para> +</refdescription> +</doc:template> + +<xsl:template name="check.idref.targets"> + <xsl:param name="linkend"></xsl:param> + <xsl:param name="element-list"></xsl:param> + <xsl:if test="$linkend != ''"> + <xsl:variable name="targets" select="id($linkend)"/> + <xsl:variable name="target" select="$targets[1]"/> + + <xsl:if test="count($target) > 0"> + <xsl:if test="not(contains(concat(' ', $element-list, ' '), name($target)))"> + <xsl:message> + <xsl:text>Error: linkend (</xsl:text> + <xsl:value-of select="$linkend"/> + <xsl:text>) points to "</xsl:text> + <xsl:value-of select="name($target)"/> + <xsl:text>" not (one of): </xsl:text> + <xsl:value-of select="$element-list"/> + </xsl:message> + </xsl:if> + </xsl:if> + </xsl:if> +</xsl:template> + +<!-- ====================================================================== --> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/common/cs.xml b/docs/docbook/xslt/db2latex/common/cs.xml new file mode 100644 index 0000000000..81c9c5a9cb --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/cs.xml @@ -0,0 +1,110 @@ +<localization language="cs"> + +<!-- Contributors: + Martin Perina <docbk@ataco.cz> + Jirka Kosek <jirka@kosek.cz> +--> + +<gentext key="abstract" text="Abstrakt"/> +<gentext key="answer" text="Otázka:"/> +<gentext key="appendix" text="Příloha"/> +<gentext key="article" text="Článek"/> +<gentext key="bibliography" text="Bibliografie"/> +<gentext key="book" text="Kniha"/> +<gentext key="caution" text="Výstraha"/> +<gentext key="chapter" text="Kapitola"/> +<gentext key="colophon" text="Tiráž"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Věnování"/> +<gentext key="edition" text="Vydání"/> +<gentext key="equation" text="Rovnice"/> +<gentext key="example" text="Příklad"/> +<gentext key="figure" text="Obrázek"/> +<gentext key="glossary" text="Slovník"/> +<gentext key="glosssee" text="Viz"/> +<gentext key="glossseealso" text="Viz též"/> +<gentext key="important" text="Důležité"/> +<gentext key="index" text="Rejstřík"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="keywordset" text="Klíčovíslova"/> +<gentext key="keyword" text="Klíčovéslovo"/> +<gentext key="legalnotice" text="Právní poznámka"/> +<gentext key="msgaud" text="Publikum"/> +<gentext key="msglevel" text="Úroveň"/> +<gentext key="msgorig" text="Původ"/> +<gentext key="note" text="Poznámka"/> +<gentext key="part" text="Část"/> +<gentext key="preface" text="Předmluva"/> +<gentext key="procedure" text="Postup"/> +<gentext key="published" text="Vydáno"/> +<gentext key="question" text="Otázka:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="Odkaz"/> +<gentext key="refname" text="Jméno"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="Přehled"/> +<gentext key="revhistory" text="Přehled revizí"/> +<gentext key="revision" text="Revize"/> +<gentext key="section" text="Oddíl"/> +<gentext key="sect1" text="Oddíl"/> +<gentext key="sect2" text="Oddíl"/> +<gentext key="sect3" text="Oddíl"/> +<gentext key="sect4" text="Oddíl"/> +<gentext key="sect5" text="Oddíl"/> +<gentext key="see" text="Viz"/> +<gentext key="seealso" text="Viz též"/> +<gentext key="set" text="Sada"/> +<gentext key="setindex" text="Rejstřík sady"/> +<gentext key="sidebar" text="Marginálie"/> +<gentext key="step" text="Krok"/> +<gentext key="table" text="Tabulka"/> +<gentext key="tip" text="Tip"/> +<gentext key="warning" text="Varování"/> + +<gentext key="TableofContents" text="Obsah"/> +<gentext key="in" text="v"/> +<gentext key="by" text=" "/> +<gentext key="Edited" text="Vydáno"/> +<gentext key="Editedby" text="Sestavil"/> +<gentext key="and" text="a"/> +<gentext key="Notes" text="Poznámky"/> +<gentext key="TableNotes" text="Poznámky"/> +<gentext key="nonexistantelement" text="neexistující prvek"/> +<gentext key="Pgs" text="Str."/> +<gentext key="unsupported" text="nepodporovaný"/> +<gentext key="xrefto" text="xref k"/> +<gentext key="unexpectedelementname" text="Neočekávané jméno prvku"/> +<gentext key="Revisedby" text="Revidoval: "/> + +<gentext key="ListofTables" text="Seznam tabulek"/> +<gentext key="ListofExamples" text="Seznam příkladů"/> +<gentext key="ListofFigures" text="Seznam obrázků"/> +<gentext key="ListofEquations" text="Seznam rovnic"/> +<gentext key="ListofUnknown" text="Seznam neznámého"/> + +<gentext key="nav-prev" text="Předcházející"/> +<gentext key="nav-prev-sibling" text="Rychle zpět"/> +<gentext key="nav-next-sibling" text="Rychle dopředu"/> +<gentext key="nav-next" text="Další"/> +<gentext key="nav-up" text="Nahoru"/> +<gentext key="nav-home" text="Domů"/> + +<gentext key="the section called" text="oddíl nazvaný"/> + +<dingbat key="startquote" text="„"/> +<dingbat key="endquote" text="“"/> +<dingbat key="nestedstartquote" text="‚"/> +<dingbat key="nestedendquote" text="‘"/> +<dingbat key="bullet" text="•"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> +<xref element="figure" text="%n"/> +<xref element="example" text="%n"/> +<xref element="table" text="%n"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/da.xml b/docs/docbook/xslt/db2latex/common/da.xml new file mode 100644 index 0000000000..959050230f --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/da.xml @@ -0,0 +1,98 @@ +<localization language="da"> + +<gentext key="abstract" text="Abstract"/> +<gentext key="appendix" text="Appendiks"/> +<gentext key="article" text="Article"/> +<gentext key="bibliography" text="Bibliografi"/> +<gentext key="book" text="Book"/> +<gentext key="caution" text="BEMÆRK"/> +<gentext key="caution" text="Bemærk"/> +<gentext key="chapter" text="Kapitel"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Tilegnet"/> +<gentext key="edition" text="Udgave"/> +<gentext key="equation" text="Ligning"/> +<gentext key="example" text="Eksempel"/> +<gentext key="figure" text="Figur"/> +<gentext key="glosssee" text="Se"/> +<gentext key="glossseealso" text="Se også"/> +<gentext key="glossary" text="Stikordregister"/> +<gentext key="important" text="VIGTIGT"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Vigtigt"/> +<gentext key="index" text="Index"/> +<gentext key="legalnotice" text=""/> +<gentext key="msgaud" text="Målgruppe"/> +<gentext key="msglevel" text="Niveau"/> +<gentext key="msgorig" text="Grundlag"/> +<gentext key="note" text="NOTE"/> +<gentext key="note" text="Note"/> +<gentext key="part" text="Del"/> +<gentext key="preface" text="Forord"/> +<gentext key="procedure" text="Procedure"/> +<gentext key="pubdate" text="Udgivet"/> +<gentext key="published" text="Published"/> +<gentext key="refname" text="Navn"/> +<gentext key="reference" text="Reference"/> +<gentext key="revision" text="Revision"/> +<gentext key="revhistory" text="Revision historie"/> +<gentext key="section" text="Afsnit"/> +<gentext key="see" text="Se"/> +<gentext key="seealso" text="Se også"/> +<gentext key="set" text="Set"/> +<gentext key="setindex" text="Set Index"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Skridt"/> +<gentext key="tip" text="TIP"/> +<gentext key="table" text="Tabel"/> +<gentext key="tip" text="Tip"/> +<gentext key="warning" text="ADVARSEL"/> +<gentext key="warning" text="Advarsel"/> +<gentext key="appendix" text="appendiks"/> +<gentext key="chapter" text="kapitel"/> +<gentext key="section" text="sektion"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="skridt"/> +<gentext key="seealso" text="Se også"/> + +<gentext key="TableofContents" text="Indholdsfortegnelse"/> +<gentext key="by" text="af"/> +<gentext key="Edited" text="Redigeret"/> +<gentext key="Editedby" text="Redigeret af"/> +<gentext key="and" text="og"/> +<gentext key="Notes" text="Slutbemærkning:"/> +<gentext key="TableNotes" text="Noter:"/> +<gentext key="nonexistantelement" text="non-existant element"/> +<gentext key="Pgs" text="siderne"/> +<gentext key="unsupported" text="unsupported"/> +<gentext key="xrefto" text="xref to"/> +<gentext key="unexpectedelementname" text="Unexpected element name"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Liste over alle tabeller"/> +<gentext key="ListofExamples" text="Liste over alle eksempler"/> +<gentext key="ListofFigures" text="Liste over alle figurer"/> +<gentext key="ListofEquations" text="Liste over alle ligninger"/> +<gentext key="ListofUnknown" text="Liste over alle ????"/> + +<gentext key="nav-prev" text="Forrige"/> +<gentext key="nav-prev-sibling" text="Hurtigt tilbage"/> +<gentext key="nav-next-sibling" text="Hurtigt fremad"/> +<gentext key="nav-next" text="Næste"/> +<gentext key="nav-up" text="Op"/> +<gentext key="nav-home" text="Hjem"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/de.xml b/docs/docbook/xslt/db2latex/common/de.xml new file mode 100644 index 0000000000..8c458b0f5e --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/de.xml @@ -0,0 +1,102 @@ +<localization language="de"> +<!-- + Contributions by: Michael Burschik, burschik@id-pro.de +--> + +<gentext key="abstract" text="Zusammenfassung"/> +<gentext key="appendix" text="Anhang"/> +<gentext key="article" text="Artikel"/> +<gentext key="bibliography" text="Literaturverzeichnis"/> +<gentext key="book" text="Buch"/> +<gentext key="caution" text="Achtung"/> +<gentext key="chapter" text="Kapitel"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Widmung"/> +<gentext key="edition" text="Ausgabe"/> +<gentext key="equation" text="Gleichung"/> +<gentext key="example" text="Beispiel"/> +<gentext key="figure" text="Abbildung"/> +<gentext key="glosssee" text="Siehe"/> +<gentext key="glossseealso" text="Siehe auch"/> +<gentext key="glossary" text="Glossar"/> +<gentext key="important" text="WICHTIG"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="keyword" text="Stichwort"/> +<gentext key="keywords" text="Stichwörter"/> +<gentext key="keywordset" text="Stichwörter"/> +<gentext key="important" text="Wichtig"/> +<gentext key="index" text="Stichwortverzeichnis"/> +<gentext key="legalnotice" text="Rechtlicher Hinweis"/> +<gentext key="msgaud" text="Zielgruppe"/> +<gentext key="msglevel" text="Dringlichkeit"/> +<gentext key="msgorig" text="Ursprung"/> +<gentext key="note" text="Anmerkung"/> +<gentext key="part" text="Teil"/> +<gentext key="preface" text="Vorwort"/> +<gentext key="procedure" text="Prozedur"/> +<gentext key="published" text="Veröffentlicht"/> +<gentext key="refname" text="Name"/> +<gentext key="reference" text="Verweis"/> +<gentext key="refsection" text="Abschnitt"/> +<gentext key="refsynopsisdiv" text="Synopsis"/> <!--en--> +<gentext key="revhistory" text="Versionsgeschichte"/> +<gentext key="revision" text="Version"/> +<gentext key="section" text="Abschnitt"/> +<gentext key="see" text="Siehe"/> +<gentext key="seealso" text="Siehe auch"/> +<gentext key="seealso" text="Siehe auch"/> +<gentext key="set" text="Satz"/> +<gentext key="setindex" text="Stichwortverzeichnis"/> +<gentext key="sidebar" text="Randnotiz"/> +<gentext key="step" text="Schritt"/> +<gentext key="tip" text="TIP"/> +<gentext key="table" text="Tabelle"/> +<gentext key="tip" text="Tip"/> +<gentext key="warning" text="WARNUNG"/> +<gentext key="appendix" text="Anhang"/> +<gentext key="chapter" text="Kapitel"/> +<gentext key="section" text="Abschnitt"/> +<gentext key="step" text="Schritt"/> + +<gentext key="TableofContents" text="Inhaltsverzeichnis"/> +<gentext key="in" text="in"/> +<gentext key="by" text="von"/> +<gentext key="Edited" text="Herausgegeben"/> +<gentext key="Editedby" text="Herausgegeben von"/> +<gentext key="and" text="und"/> +<gentext key="Notes" text="Fußnoten"/> +<gentext key="TableNotes" text="Bemerkungen"/> +<gentext key="nonexistantelement" text="nicht existierendes Element"/> +<gentext key="Pgs" text="Seiten"/> +<gentext key="unsupported" text="wird nicht unterstützt"/> +<gentext key="xrefto" text="xref auf"/> +<gentext key="unexpectedelementname" text="Unerwarteter Elementname"/> +<gentext key="Revisedby" text="Geändert durch: "/> + +<gentext key="ListofTables" text="Tabellenverzeichnis"/> +<gentext key="ListofExamples" text="Beispiele"/> +<gentext key="ListofFigures" text="Abbildungsverzeichnis"/> +<gentext key="ListofEquations" text="Gleichungen"/> +<gentext key="ListofUnknown" text="???-Verzeichnis"/> + +<gentext key="nav-prev" text="Zurück"/> +<gentext key="nav-prev-sibling" text="Schnell zurück"/> +<gentext key="nav-next-sibling" text="Schnell vor"/> +<gentext key="nav-next" text="Vor"/> +<gentext key="nav-up" text="Hoch"/> +<gentext key="nav-home" text="Anfang"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/el.xml b/docs/docbook/xslt/db2latex/common/el.xml new file mode 100644 index 0000000000..ad93032047 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/el.xml @@ -0,0 +1,104 @@ +<localization language="el"> + +<gentext key="abstract" text="Ðåñßëçøç"/> +<gentext key="answer" text="Á:"/> +<gentext key="appendix" text="ÐáñÜñôçìá"/> +<gentext key="article" text="¶ñèñï"/> +<gentext key="bibliography" text="Âéâëéïãñáößá"/> +<gentext key="book" text="Âéâëßï"/> +<gentext key="caution" text="ÐÑÏÓÏ×Ç"/> +<gentext key="caution" text="Ðñïóï÷Þ"/> +<gentext key="chapter" text="ÊåöÜëáéï"/> +<gentext key="colophon" text="Êïñùíßäá"/> +<gentext key="copyright" text="ÐíåõìáôéêÜ Äéêáéþìáôá"/> +<gentext key="dedication" text="ÁöéÝñùóç"/> +<gentext key="edition" text="¸êäïóç"/> +<gentext key="equation" text="Åîßóùóç"/> +<gentext key="example" text="ÐáñÜäåéãìá"/> +<gentext key="figure" text="Ó÷Þìá"/> +<gentext key="glosssee" text="Äåßôå"/> +<gentext key="glossseealso" text="Äåßôå Åðßóçò"/> +<gentext key="glossary" text="ÃëùóóÜñéï"/> +<gentext key="important" text="ÓÇÌÁÍÔÉÊÏ"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Óçìáíôéêü"/> +<gentext key="index" text="ÅõñåôÞñéï"/> +<gentext key="legalnotice" text="ÍïìéêÞ Óçìåßùóç"/> +<gentext key="msgaud" text="ÁêñïáôÞñéï"/> +<gentext key="msglevel" text="Åðßðåäï"/> +<gentext key="msgorig" text="ÐçãÞ"/> +<gentext key="note" text="ÓÇÌÅÉÙÓÇ"/> +<gentext key="note" text="Óçìåßùóç"/> +<gentext key="part" text="ÌÝñïò"/> +<gentext key="preface" text="ÅéóáãùãÞ"/> +<gentext key="procedure" text="Äéáäéêáóßá"/> +<gentext key="published" text="ÄçìïóéåõìÝíï"/> +<gentext key="question" text="Å:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="ÁíáöïñÜ"/> +<gentext key="refname" text="¼íïìá"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="Óýíïøç"/> +<gentext key="revision" text="Áíáèåþñçóç"/> +<gentext key="revhistory" text="Éóôïñéêü ÁíáèåùñÞóåùí"/> +<gentext key="section" text="ÔìÞìá"/> +<gentext key="see" text="Äåßôå"/> +<gentext key="seealso" text="Äåßôå Åðßóçò"/> +<gentext key="set" text="Óýíïëï"/> +<gentext key="setindex" text="ÅõñåôÞñéï Óõíüëùí"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="ÖÜóç"/> +<gentext key="tip" text="ÕÐÏÄÅÉÎÇ"/> +<gentext key="table" text="Ðßíáêáò"/> +<gentext key="tip" text="Õðüäåéîç"/> +<gentext key="warning" text="ÐÑÏÅÉÄÏÐÏÉÇÓÇ"/> +<gentext key="warning" text="Ðñïåéäïðïßçóç"/> +<gentext key="appendix" text="ðáñÜñôçìá"/> +<gentext key="chapter" text="êåöÜëáéï"/> +<gentext key="section" text="ôìÞìá"/> +<gentext key="sidebar" text="åðåîçãçìáôéêü ðëåõñéêü áñèñßäéï"/> +<gentext key="step" text="öÜóç"/> +<gentext key="seealso" text="Äåßôå åðßóçò"/> + +<gentext key="TableofContents" text="Ðßíáêáò Ðåñéå÷ïìÝíùí"/> +<gentext key="in" text="óå"/> +<gentext key="by" text="áðü"/> +<gentext key="Edited" text="ÅðéìÝëåéá"/> +<gentext key="Editedby" text="ÅðéìÝëåéá áðü"/> +<gentext key="and" text="êáé"/> +<gentext key="Notes" text="Óçìåéþóåéò"/> +<gentext key="TableNotes" text="Ðßíáêáò Óçìåéþóåùí"/> +<gentext key="nonexistantelement" text="ìç-õðáñêôü óôïé÷åßï"/> +<gentext key="Pgs" text="Óëäò."/> +<gentext key="unsupported" text="ìç õðïóôçñéæüìåíï"/> +<gentext key="xrefto" text="áíôéðáñáðïìðÞ óå"/> +<gentext key="unexpectedelementname" text="Ìç áíáìåíüìåíï üíïìá óôïé÷åßïõ"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="ÊáôÜëïãïò ÐéíÜêùí"/> +<gentext key="ListofExamples" text="ÊáôÜëïãïò ÐáñáäåéãìÜôùí"/> +<gentext key="ListofFigures" text="ÊáôÜëïãïò Ó÷çìÜôùí"/> +<gentext key="ListofEquations" text="ÊáôÜëïãïò Åîéóþóåùí"/> +<gentext key="ListofUnknown" text="ÊáôÜëïãïò Áãíþóôùí"/> + +<gentext key="nav-prev" text="Ðñïçã"/> +<gentext key="nav-prev-sibling" text="Ðñïò ôçí áñ÷Þ"/> +<gentext key="nav-next-sibling" text="Ðñïò ôï ôÝëïò"/> +<gentext key="nav-next" text="Åðüìåíï"/> +<gentext key="nav-up" text="ÐÜíù"/> +<gentext key="nav-home" text="Áñ÷Þ"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/en.xml b/docs/docbook/xslt/db2latex/common/en.xml new file mode 100644 index 0000000000..2e8500135f --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/en.xml @@ -0,0 +1,107 @@ +<localization language="en"> + +<gentext key="abstract" text="Abstract"/> +<gentext key="answer" text="A:"/> +<gentext key="appendix" text="Appendix"/> +<gentext key="article" text="Article"/> +<gentext key="bibliography" text="Bibliography"/> +<gentext key="book" text="Book"/> +<gentext key="caution" text="Caution"/> +<gentext key="chapter" text="Chapter"/> +<gentext key="colophon" text="Colophon"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dedication"/> +<gentext key="edition" text="Edition"/> +<gentext key="equation" text="Equation"/> +<gentext key="example" text="Example"/> +<gentext key="figure" text="Figure"/> +<gentext key="formalpara" text="Paragraph"/> +<gentext key="glossary" text="Glossary"/> +<gentext key="glosssee" text="See"/> +<gentext key="glossseealso" text="See also"/> +<gentext key="important" text="Important"/> +<gentext key="index" text="Index"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="keyword" text="Keyword"/> +<gentext key="keywords" text="Keywords"/> +<gentext key="keywordset" text="Keywords"/> +<gentext key="legalnotice" text="Legal Notice"/> +<gentext key="msgaud" text="Audience"/> +<gentext key="msglevel" text="Level"/> +<gentext key="msgorig" text="Origin"/> +<gentext key="note" text="Note"/> +<gentext key="part" text="Part"/> +<gentext key="preface" text="Preface"/> +<gentext key="procedure" text="Procedure"/> +<gentext key="published" text="Published"/> +<gentext key="question" text="Q:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="Reference"/> +<gentext key="refname" text="Name"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="Synopsis"/> +<gentext key="revhistory" text="Revision History"/> +<gentext key="revision" text="Revision"/> +<gentext key="section" text="Section"/> +<gentext key="sect1" text="Section"/> +<gentext key="sect2" text="Section"/> +<gentext key="sect3" text="Section"/> +<gentext key="sect4" text="Section"/> +<gentext key="sect5" text="Section"/> +<gentext key="see" text="See"/> +<gentext key="seealso" text="See Also"/> +<gentext key="set" text="Set"/> +<gentext key="setindex" text="Set Index"/> +<gentext key="sidebar" text="Sidebar"/> +<gentext key="step" text="Step"/> +<gentext key="table" text="Table"/> +<gentext key="tip" text="Tip"/> +<gentext key="warning" text="Warning"/> + +<gentext key="TableofContents" text="Table of Contents"/> +<gentext key="in" text="in"/> +<gentext key="by" text="by"/> +<gentext key="Edited" text="Edited"/> +<gentext key="Editedby" text="Edited by"/> +<gentext key="and" text="and"/> +<gentext key="Notes" text="Notes"/> +<gentext key="TableNotes" text="Notes"/> +<gentext key="nonexistantelement" text="non-existant element"/> +<gentext key="Pgs" text="Pgs."/> +<gentext key="unsupported" text="unsupported"/> +<gentext key="xrefto" text="xref to"/> +<gentext key="unexpectedelementname" text="Unexpected element name"/> +<gentext key="Revisedby" text="Revised by:"/> + +<gentext key="ListofTables" text="List of Tables"/> +<gentext key="ListofExamples" text="List of Examples"/> +<gentext key="ListofFigures" text="List of Figures"/> +<gentext key="ListofEquations" text="List of Equations"/> +<gentext key="ListofUnknown" text="List of Unknown"/> + +<gentext key="nav-prev" text="Prev"/> +<gentext key="nav-prev-sibling" text="Fast Backward"/> +<gentext key="nav-next-sibling" text="Fast Forward"/> +<gentext key="nav-next" text="Next"/> +<gentext key="nav-up" text="Up"/> +<gentext key="nav-home" text="Home"/> + +<gentext key="the section called" text="the section called"/> + +<gentext key="index symbols" text="Symbols"/> + +<dingbat key="startquote" text="``"/> +<dingbat key="endquote" text="''"/> +<dingbat key="nestedstartquote" text="`"/> +<dingbat key="nestedendquote" text="'"/> +<dingbat key="bullet" text="\textbullet{}"/> + +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="preface" text="%t"/> +<xref element="bibliography" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="page.citation" text=" on page %p"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/es.xml b/docs/docbook/xslt/db2latex/common/es.xml new file mode 100644 index 0000000000..78483dfb65 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/es.xml @@ -0,0 +1,98 @@ +<localization language="es"> + +<gentext key="abstract" text="Resumen"/> +<gentext key="appendix" text="Apéndice"/> +<gentext key="article" text="Artículo"/> +<gentext key="bibliography" text="Bibliografía"/> +<gentext key="book" text="Libro"/> +<gentext key="caution" text="ATENCIÓN"/> +<gentext key="caution" text="Atención"/> +<gentext key="chapter" text="Capítulo"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dedicado"/> +<gentext key="edition" text="Edición"/> +<gentext key="equation" text="Ecuación"/> +<gentext key="example" text="Ejemplo"/> +<gentext key="figure" text="Figura"/> +<gentext key="glosssee" text="Ver"/> +<gentext key="glossseealso" text="Ver también"/> +<gentext key="glossary" text="Glosario"/> +<gentext key="important" text="IMPORTANTE"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Importante"/> +<gentext key="index" text="Índice"/> +<gentext key="legalnotice" text="Aviso Legal"/> +<gentext key="msgaud" text="Audiencia"/> +<gentext key="msglevel" text="Nivel"/> +<gentext key="msgorig" text="Origen"/> +<gentext key="note" text="NOTA"/> +<gentext key="note" text="Nota"/> +<gentext key="part" text="Parte"/> +<gentext key="preface" text="Prefacio"/> +<gentext key="procedure" text="Procedimiento"/> +<gentext key="pubdate" text="Fecha de publicación"/> +<gentext key="published" text="Publicado"/> +<gentext key="refname" text="Nombre"/> +<gentext key="reference" text="Referencia"/> +<gentext key="revision" text="Revisión"/> +<gentext key="revhistory" text="Historial de revisiones"/> +<gentext key="section" text="Sección"/> +<gentext key="see" text="Ver"/> +<gentext key="seealso" text="Ver También"/> +<gentext key="set" text="Conjunto"/> +<gentext key="setindex" text="Índice del conjunto"/> +<gentext key="sidebar" text="Sidebar"/> +<gentext key="step" text="Paso"/> +<gentext key="tip" text="SUGERENCIA"/> +<gentext key="table" text="Tabla"/> +<gentext key="tip" text="Sugerencia"/> +<gentext key="warning" text="AVISO"/> +<gentext key="warning" text="Aviso"/> +<gentext key="appendix" text="apéndice"/> +<gentext key="chapter" text="capítulo"/> +<gentext key="section" text="sección"/> +<gentext key="step" text="paso"/> +<gentext key="seealso" text="Ver También"/> + +<gentext key="TableofContents" text="Tabla de contenidos"/> +<gentext key="in" text="en"/> +<gentext key="by" text="por"/> +<gentext key="Edited" text="Editado"/> +<gentext key="Editedby" text="Editado por"/> +<gentext key="and" text="y"/> +<gentext key="Notes" text="Notas"/> +<gentext key="TableNotes" text="Notas"/> +<gentext key="nonexistantelement" text="elemento inexistente"/> +<gentext key="Pgs" text="Pags."/> +<gentext key="unsupported" text="no soportado"/> +<gentext key="xrefto" text="referido a"/> +<gentext key="unexpectedelementname" text="Nombre de elemento inesperado"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Lista de tablas"/> +<gentext key="ListofExamples" text="Tabla de ejemplos"/> +<gentext key="ListofFigures" text="Tabla de figuras"/> +<gentext key="ListofEquations" text="Tabla de ecuaciones"/> +<gentext key="ListofUnknown" text="Lista de ???"/> + +<gentext key="nav-prev" text="Anterior"/> +<gentext key="nav-prev-sibling" text="Retroceder"/> +<gentext key="nav-next-sibling" text="Avanzar"/> +<gentext key="nav-next" text="Siguiente"/> +<gentext key="nav-up" text="Subir"/> +<gentext key="nav-home" text="Inicio"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/et.xml b/docs/docbook/xslt/db2latex/common/et.xml new file mode 100644 index 0000000000..4c63adbe7a --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/et.xml @@ -0,0 +1,104 @@ +<localization language="et"> + +<gentext key="abstract" text="Ülevaade"/> +<gentext key="answer" text="V:"/> +<gentext key="appendix" text="Lisa"/> +<gentext key="article" text="Artikkel"/> +<gentext key="bibliography" text="Bibliograafia"/> +<gentext key="book" text="Raamat"/> +<gentext key="caution" text="ETTEVAATUST"/> +<gentext key="caution" text="Ettevaatust"/> +<gentext key="chapter" text="Peatükk"/> +<gentext key="colophon" text="Lõpumärgis"/> +<gentext key="copyright" text="Autoriõigus"/> +<gentext key="dedication" text="Pühendus"/> +<gentext key="edition" text="Väljaanne"/> +<gentext key="equation" text="Valem"/> +<gentext key="example" text="Näide"/> +<gentext key="figure" text="Joonis"/> +<gentext key="glosssee" text="Vt."/> +<gentext key="glossseealso" text="Vt. ka"/> +<gentext key="glossary" text="Sõnastik"/> +<gentext key="important" text="OLULINE"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Oluline"/> +<gentext key="index" text="Aineregister"/> +<gentext key="legalnotice" text="Autoriõiguse märge"/> +<gentext key="msgaud" text="Auditoorium"/> +<gentext key="msglevel" text="Tase"/> +<gentext key="msgorig" text="Algallikas"/> +<gentext key="note" text="MÄRKUS"/> +<gentext key="note" text="Märkus"/> +<gentext key="part" text="Osa"/> +<gentext key="preface" text="Eessõna"/> +<gentext key="procedure" text="Protseduur"/> +<gentext key="published" text="Avaldatud"/> +<gentext key="question" text="K:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="Viide"/> +<gentext key="refname" text="Nimi"/> +<gentext key="refsection" text="Lõik"/> +<gentext key="refsynopsisdiv" text="Sünopsis"/> +<gentext key="revision" text="Vigade parandus"/> +<gentext key="revhistory" text="Vigade paranduste ajalugu"/> +<gentext key="section" text="Sektsioon"/> +<gentext key="see" text="Vt."/> +<gentext key="seealso" text="Vt. ka"/> +<gentext key="set" text="Sea"/> +<gentext key="setindex" text="Sea indeks"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Samm"/> +<gentext key="tip" text="VIHJE"/> +<gentext key="table" text="Tabel"/> +<gentext key="tip" text="Vihje"/> +<gentext key="warning" text="HOIATUS"/> +<gentext key="warning" text="Hoiatus"/> +<gentext key="appendix" text="lisa"/> +<gentext key="chapter" text="peatükk"/> +<gentext key="section" text="lõik"/> +<gentext key="sidebar" text="külgriba"/> +<gentext key="step" text="samm"/> +<gentext key="seealso" text="Vt. ka"/> + +<gentext key="TableofContents" text="Sisukord"/> +<gentext key="in" text=""/> +<gentext key="by" text=""/> +<gentext key="Edited" text="Redaktsioon"/> +<gentext key="Editedby" text="Redaktsiooni autor(id)"/> +<gentext key="and" text="ja"/> +<gentext key="Notes" text="Märkused"/> +<gentext key="TableNotes" text="Märkused"/> +<gentext key="nonexistantelement" text="mitte eksisteeriv element"/> +<gentext key="Pgs" text="Lk."/> +<gentext key="unsupported" text="toetuseta"/> +<gentext key="xrefto" text="viide"/> +<gentext key="unexpectedelementname" text="Ootamatu elemendi nimi"/> +<gentext key="Revisedby" text="Üle vaadanud: "/> + +<gentext key="ListofTables" text="Tabelite nimekiri"/> +<gentext key="ListofExamples" text="Näidete nimekiri"/> +<gentext key="ListofFigures" text="Jooniste nimekiri"/> +<gentext key="ListofEquations" text="Valemite nimekiri"/> +<gentext key="ListofUnknown" text="Tundmatute nimekiri"/> + +<gentext key="nav-prev" text="Eelmine"/> +<gentext key="nav-prev-sibling" text="Kiiresti tagasi"/> +<gentext key="nav-next-sibling" text="Kiiresti edasi"/> +<gentext key="nav-next" text="Järgmine"/> +<gentext key="nav-up" text="Üles"/> +<gentext key="nav-home" text="Koju"/> + +<dingbat key="startquote" text='“'/> +<dingbat key="endquote" text='”'/> +<dingbat key="nestedstartquote" text="`"/> +<dingbat key="nestedendquote" text="'"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/fi.xml b/docs/docbook/xslt/db2latex/common/fi.xml new file mode 100644 index 0000000000..5d25725512 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/fi.xml @@ -0,0 +1,98 @@ +<localization language="fi"> + +<gentext key="abstract" text="Lyhennelmä"/> +<gentext key="appendix" text="Liite"/> +<gentext key="article" text="Artikkeli"/> +<gentext key="bibliography" text="Lähteet"/> +<gentext key="book" text="Kirja"/> +<gentext key="caution" text="VARO"/> +<gentext key="caution" text="Varo"/> +<gentext key="chapter" text="Luku"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Omistus"/> +<gentext key="edition" text="Edition"/> +<gentext key="equation" text="Kaava"/> +<gentext key="example" text="Esimerkki"/> +<gentext key="figure" text="Kuva"/> +<gentext key="glosssee" text="Katso"/> +<gentext key="glossseealso" text="Katso myös"/> +<gentext key="glossary" text="Sanasto"/> +<gentext key="important" text="TÄRKEÄÄ"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Tärkeää"/> +<gentext key="index" text="Indeksi"/> +<gentext key="legalnotice" text=""/> +<gentext key="msgaud" text="Yleisö"/> +<gentext key="msglevel" text="Taso"/> +<gentext key="msgorig" text="Alkuperä"/> +<gentext key="note" text="HUOMAA"/> +<gentext key="note" text="Huomaa"/> +<gentext key="part" text="Osa"/> +<gentext key="preface" text="Esipuhe"/> +<gentext key="procedure" text="Aliohjelma"/> +<gentext key="published" text="Julkaistu"/> +<gentext key="refname" text="Nimi"/> +<gentext key="reference" text="Lähdeluettelo"/> +<gentext key="revision" text="Versio"/> +<gentext key="revhistory" text="Versiohistoria"/> +<gentext key="section" text="Kohta"/> +<gentext key="see" text="Katso"/> +<gentext key="seealso" text="Katso myös"/> +<gentext key="set" text="Kokoelma"/> +<gentext key="setindex" text="Kokoelman indeksi"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Step"/> +<gentext key="tip" text="VIHJE"/> +<gentext key="table" text="Taulu"/> +<gentext key="tip" text="Vihje"/> +<gentext key="warning" text="VAROITUS"/> +<gentext key="warning" text="Varoitus"/> +<gentext key="appendix" text="liite"/> +<gentext key="chapter" text="luku"/> +<gentext key="section" text="kohta"/> +<gentext key="sidebar" text="sivupalkki"/> +<gentext key="step" text="step"/> +<gentext key="seealso" text="Katso myös"/> + +<gentext key="TableofContents" text="Sisällys"/> +<gentext key="in" text="teoksessa"/> +<gentext key="by" text=""/> +<gentext key="Edited" text="Toim."/> +<gentext key="Editedby" text="Toimittanut"/> +<gentext key="and" text="ja"/> +<gentext key="Notes" text=""/> +<gentext key="TableNotes" text=""/> +<gentext key="nonexistantelement" text="elementtiä ei ole olemassa"/> +<gentext key="Pgs" text="Sivut"/> +<gentext key="unsupported" text="ei tueta"/> +<gentext key="xrefto" text="xref johonkin"/> +<gentext key="unexpectedelementname" text="Odottamaton elementin nimi"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Luettelo tauluista"/> +<gentext key="ListofExamples" text="Luettelo esimerkeistä"/> +<gentext key="ListofFigures" text="Luettelo kuvista"/> +<gentext key="ListofEquations" text="Luettelo esimerkeistä"/> +<gentext key="ListofUnknown" text="Luettelo tuntemattomista"/> + +<gentext key="nav-prev" text="Edellinen"/> +<gentext key="nav-prev-sibling" text="Nopeasti taaksepäin"/> +<gentext key="nav-next-sibling" text="Nopeasti eteenpäin"/> +<gentext key="nav-next" text="Seuraava"/> +<gentext key="nav-up" text="Ylös"/> +<gentext key="nav-home" text="Alkuun"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/fr.xml b/docs/docbook/xslt/db2latex/common/fr.xml new file mode 100644 index 0000000000..bf53bc57d6 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/fr.xml @@ -0,0 +1,114 @@ +<localization language="fr"> + +<gentext key="abstract" text="Résumé"/> +<gentext key="answer" text="R:"/> +<gentext key="appendix" text="annexe"/> +<gentext key="article" text="article"/> +<gentext key="bibliography" text="bibliographie"/> +<gentext key="book" text="Livre"/> +<gentext key="caution" text="Attention"/> +<gentext key="chapter" text="chapitre"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dédicace"/> +<gentext key="edition" text="Édition"/> +<gentext key="equation" text="Équation"/> +<gentext key="example" text="Exemple"/> +<gentext key="figure" text="figure"/> +<gentext key="formalpara" text="paragraphe"/> +<gentext key="glosssee" text="Voir"/> +<gentext key="glossseealso" text="Voir aussi"/> +<gentext key="glossary" text="Glossaire"/> +<gentext key="important" text="IMPORTANT"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Important"/> +<gentext key="index" text="Index"/> +<gentext key="keyword" text="Mot Clé"/> +<gentext key="keywords" text="Mots Clés"/> +<gentext key="keywordset" text="Mots Clés"/> +<gentext key="legalnotice" text="Note légale"/> +<gentext key="msgaud" text="Public visé"/> +<gentext key="msglevel" text="Niveau"/> +<gentext key="msgorig" text="Origine"/> +<gentext key="note" text="Note"/> +<gentext key="part" text="Partie"/> +<gentext key="preface" text="Préface"/> +<gentext key="procedure" text="Procédure"/> +<gentext key="published" text="Publié"/> +<gentext key="question" text="Q:"/> +<gentext key="refentry" text=""/> +<gentext key="refname" text="Nom"/> +<gentext key="refsection" text=""/> +<gentext key="reference" text="Référence"/> +<gentext key="revhistory" text="Historique des versions"/> +<gentext key="revision" text="Version"/> +<gentext key="section" text="section"/> +<gentext key="see" text="Voir"/> +<gentext key="seealso" text="Voir Aussi"/> +<gentext key="seealso" text="Voir aussi"/> +<gentext key="set" text="Ensemble"/> +<gentext key="setindex" text="Index"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Étape"/> +<gentext key="tip" text="TUYAU"/> +<gentext key="table" text="Tableau"/> +<gentext key="tip" text="Tuyau"/> +<gentext key="warning" text="Avertissement"/> +<gentext key="appendix" text="annexe"/> +<gentext key="chapter" text="chapitre"/> +<gentext key="sidebar" text=""/> +<gentext key="section" text="section"/> +<gentext key="sect1" text="section"/> +<gentext key="sect2" text="section"/> +<gentext key="sect3" text="section"/> +<gentext key="sect4" text="section"/> +<gentext key="sect5" text="section"/> +<gentext key="step" text="étape"/> + +<gentext key="TableofContents" text="Table des matières"/> +<gentext key="in" text="dans"/> +<gentext key="by" text="par"/> +<gentext key="Edited" text="Publié"/> +<gentext key="Editedby" text="Publié par"/> +<gentext key="and" text="et"/> +<gentext key="Notes" text="Notes"/> +<gentext key="TableNotes" text="Remarques"/> +<gentext key="nonexistantelement" text="Cet élément n'existe pas"/> +<gentext key="Pgs" text="Pages"/> +<gentext key="unsupported" text="Non reconnu par le système"/> +<gentext key="xrefto" text="Référence vers"/> +<gentext key="unexpectedelementname" text="Nom d'élément non attendu"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Liste des tableaux"/> +<gentext key="ListofExamples" text="Liste des exemples"/> +<gentext key="ListofFigures" text="Liste des illustrations"/> +<gentext key="ListofEquations" text="Liste des équations"/> +<gentext key="ListofUnknown" text="Liste des inconnues"/> + +<gentext key="nav-prev" text="Précédent"/> +<gentext key="nav-prev-sibling" text="Fast Backward"/> +<gentext key="nav-next-sibling" text="Fast Forward"/> +<gentext key="nav-next" text="Suivant"/> +<gentext key="nav-up" text="Niveau supérieur"/> +<gentext key="nav-home" text="Sommaire"/> + + + +<gentext key="mathproposition" text="proposition"/> +<gentext key="mathlemma" text="lemme"/> +<gentext key="maththeorem" text="théorème"/> +<dingbat key="startquote" text="«"/> +<dingbat key="endquote" text="»"/> +<dingbat key="nestedstartquote" text="«"/> +<dingbat key="nestedendquote" text="»"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +<xref element="appendix" text="%g %n, %t"/> +</localization> diff --git a/docs/docbook/xslt/db2latex/common/hu.xml b/docs/docbook/xslt/db2latex/common/hu.xml new file mode 100644 index 0000000000..d37e06ff8a --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/hu.xml @@ -0,0 +1,94 @@ +<localization language="hu"> + +<gentext key="abstract" text="Kivonat"/> +<gentext key="answer" text="V:"/> +<gentext key="appendix" text="Fűggelék"/> +<gentext key="article" text="Cikk"/> +<gentext key="bibliography" text="Irodalomjegyzék"/> +<gentext key="book" text="Kőnyv"/> +<gentext key="caution" text="Figyelem"/> +<gentext key="chapter" text="Fejezet"/> +<gentext key="colophon" text="Végszó"/> +<gentext key="copyright" text="Vࣩdjegy"/> +<gentext key="dedication" text="Ajánlás"/> +<gentext key="edition" text="Kiadás"/> +<gentext key="equation" text="Egyenlet"/> +<gentext key="example" text="Példa"/> +<gentext key="figure" text="Ábra"/> +<gentext key="glosssee" text="Lásd"/> +<gentext key="glossseealso" text="Lásd még"/> +<gentext key="glossary" text="Szójegyzék"/> +<gentext key="important" text="FONTOS"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Fontos"/> +<gentext key="index" text="Tárgymutató"/> +<gentext key="legalnotice" text="Jogi kőzlemény"/> +<gentext key="msgaud" text="Célkőzőnség"/> +<gentext key="msglevel" text="Szint"/> +<gentext key="msgorig" text="Eredet"/> +<gentext key="note" text="Megjegyzés"/> +<gentext key="part" text="Rész"/> +<gentext key="preface" text="Előszó"/> +<gentext key="procedure" text="Eljárás"/> +<gentext key="published" text="Megjelent"/> +<gentext key="question" text="K:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="Referencia"/> +<gentext key="refname" text="Név"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="Áttekintés"/> +<gentext key="revision" text="Verzió"/> +<gentext key="revhistory" text="Verziók tőrténete"/> +<gentext key="section" text="Szakasz"/> +<gentext key="see" text="Lásd"/> +<gentext key="seealso" text="Lásd még"/> +<gentext key="set" text="Set"/> <!-- en --> +<gentext key="setindex" text="Set Index"/> <!-- en --> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Lépés"/> +<gentext key="table" text="Táblázat"/> +<gentext key="tip" text="Tipp"/> +<gentext key="warning" text="Figyelem"/> + +<gentext key="TableofContents" text="Tartalom"/> +<gentext key="in" text=""/> +<gentext key="by" text=""/> +<gentext key="Edited" text="Szerk."/> +<gentext key="Editedby" text="Szerkesztette"/> +<gentext key="and" text="és"/> +<gentext key="Notes" text="Megjegyzések"/> +<gentext key="TableNotes" text="Megjegyzések"/> +<gentext key="nonexistantelement" text="nem létezo elem"/> +<gentext key="Pgs" text="Lsz."/> +<gentext key="unsupported" text="nem támogatott"/> +<gentext key="xrefto" text="keresztref:"/> +<gentext key="unexpectedelementname" text="Nem várt elemnév"/> +<gentext key="Revisedby" text="Megvizsgálva: "/> + +<gentext key="ListofTables" text="Táblázatok listája"/> +<gentext key="ListofExamples" text="Példák listája"/> +<gentext key="ListofFigures" text="Ábrák listája"/> +<gentext key="ListofEquations" text="Egyenletek listája"/> +<gentext key="ListofUnknown" text="Egyéb elemek listája"/> + +<gentext key="nav-prev" text="Vissza"/> +<gentext key="nav-prev-sibling" text="Gyors vissza"/> +<gentext key="nav-next-sibling" text="Gyors Tovább"/> +<gentext key="nav-next" text="Tovább"/> +<gentext key="nav-up" text="Fel"/> +<gentext key="nav-home" text="Tartalom"/> + +<dingbat key="startquote" text='“'/> +<dingbat key="endquote" text='”'/> +<dingbat key="nestedstartquote" text="`"/> +<dingbat key="nestedendquote" text="'"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%n %g %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/id.xml b/docs/docbook/xslt/db2latex/common/id.xml new file mode 100644 index 0000000000..f85b02154b --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/id.xml @@ -0,0 +1,104 @@ +<localization language="id"> + +<gentext key="abstract" text="Abstrak"/> +<gentext key="answer" text="Jawab:"/> +<gentext key="appendix" text="Lampiran"/> +<gentext key="article" text="Artikel"/> +<gentext key="bibliography" text="Bibliografi"/> +<gentext key="book" text="Buku"/> +<gentext key="caution" text="PERHATIAN"/> +<gentext key="caution" text="Perhatian"/> +<gentext key="chapter" text="Bab"/> +<gentext key="colophon" text="Kolofon"/> +<gentext key="copyright" text="Hak Cipta"/> +<gentext key="dedication" text="Dedikasi"/> +<gentext key="edition" text="Edisi"/> +<gentext key="equation" text="Persamaan"/> +<gentext key="example" text="Teladan"/> +<gentext key="figure" text="Gambar"/> +<gentext key="glosssee" text="Lihat"/> +<gentext key="glossseealso" text="Lihat Juga"/> +<gentext key="glossary" text="Daftar Istilah"/> +<gentext key="important" text="PENTING"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Penting"/> +<gentext key="index" text="Indeks"/> +<gentext key="legalnotice" text="Aspek Hukum"/> +<gentext key="msgaud" text="Pemirsa"/> +<gentext key="msglevel" text="Tingkatan"/> +<gentext key="msgorig" text="Asal"/> +<gentext key="note" text="CATATAN"/> +<gentext key="note" text="Catatan"/> +<gentext key="part" text="Bagian"/> +<gentext key="preface" text="Kata Pengantar"/> +<gentext key="procedure" text="Prosedur"/> +<gentext key="published" text="Diterbitkan"/> +<gentext key="question" text="Tanya:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="Referensi"/> +<gentext key="refname" text="Nama"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="Sinopsis"/> +<gentext key="revision" text="Revisi"/> +<gentext key="revhistory" text="Catatan Revisi"/> +<gentext key="section" text="Bagian"/> +<gentext key="see" text="Lihat"/> +<gentext key="seealso" text="Lihat Juga"/> +<gentext key="set" text="Set"/> +<gentext key="setindex" text="Set Index"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Tahap"/> +<gentext key="tip" text="TIP"/> +<gentext key="table" text="Tabel"/> +<gentext key="tip" text="Tip"/> +<gentext key="warning" text="AWAS"/> +<gentext key="warning" text="Awas"/> +<gentext key="appendix" text="lampiran"/> +<gentext key="chapter" text="bab"/> +<gentext key="section" text="bagian"/> +<gentext key="sidebar" text="sidebar"/> +<gentext key="step" text="tahap"/> +<gentext key="seealso" text="Lihat juga"/> + +<gentext key="TableofContents" text="Daftar Isi"/> +<gentext key="in" text="di"/> +<gentext key="by" text="oleh"/> +<gentext key="Edited" text="disunting"/> +<gentext key="Editedby" text="disunting oleh"/> +<gentext key="and" text="dan"/> +<gentext key="Notes" text="Catatan"/> +<gentext key="TableNotes" text="Catatan"/> +<gentext key="nonexistantelement" text="elemen tak tampak"/> +<gentext key="Pgs" text="Hal."/> +<gentext key="unsupported" text="tidak didukung"/> +<gentext key="xrefto" text="xref ke"/> +<gentext key="unexpectedelementname" text="Nama Elemen seharusnya tidak ada"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Daftar Tabel"/> +<gentext key="ListofExamples" text="Daftar Teladan"/> +<gentext key="ListofFigures" text="Daftar Gambar"/> +<gentext key="ListofEquations" text="Daftar Persamaan"/> +<gentext key="ListofUnknown" text="Daftar Gaib"/> + +<gentext key="nav-prev" text="Prev"/> +<gentext key="nav-prev-sibling" text="Fast Backward"/> +<gentext key="nav-next-sibling" text="Fast Forward"/> +<gentext key="nav-next" text="Next"/> +<gentext key="nav-up" text="Up"/> +<gentext key="nav-home" text="Home"/> + +<dingbat key="startquote" text='“'/> +<dingbat key="endquote" text='”'/> +<dingbat key="nestedstartquote" text="`"/> +<dingbat key="nestedendquote" text="'"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/it.xml b/docs/docbook/xslt/db2latex/common/it.xml new file mode 100644 index 0000000000..a7e1063ef4 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/it.xml @@ -0,0 +1,103 @@ +<localization language="it"> +<!-- updates from camille@mandrakesoft.com --> + +<gentext key="abstract" text="Estratto"/> +<gentext key="appendix" text="Appendice"/> +<gentext key="article" text="Articolo"/> +<gentext key="audience" text="Pubblico"/> +<gentext key="bibliography" text="Bibliografia"/> +<gentext key="book" text="Libro"/> +<gentext key="caution" text="CAUTELA"/> +<gentext key="caution" text="Cautela"/> +<gentext key="chapter" text="Capitolo"/> +<gentext key="colophon" text="Colophon"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dedica"/> +<gentext key="edition" text="Edizione"/> +<gentext key="equation" text="Equazione"/> +<gentext key="example" text="Esempio"/> +<gentext key="figure" text="Figura"/> +<gentext key="glossary" text="Glossario"/> +<gentext key="glosssee" text="Vedi"/> +<gentext key="glossseealso" text="Vedi anche"/> +<gentext key="important" text="IMPORTANTE"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Importante"/> +<gentext key="index" text="Indice"/> +<gentext key="legalnotice" text="Note legali"/> +<gentext key="level" text="Livello"/> +<gentext key="note" text="NOTA"/> +<gentext key="name" text="Nome"/> +<gentext key="note" text="Nota"/> +<gentext key="origin" text="Origine"/> +<gentext key="part" text="Parte"/> +<gentext key="preface" text="Prefazione"/> +<gentext key="procedure" text="Procedura"/> +<gentext key="published" text="Pubblicato"/> +<gentext key="reference" text="Riferimento"/> +<gentext key="revision" text="Revisione"/> +<gentext key="history" text="Diario"/> +<gentext key="refsynopsisdiv" text="Sinossi"/> +<gentext key="revisionhistory" text="Diario delle revisioni"/> +<gentext key="section" text="Sezione"/> +<gentext key="see" text="Vd."/> +<gentext key="seealso" text="Vd. Anche"/> +<gentext key="seealso" text="Vd. anche"/> +<gentext key="set" text="Raccolta"/> +<gentext key="setindex" text="Indice Raccolta"/> +<gentext key="sidebar" text="Nota a margine"/> +<gentext key="step" text="Passaggio"/> +<gentext key="tip" text="SUGGERIMENTO"/> +<gentext key="table" text="Tabella"/> +<gentext key="tip" text="Suggerimento"/> +<gentext key="warning" text="ATTENZIONE"/> +<gentext key="warning" text="Attenzione"/> +<gentext key="appendix" text="appendice"/> +<gentext key="chapter" text="capitolo"/> +<gentext key="section" text="sezione"/> +<gentext key="step" text="passaggio"/> + +<gentext key="TableofContents" text="Sommario"/> +<gentext key="called" text="intitolato"/> +<gentext key="in" text="in"/> +<gentext key="by" text="di"/> +<gentext key="Edited" text="A cura"/> +<gentext key="Editedby" text="A cura di"/> +<gentext key="and" text="e"/> +<gentext key="Notes" text="Note"/> +<gentext key="TableNotes" text="Note"/> +<gentext key="nonexistantelement" text="elemento non esistente"/> +<gentext key="the" text="il"/> +<gentext key="Pgs" text="pp."/> +<gentext key="unsupported" text="non supportato"/> +<gentext key="xrefto" text="riferimento a"/> +<gentext key="unexpectedelementname" text="Nome elemento inaspettato"/> +<gentext key="Revisedby" text="Modificato da:"/> + +<gentext key="ListofTables" text="Lista delle Tabelle"/> +<gentext key="ListofExamples" text="Lista degli Esempi"/> +<gentext key="ListofFigures" text="Lista delle Figure"/> +<gentext key="ListofEquations" text="Lista delle Equazioni"/> +<gentext key="ListofUnknown" text="Lista Sconosciuti"/> + +<gentext key="nav-prev" text="Indietro"/> +<gentext key="nav-prev-sibling" text="Salta indietro"/> +<gentext key="nav-next-sibling" text="Salta avanti"/> +<gentext key="nav-next" text="Avanti"/> +<gentext key="nav-up" text="Risali"/> +<gentext key="nav-home" text="Partenza"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/ja.xml b/docs/docbook/xslt/db2latex/common/ja.xml new file mode 100644 index 0000000000..9180e8e186 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/ja.xml @@ -0,0 +1,104 @@ +<localization language="ja"> + +<!-- +;; Contributors: +;; Karl Critz, kcritz@mathworks.com, contributed the original dbl1ja.ent file +;; Ralf Schleitzer, ralf.schleitzer@ixos.de +--> + +<gentext key="abstract" text="概要"/> +<gentext key="appendix" text="付録"/> +<gentext key="article" text="項目"/> +<gentext key="bibliography" text="参考文献"/> +<gentext key="book" text="ブック"/> +<gentext key="caution" text="注意"/> +<gentext key="caution" text="注意"/> +<gentext key="chapter" text="章"/> +<gentext key="copyright" text="製作著作"/> +<gentext key="dedication" text="謝辞"/> +<gentext key="edition" text="編集"/> +<gentext key="equation" text="式"/> +<gentext key="example" text="例"/> +<gentext key="figure" text="図"/> +<gentext key="glosssee" text="参考"/> +<gentext key="glossseealso" text="参考"/> +<gentext key="glossary" text="用語集"/> +<gentext key="important" text="重要項目"/> +<gentext key="isbn" text="䥓䉎"/> +<gentext key="important" text="重要項目"/> +<gentext key="index" text="目次"/> +<gentext key="legalnotice" text=""/> +<gentext key="msgaud" text="䅵摩敮捥"/> +<gentext key="msglevel" text="レベル"/> +<gentext key="msgorig" text="オリジナル"/> +<gentext key="note" text="注意"/> +<gentext key="note" text="注意"/> +<gentext key="part" text="パート"/> +<gentext key="preface" text="序文"/> +<gentext key="procedure" text="手順"/> +<gentext key="published" text="発行"/> +<gentext key="refname" text="名前"/> +<gentext key="reference" text="参考"/> +<gentext key="revision" text="改訂"/> +<gentext key="revhistory" text="改訂履歴"/> +<gentext key="section" text="節"/> +<gentext key="see" text="参考"/> +<gentext key="seealso" text="参考"/> +<gentext key="set" text="設定"/> +<gentext key="setindex" text="目次設定"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="ステップ"/> +<gentext key="tip" text="ティップ"/> +<gentext key="table" text="表"/> +<gentext key="tip" text="ティップ"/> +<gentext key="warning" text="警告"/> +<gentext key="warning" text="警告"/> +<gentext key="appendix" text="付録"/> +<gentext key="chapter" text="章"/> +<gentext key="section" text="節"/> +<gentext key="sidebar" text="サイドバー"/> +<gentext key="step" text="ステップ"/> +<gentext key="seealso" text="参考"/> + +<gentext key="TableofContents" text="目次"/> +<gentext key="in" text="日付"/> +<gentext key="by" text=":"/> +<gentext key="Edited" text="作者"/> +<gentext key="Editedby" text="26䕤楴㬠♢礻"/> +<gentext key="and" text="、"/> +<gentext key="Notes" text="注意"/> +<gentext key="TableNotes" text="注意"/> +<gentext key="nonexistantelement" text="要素が存在しません"/> +<gentext key="Pgs" text="偧献"/> +<gentext key="unsupported" text="サポートしません"/> +<gentext key="xrefto" text="78牥映瑯"/> +<gentext key="unexpectedelementname" text="不明な要素名"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="表リスト"/> +<gentext key="ListofExamples" text="例題リスト"/> +<gentext key="ListofFigures" text="Figureリスト"/> +<gentext key="ListofEquations" text="式リスト"/> +<gentext key="ListofUnknown" text="不明リスト"/> + +<gentext key="nav-prev" text="前のページ"/> +<gentext key="nav-prev-sibling" text="Fast Backward"/> +<gentext key="nav-next-sibling" text="Fast Forward"/> +<gentext key="nav-next" text="次のページ"/> +<gentext key="nav-up" text="Up"/> +<gentext key="nav-home" text="Home"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/ko.xml b/docs/docbook/xslt/db2latex/common/ko.xml new file mode 100644 index 0000000000..06dd7cb217 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/ko.xml @@ -0,0 +1,96 @@ +<localization language="ko"> + +<!-- ;; by Park Yong Joo (yongjoo@kldp.org) --> + +<gentext key="abstract" text="초록"/> +<gentext key="answer" text="답변:"/> +<gentext key="appendix" text="부록"/> +<gentext key="article" text="문서"/> +<gentext key="bibliography" text="서지사항"/> +<gentext key="book" text="책"/> +<gentext key="caution" text="경고!"/> +<gentext key="chapter" text=""/> +<gentext key="colophon" text="판권"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="바치는 글"/> +<gentext key="edition" text="개정판"/> +<gentext key="equation" text="수식"/> +<gentext key="example" text="예"/> +<gentext key="figure" text="그림"/> +<gentext key="glosssee" text="살펴볼 내용"/> +<gentext key="glossseealso" text="다른 살펴볼 내용"/> +<gentext key="glossary" text="용어해설"/> +<gentext key="important" text="[중요]"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="중요"/> +<gentext key="index" text="색인"/> +<gentext key="legalnotice" text="법적 공지"/> +<gentext key="msgaud" text="듣기"/> +<gentext key="msglevel" text="레벨"/> +<gentext key="msgorig" text="원천"/> +<gentext key="note" text="참고"/> +<gentext key="part" text="부분"/> +<gentext key="preface" text="서문"/> +<gentext key="procedure" text="순서"/> +<gentext key="published" text="출판"/> +<gentext key="question" text="답변:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="참고문헌"/> +<gentext key="refname" text="제목"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="요약"/> +<gentext key="revision" text="교정"/> +<gentext key="revhistory" text="교정 과정"/> +<gentext key="section" text=""/> +<gentext key="see" text="살펴볼 내용"/> +<gentext key="seealso" text="[살펴볼 다른 내용]"/> +<gentext key="set" text="전집"/> +<gentext key="setindex" text="전집 색인"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="단계"/> +<gentext key="table" text="표"/> +<gentext key="tip" text="작은 정보"/> +<gentext key="warning" text="주의"/> + +<gentext key="TableofContents" text="차례"/> +<gentext key="in" text="-"/> +<gentext key="by" text="글쓴이 : "/> +<gentext key="Edited" text="편집"/> +<gentext key="Editedby" text="편집 : "/> +<gentext key="and" text="그리고"/> +<gentext key="Notes" text="주석"/> +<gentext key="TableNotes" text="참고"/> +<gentext key="nonexistantelement" text="존재하지 않는 기초요소입니다"/> +<gentext key="Pgs" text="Pgs."/> +<gentext key="unsupported" text="지원되지 않습니다"/> +<gentext key="xrefto" text="이 곳을 참조하세요 : "/> +<gentext key="unexpectedelementname" text="알 수 없는 기초요소 이름입니다"/> +<gentext key="Revisedby" text="교정 : "/> + +<gentext key="ListofTables" text="표 목록"/> +<gentext key="ListofExamples" text="예 목록"/> +<gentext key="ListofFigures" text="그림 목록"/> +<gentext key="ListofEquations" text="수식 목록"/> +<gentext key="ListofUnknown" text="기타 목록"/> + +<gentext key="nav-prev" text="Prev"/> +<gentext key="nav-prev-sibling" text="Fast Backward"/> +<gentext key="nav-next-sibling" text="Fast Forward"/> +<gentext key="nav-next" text="Next"/> +<gentext key="nav-up" text="Up"/> +<gentext key="nav-home" text="Home"/> + +<dingbat key="startquote" text='“'/> +<dingbat key="endquote" text='”'/> +<dingbat key="nestedstartquote" text="`"/> +<dingbat key="nestedendquote" text="'"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/l10n.dtd b/docs/docbook/xslt/db2latex/common/l10n.dtd new file mode 100644 index 0000000000..0336baf208 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/l10n.dtd @@ -0,0 +1,25 @@ +<!ELEMENT internationalization (localization+)> + +<!ELEMENT localization (gentext|dingbat|xref)*> +<!ATTLIST localization + language CDATA #REQUIRED +> + +<!ELEMENT gentext EMPTY> +<!ATTLIST gentext + key CDATA #REQUIRED + text CDATA #REQUIRED +> + +<!ELEMENT dingbat EMPTY> +<!ATTLIST dingbat + key CDATA #REQUIRED + text CDATA #REQUIRED +> + +<!ELEMENT xref EMPTY> +<!ATTLIST xref + element CDATA #REQUIRED + text CDATA #REQUIRED +> + diff --git a/docs/docbook/xslt/db2latex/common/l10n.xml b/docs/docbook/xslt/db2latex/common/l10n.xml new file mode 100644 index 0000000000..a7ef90e905 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/l10n.xml @@ -0,0 +1,59 @@ +<?xml version='1.0'?> +<!DOCTYPE internationalization SYSTEM "l10n.dtd" [ +<!ENTITY ca SYSTEM "ca.xml"> +<!ENTITY cs SYSTEM "cs.xml"> +<!ENTITY da SYSTEM "da.xml"> +<!ENTITY de SYSTEM "de.xml"> +<!ENTITY el SYSTEM "el.xml"> +<!ENTITY en SYSTEM "en.xml"> +<!ENTITY es SYSTEM "es.xml"> +<!ENTITY et SYSTEM "et.xml"> +<!ENTITY fi SYSTEM "fi.xml"> +<!ENTITY fr SYSTEM "fr.xml"> +<!ENTITY hu SYSTEM "hu.xml"> +<!ENTITY id SYSTEM "id.xml"> +<!ENTITY it SYSTEM "it.xml"> +<!ENTITY ja SYSTEM "ja.xml"> +<!ENTITY ko SYSTEM "ko.xml"> +<!ENTITY nl SYSTEM "nl.xml"> +<!ENTITY no SYSTEM "no.xml"> +<!ENTITY pl SYSTEM "pl.xml"> +<!ENTITY pt SYSTEM "pt.xml"> +<!ENTITY pt_br SYSTEM "pt_br.xml"> +<!ENTITY ro SYSTEM "ro.xml"> +<!ENTITY ru SYSTEM "ru.xml"> +<!ENTITY sk SYSTEM "sk.xml"> +<!ENTITY sl SYSTEM "sl.xml"> +<!ENTITY sv SYSTEM "sv.xml"> +<!ENTITY zh_cn SYSTEM "zh_cn.xml"> +<!ENTITY zh_tw SYSTEM "zh_tw.xml"> +]> +<internationalization> +&ca; +&cs; +&da; +&de; +⪙ +&en; +&es; +&et; +&fi; +&fr; +&hu; +&id; +⁢ +&ja; +&ko; +&nl; +&no; +&pl; +&pt; +&pt_br; +&ro; +&ru; +&sk; +&sl; +&sv; +&zh_cn; +&zh_tw; +</internationalization> diff --git a/docs/docbook/xslt/db2latex/common/l10n.xsl b/docs/docbook/xslt/db2latex/common/l10n.xsl new file mode 100644 index 0000000000..df07f4efe8 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/l10n.xsl @@ -0,0 +1,249 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version='1.0'> + +<!-- ******************************************************************** + $Id: l10n.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + ******************************************************************** + + Derived from the official XSL DocBook Stylesheet distribution. + See http://nwalsh.com/docbook/xsl/ for copyright and other information. + + This file contains localization templates (for internationalization) + ******************************************************************** --> + + + + +<xsl:param name="l10n.xml" select="document('../common/l10n.xml')"/> +<xsl:param name="l10n.gentext.language" select="''"/> +<xsl:param name="l10n.gentext.default.language" select="'en'"/> +<xsl:param name="l10n.gentext.use.xref.language" select="false()"/> + + + + + +<xsl:template name="l10n.language"> + <xsl:param name="target" select="."/> + <xsl:param name="xref-context" select="false()"/> + + <xsl:variable name="language"> + <xsl:choose> + <xsl:when test="$l10n.gentext.language != ''"> + <xsl:value-of select="$l10n.gentext.language"/> + </xsl:when> + + <xsl:when test="$xref-context or $l10n.gentext.use.xref.language"> + <xsl:variable name="lang-attr" + select="($target/ancestor-or-self::*/@lang + |$target/ancestor-or-self::*/@xml:lang)[last()]"/> + <xsl:choose> + <xsl:when test="string($lang-attr) = ''"> + <xsl:value-of select="$l10n.gentext.default.language"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$lang-attr"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + + <xsl:otherwise> + <xsl:variable name="lang-attr" + select="(ancestor-or-self::*/@lang + |ancestor-or-self::*/@xml:lang)[last()]"/> + <xsl:choose> + <xsl:when test="string($lang-attr) = ''"> + <xsl:value-of select="$l10n.gentext.default.language"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$lang-attr"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:choose> + <xsl:when test="contains($language,'-')"> + <xsl:value-of select="substring-before($language,'-')"/> + <xsl:text>_</xsl:text> + <xsl:value-of select="substring-after($language,'-')"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$language"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="gentext.xref.text"> + <xsl:param name="element.name" select="name(.)"/> + <xsl:param name="default"></xsl:param> + <xsl:param name="lang"> + <xsl:call-template name="l10n.language"/> + </xsl:param> + + <xsl:variable name="l10n.text"> + <xsl:value-of select="($l10n.xml/internationalization/localization[@language=$lang]/xref[@element=$element.name])[1]/@text"/> + </xsl:variable> + + <xsl:choose> + <xsl:when test="$l10n.text=''"> + <xsl:choose> + <xsl:when test="$default=''"> + <xsl:message> + <xsl:text>No "</xsl:text> + <xsl:value-of select="$lang"/> + <xsl:text>" cross reference text for "</xsl:text> + <xsl:value-of select="$element.name"/> + <xsl:text>" exists and no default specified.</xsl:text> + </xsl:message> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$default"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$l10n.text"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="gentext"> + <xsl:param name="key" select="local-name(.)"/> + <xsl:param name="lang"> + <xsl:call-template name="l10n.language"/> + </xsl:param> + + <xsl:variable name="l10n.gentext" + select="($l10n.xml/internationalization/localization[@language=$lang]/gentext[@key=$key])[1]"/> + + <xsl:variable name="l10n.name"> + <xsl:value-of select="$l10n.gentext/@text"/> + </xsl:variable> + + <xsl:choose> + <xsl:when test="count($l10n.gentext)=0"> + <xsl:message> + <xsl:text>No "</xsl:text> + <xsl:value-of select="$lang"/> + <xsl:text>" localization of "</xsl:text> + <xsl:value-of select="$key"/> + <xsl:text>" exists; using "en".</xsl:text> + </xsl:message> + + <xsl:value-of select="($l10n.xml/internationalization/localization[@language='en']/gentext[@key=$key])[1]/@text"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$l10n.name"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="gentext.element.name"> + <xsl:param name="element.name" select="name(.)"/> + <xsl:param name="lang"> + <xsl:call-template name="l10n.language"/> + </xsl:param> + + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="$element.name"/> + <xsl:with-param name="lang" select="$lang"/> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.space"> + <xsl:text> </xsl:text> +</xsl:template> + +<xsl:template name="gentext.edited.by"> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name">Editedby</xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.by"> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name">by</xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.dingbat"> + <xsl:param name="dingbat">bullet</xsl:param> + <xsl:param name="lang"> + <xsl:call-template name="l10n.language"/> + </xsl:param> + + <xsl:variable name="l10n.dingbat"> + <xsl:value-of select="($l10n.xml/internationalization/localization[@language=$lang]/dingbat[@key=$dingbat])[1]/@text"/> + </xsl:variable> + + <xsl:choose> + <xsl:when test="$l10n.dingbat=''"> + <xsl:message> + <xsl:text>No "</xsl:text> + <xsl:value-of select="$lang"/> + <xsl:text>" localization of dingbat </xsl:text> + <xsl:value-of select="$dingbat"/> + <xsl:text> exists; using "en".</xsl:text> + </xsl:message> + + <xsl:value-of select="($l10n.xml/internationalization/localization[@language='en']/dingbat[@key=$dingbat])[1]/@text"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$l10n.dingbat"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="gentext.startquote"> + <xsl:call-template name="gentext.dingbat"> + <xsl:with-param name="dingbat">startquote</xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.endquote"> + <xsl:call-template name="gentext.dingbat"> + <xsl:with-param name="dingbat">endquote</xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.nestedstartquote"> + <xsl:call-template name="gentext.dingbat"> + <xsl:with-param name="dingbat">nestedstartquote</xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.nestedendquote"> + <xsl:call-template name="gentext.dingbat"> + <xsl:with-param name="dingbat">nestedendquote</xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.nav.prev"> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name">nav-prev</xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.nav.next"> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name">nav-next</xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.nav.home"> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name">nav-home</xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="gentext.nav.up"> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name">nav-up</xsl:with-param> + </xsl:call-template> +</xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/common/nl.xml b/docs/docbook/xslt/db2latex/common/nl.xml new file mode 100644 index 0000000000..56ead54d30 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/nl.xml @@ -0,0 +1,105 @@ +<localization language="nl"> + +<!-- Updated by Frederik Fouvry, fouvry@essex.ac.uk --> +<!-- Vincent Partington, vincent.partington@graddelt.com --> +<!-- Updated by Erwin Bolwidt, ejb@tryllian.com, august 2000 --> + +<gentext key="abstract" text="Overzicht"/> +<gentext key="answer" text="A:"/> +<gentext key="appendix" text="Aanhangsel"/> +<gentext key="article" text="Artikel"/> +<gentext key="bibliography" text="Bibliografie"/> +<gentext key="book" text="Boek"/> +<gentext key="caution" text="Waarschuwing"/> +<gentext key="chapter" text="Hoofdstuk"/> +<gentext key="colophon" text="Colofon"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Opdracht"/> +<gentext key="edition" text="Uitgave"/> +<gentext key="equation" text="Vergelijking"/> +<gentext key="example" text="Voorbeeld"/> +<gentext key="figure" text="Figuur"/> +<gentext key="glossary" text="Woordenlijst"/> +<gentext key="glosssee" text="Zie"/> +<gentext key="glossseealso" text="Zie ook"/> +<gentext key="important" text="Belangrijk"/> +<gentext key="index" text="Index"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="legalnotice" text="Juridische mededeling"/> +<gentext key="msgaud" text="Doelgroep"/> +<gentext key="msglevel" text="Ernst"/> +<gentext key="msgorig" text="Afkomst"/> +<gentext key="note" text="N.B."/> +<gentext key="part" text="Deel"/> +<gentext key="preface" text="Inleiding"/> +<gentext key="procedure" text="Procedure"/> +<gentext key="published" text="Gepubliceerd"/> +<gentext key="pubdate" text="Gepubliceerd"/> +<gentext key="question" text="V:"/> +<gentext key="refentry" text="Referentielemma"/> +<gentext key="reference" text="Referentie"/> +<gentext key="refname" text="Referentienaam"/> +<gentext key="refsection" text="Referentieparagraaf"/> +<gentext key="refsynopsisdiv" text="Samenvatting"/> +<gentext key="revhistory" text="Revisie verloop"/> +<gentext key="revision" text="Revisie"/> +<gentext key="section" text="Sectie"/> +<gentext key="sect1" text="Sectie"/> +<gentext key="sect2" text="Sectie"/> +<gentext key="sect3" text="Sectie"/> +<gentext key="sect4" text="Sectie"/> +<gentext key="sect5" text="Sectie"/> +<gentext key="see" text="Zie"/> +<gentext key="seealso" text="Zie ook"/> +<gentext key="set" text="Verzameling"/> +<gentext key="setindex" text="Hoofdindex"/> +<gentext key="sidebar" text="Excursie"/> +<gentext key="step" text="Stap"/> +<gentext key="table" text="Tabel"/> +<gentext key="tip" text="Tip"/> +<gentext key="warning" text="Waarschuwing"/> + +<gentext key="TableofContents" text="Inhoudsopgave"/> +<gentext key="in" text="in"/> +<gentext key="by" text="door"/> +<gentext key="Edited" text="Redactie"/> +<gentext key="Editedby" text="Redactie door"/> +<gentext key="and" text="en"/> +<gentext key="Notes" text="Opmerkingen"/> +<gentext key="TableNotes" text="Opmerkingen"/> +<gentext key="nonexistantelement" text="niet-bestaand element"/> +<gentext key="Pgs" text="blz."/> +<gentext key="unsupported" text="niet ondersteund"/> +<gentext key="xrefto" text="verwijzing naar"/> +<gentext key="unexpectedelementname" text="Onverwachte naam van element"/> +<gentext key="Revisedby" text="Herzien door:"/> + +<gentext key="ListofTables" text="Lijst van Tabellen"/> +<gentext key="ListofExamples" text="Lijst van Voorbeelden"/> +<gentext key="ListofFigures" text="Lijst van Figuren"/> +<gentext key="ListofEquations" text="Lijst van Vergelijkingen"/> +<gentext key="ListofUnknown" text="Lijst van Onbekends"/> + +<gentext key="nav-prev" text="Vorige"/> +<gentext key="nav-prev-sibling" text="Snel terug"/> +<gentext key="nav-next-sibling" text="Snel vooruit"/> +<gentext key="nav-next" text="Volgende"/> +<gentext key="nav-up" text="Omhoog"/> +<gentext key="nav-home" text="Begin"/> + +<gentext key="the section called" text="de sectie genaamd"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="preface" text="%t"/> +<xref element="bibliography" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/no.xml b/docs/docbook/xslt/db2latex/common/no.xml new file mode 100644 index 0000000000..b3aba44fde --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/no.xml @@ -0,0 +1,97 @@ +<localization language="no"> + +<gentext key="abstract" text="Abstract"/> +<gentext key="appendix" text="Tillegg"/> +<gentext key="article" text=""/> +<gentext key="bibliography" text="Bibliografi"/> +<gentext key="book" text=""/> +<gentext key="caution" text="OBS"/> +<gentext key="caution" text="Obs"/> +<gentext key="chapter" text="Kapittel"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dedikasjon"/> +<gentext key="edition" text=""/> +<gentext key="equation" text="Formel"/> +<gentext key="example" text="Eksempel"/> +<gentext key="figure" text="Figur"/> +<gentext key="glosssee" text="Se"/> +<gentext key="glossseealso" text="Se Også"/> +<gentext key="glossary" text="Ordliste"/> +<gentext key="important" text="VIKTIG"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Viktig"/> +<gentext key="index" text="Indeks"/> +<gentext key="legalnotice" text=""/> +<gentext key="msgaud" text="Publikum"/> +<gentext key="msglevel" text="Nivå"/> +<gentext key="msgorig" text="Opphav"/> +<gentext key="note" text="NOTAT"/> +<gentext key="note" text="Notat"/> +<gentext key="part" text="Del"/> +<gentext key="preface" text="Forord"/> +<gentext key="procedure" text="Prosedyre"/> +<gentext key="published" text=""/> +<gentext key="refname" text="Navn"/> +<gentext key="reference" text="Referanse"/> +<gentext key="revision" text="Revisjon"/> +<gentext key="revhistory" text="Revisjonshistorie"/> +<gentext key="section" text="Seksjon"/> +<gentext key="see" text="Se"/> +<gentext key="seealso" text="Se Også"/> +<gentext key="set" text=""/> +<gentext key="setindex" text="Indeks"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Steg"/> +<gentext key="tip" text="TIPS"/> +<gentext key="table" text="Tabell"/> +<gentext key="tip" text="Tips"/> +<gentext key="warning" text="ADVARSEL"/> +<gentext key="warning" text="Advarsel"/> +<gentext key="appendix" text="Tillegg"/> +<gentext key="chapter" text="Kapittel"/> +<gentext key="section" text="seksjon"/> +<gentext key="step" text="steg"/> +<gentext key="seealso" text="Se også"/> + +<gentext key="TableofContents" text="Innholdsfortegnelse"/> +<gentext key="in" text="i"/> +<gentext key="by" text="av"/> +<gentext key="Edited" text="Redigert"/> +<gentext key="Editedby" text="Redigert av"/> +<gentext key="and" text="og"/> +<gentext key="Notes" text="Sluttnotater"/> +<gentext key="TableNotes" text="Notater"/> +<gentext key="nonexistantelement" text="ikke-eksisterende element"/> +<gentext key="Pgs" text="Sdr."/> +<gentext key="unsupported" text="ikke st⊘ttet"/> +<gentext key="xrefto" text="xref til"/> +<gentext key="unexpectedelementname" text="UVENTET-ELEMENTNAVN"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Tabelloversikt"/> +<gentext key="ListofExamples" text="Eksempeloversikt"/> +<gentext key="ListofFigures" text="Figuroversikt"/> +<gentext key="ListofEquations" text="Formeloversikt"/> +<gentext key="ListofUnknown" text="???-oversikt"/> + +<gentext key="nav-prev" text="Forrige"/> +<gentext key="nav-prev-sibling" text="Raskt Bakover"/> +<gentext key="nav-next-sibling" text="Raskt Fremover"/> +<gentext key="nav-next" text="Neste"/> +<gentext key="nav-up" text="Opp"/> +<gentext key="nav-home" text="Hjem"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/pl.xml b/docs/docbook/xslt/db2latex/common/pl.xml new file mode 100644 index 0000000000..8582bbebe8 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/pl.xml @@ -0,0 +1,96 @@ +<localization language="pl"> + +<gentext key="abstract" text="Abstrakt"/> +<gentext key="appendix" text="Dodatek"/> +<gentext key="article" text="Article"/> +<gentext key="bibliography" text="Bibliografia"/> +<gentext key="book" text="Book"/> +<gentext key="caution" text="PRZYPADEK"/> +<gentext key="caution" text="Przypadek"/> +<gentext key="chapter" text="Rozdzia³"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dedykacja"/> +<gentext key="edition" text="Wydanie"/> +<gentext key="equation" text="Równanie"/> +<gentext key="example" text="Przyk³ad"/> +<gentext key="figure" text="Rysunek"/> +<gentext key="glosssee" text="Patrz"/> +<gentext key="glossseealso" text="Patrz te¿"/> +<gentext key="glossary" text="Glossary"/> +<gentext key="important" text="WA¯NE"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="WA¯NE"/> +<gentext key="index" text="Indeks"/> +<gentext key="legalnotice" text=""/> +<gentext key="msgaud" text="Odbiorcy"/> +<gentext key="msglevel" text="Poziom"/> +<gentext key="msgorig" text="Nadawca"/> +<gentext key="note" text="NOTATKA"/> +<gentext key="note" text="Notatka"/> +<gentext key="part" text="Czê¶æ"/> +<gentext key="preface" text="Przedmowa"/> +<gentext key="procedure" text="Procedura"/> +<gentext key="published" text="Data wydania"/> +<gentext key="refname" text="Nazwa"/> +<gentext key="reference" text="Materia³y ¼ród³owe"/> +<gentext key="revision" text="Zmiana"/> +<gentext key="revhistory" text="Historia zmian"/> +<gentext key="section" text="Sekcja"/> +<gentext key="see" text="Patrz"/> +<gentext key="seealso" text="Patrz Te¿"/> +<gentext key="set" text="Set"/> +<gentext key="setindex" text="Indeks"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="krok"/> +<gentext key="tip" text="Podpowied¼"/> +<gentext key="table" text="Tabela"/> +<gentext key="tip" text="Podpowied¼"/> +<gentext key="warning" text="Ostrze¿enie"/> +<gentext key="warning" text="Ostrze¿enie"/> +<gentext key="appendix" text="dodatek"/> +<gentext key="chapter" text="rozdzia³"/> +<gentext key="section" text="sekcja"/> +<gentext key="step" text="krok"/> +<gentext key="seealso" text="Patrz te¿"/> + +<gentext key="TableofContents" text="Spis tre¶ci"/> +<gentext key="in" text="w"/> +<gentext key="by" text=""/> +<gentext key="Editedby" text="Redakcja: "/> +<gentext key="and" text="i"/> +<gentext key="Notes" text="Przypisy"/> +<gentext key="TableNotes" text="Przypisy"/> +<gentext key="nonexistantelement" text="nie istniej±cy element"/> +<gentext key="Pgs" text="stron"/> +<gentext key="unsupported" text="nie wspierany"/> +<gentext key="xrefto" text="xref to"/> +<gentext key="unexpectedelementname" text="Unexpected element name"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Spis tabel"/> +<gentext key="ListofExamples" text="Spis przyk³adów"/> +<gentext key="ListofFigures" text="Spis rysunków"/> +<gentext key="ListofEquations" text="Spis równañ"/> +<gentext key="ListofUnknown" text="Spis ???"/> + +<gentext key="nav-prev" text="Poprzedni"/> +<gentext key="nav-prev-sibling" text="Poprzedni rozdzia³"/> +<gentext key="nav-next-sibling" text="Nastêpny rozdzia³"/> +<gentext key="nav-next" text="Nastêpny"/> +<gentext key="nav-up" text="Pocz±tek rozdzia³u"/> +<gentext key="nav-home" text="Spis tre¶ci"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/pt.xml b/docs/docbook/xslt/db2latex/common/pt.xml new file mode 100644 index 0000000000..af0c22f4b4 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/pt.xml @@ -0,0 +1,98 @@ +<localization language="pt"> + +<gentext key="abstract" text="Resumo"/> +<gentext key="appendix" text="Apêndice"/> +<gentext key="article" text="Article"/> +<gentext key="bibliography" text="Bibliografia"/> +<gentext key="book" text="Book"/> +<gentext key="caution" text="CAUTELA"/> +<gentext key="caution" text="Cautela"/> +<gentext key="chapter" text="Capítulo"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dedicatória"/> +<gentext key="edition" text="Edição"/> +<gentext key="equation" text="Equação"/> +<gentext key="example" text="Exemplo"/> +<gentext key="figure" text="Figura"/> +<gentext key="glosssee" text="Ver"/> +<gentext key="glossseealso" text="Ver Também"/> +<gentext key="glossary" text="Glossario"/> +<gentext key="important" text="IMPORTANTE"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Importante"/> +<gentext key="index" text="Index"/> +<gentext key="legalnotice" text=""/> +<gentext key="msgaud" text="Audiência"/> +<gentext key="msglevel" text="Nível"/> +<gentext key="msgorig" text="Origem"/> +<gentext key="note" text="NOTA"/> +<gentext key="note" text="Nota"/> +<gentext key="part" text="Parte"/> +<gentext key="preface" text="Prefácio"/> +<gentext key="procedure" text="Procedimento"/> +<gentext key="pubdate" text="Editado"/> +<gentext key="published" text="Published"/> +<gentext key="refname" text="Nome"/> +<gentext key="reference" text="Referência"/> +<gentext key="revision" text="Revisão"/> +<gentext key="revhistory" text="Hitorial de Revisões"/> +<gentext key="section" text="Secção"/> +<gentext key="see" text="Ver"/> +<gentext key="seealso" text="Ver Também"/> +<gentext key="set" text="Set"/> +<gentext key="setindex" text="Set Index"/> +<gentext key="sidebar" text="Sidebar"/> +<gentext key="step" text="Passo"/> +<gentext key="tip" text="DICA"/> +<gentext key="table" text="Tabela"/> +<gentext key="tip" text="Dica"/> +<gentext key="warning" text="ATENÇÃO"/> +<gentext key="warning" text="Atenção"/> +<gentext key="appendix" text="apêndice"/> +<gentext key="chapter" text="capítulo"/> +<gentext key="section" text="secção"/> +<gentext key="step" text="passo"/> +<gentext key="seealso" text="ver também"/> + +<gentext key="TableofContents" text="Índice"/> +<gentext key="in" text=""/> +<gentext key="by" text="por"/> +<gentext key="Edited" text="Editado"/> +<gentext key="Editedby" text="Editado por"/> +<gentext key="and" text="e"/> +<gentext key="Notes" text="Notas"/> +<gentext key="TableNotes" text="Notas"/> +<gentext key="nonexistantelement" text="non-existant element"/> +<gentext key="Pgs" text="Páginas"/> +<gentext key="unsupported" text="unsupported"/> +<gentext key="xrefto" text="xref to"/> +<gentext key="unexpectedelementname" text="Unexpected element name"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Lista de Tabelas"/> +<gentext key="ListofExamples" text="Lista de Exemplos"/> +<gentext key="ListofFigures" text="Lista de Figuras"/> +<gentext key="ListofEquations" text="Lista de Equações"/> +<gentext key="ListofUnknown" text="List of ???"/> + +<gentext key="nav-prev" text="Prev"/> +<gentext key="nav-prev-sibling" text="Fast Backward"/> +<gentext key="nav-next-sibling" text="Fast Forward"/> +<gentext key="nav-next" text="Next"/> +<gentext key="nav-up" text="Up"/> +<gentext key="nav-home" text="Home"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/pt_br.xml b/docs/docbook/xslt/db2latex/common/pt_br.xml new file mode 100644 index 0000000000..cf63d1ebf2 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/pt_br.xml @@ -0,0 +1,98 @@ +<localization language="pt_br"> + +<gentext key="abstract" text="Resumo"/> +<gentext key="appendix" text="Apêndice"/> +<gentext key="article" text="Artigo"/> +<gentext key="bibliography" text="Bibliografia"/> +<gentext key="book" text="Livro"/> +<gentext key="caution" text="CUIDADO"/> +<gentext key="caution" text="Cuidado"/> +<gentext key="chapter" text="Capítulo"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dedicatória"/> +<gentext key="edition" text="Edição"/> +<gentext key="equation" text="Equação"/> +<gentext key="example" text="Exemplo"/> +<gentext key="figure" text="Figura"/> +<gentext key="glosssee" text="Ver"/> +<gentext key="glossseealso" text="Ver Também"/> +<gentext key="glossary" text="Glossário"/> +<gentext key="important" text="IMPORTANTE"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Importante"/> +<gentext key="index" text="Índice Remissivo"/> +<gentext key="legalnotice" text="Nota Legal"/> +<gentext key="msgaud" text="Audiência"/> +<gentext key="msglevel" text="Nível"/> +<gentext key="msgorig" text="Origem"/> +<gentext key="note" text="NOTA"/> +<gentext key="note" text="Nota"/> +<gentext key="part" text="Parte"/> +<gentext key="preface" text="Prefácio"/> +<gentext key="procedure" text="Procedimento"/> +<gentext key="pubdate" text="Data de Publicação"/> +<gentext key="published" text="Publicado"/> +<gentext key="refname" text="Nome"/> +<gentext key="reference" text="Referência"/> +<gentext key="revision" text="Revisão"/> +<gentext key="revhistory" text="Histórico de Revisões"/> +<gentext key="section" text="Secção"/> +<gentext key="see" text="Ver"/> +<gentext key="seealso" text="Ver Também"/> +<gentext key="set" text="Conjunto"/> +<gentext key="setindex" text="Índice do Conjunto"/> +<gentext key="sidebar" text="Quadro Lateral"/> +<gentext key="step" text="Passo"/> +<gentext key="tip" text="DICA"/> +<gentext key="table" text="Tabela"/> +<gentext key="tip" text="Dica"/> +<gentext key="warning" text="ATENÇÃO"/> +<gentext key="warning" text="Atenção"/> +<gentext key="appendix" text="apêndice"/> +<gentext key="chapter" text="capítulo"/> +<gentext key="section" text="secção"/> +<gentext key="step" text="passo"/> +<gentext key="seealso" text="ver também"/> + +<gentext key="TableofContents" text="Índice"/> +<gentext key="in" text=""/> +<gentext key="by" text="por"/> +<gentext key="Edited" text="Editado"/> +<gentext key="Editedby" text="Editado por"/> +<gentext key="Revisedby" text="Revised by: "/> <!-- en --> +<gentext key="and" text="e"/> +<gentext key="Notes" text="Notas"/> +<gentext key="TableNotes" text="Notas"/> +<gentext key="nonexistantelement" text="elemento inexistente"/> +<gentext key="Pgs" text="Páginas"/> +<gentext key="unsupported" text="não suportado"/> +<gentext key="xrefto" text="referência para"/> +<gentext key="unexpectedelementname" text="Nome de elemento inesperado"/> + +<gentext key="ListofTables" text="Lista de Tabelas"/> +<gentext key="ListofExamples" text="Lista de Exemplos"/> +<gentext key="ListofFigures" text="Lista de Figuras"/> +<gentext key="ListofEquations" text="Lista de Equações"/> +<gentext key="ListofUnknown" text="Lista de ???"/> + +<gentext key="nav-prev" text="Anterior"/> +<gentext key="nav-prev-sibling" text="Início"/> +<gentext key="nav-next-sibling" text="Fim"/> +<gentext key="nav-next" text="Próxima"/> +<gentext key="nav-up" text="Acima"/> +<gentext key="nav-home" text="Principal"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/ro.xml b/docs/docbook/xslt/db2latex/common/ro.xml new file mode 100644 index 0000000000..a59ffd8217 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/ro.xml @@ -0,0 +1,104 @@ +<localization language="ro"> + +<gentext key="abstract" text="Rezumat"/> +<gentext key="appendix" text="Anexa"/> +<gentext key="article" text="Articol"/> +<gentext key="bibliography" text="Bibliografie"/> +<gentext key="book" text="Carte"/> +<gentext key="caution" text="ATENÞIE"/> +<gentext key="caution" text="Atenþie"/> +<gentext key="chapter" text="Cap."/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dedicaþie"/> +<gentext key="edition" text="Ediþie"/> +<gentext key="equation" text="ecuaþia"/> +<gentext key="example" text="Exemplu"/> +<gentext key="figure" text="Fig."/> +<gentext key="glossary" text="Glosar"/> +<gentext key="glosssee" text="Vezi"/> +<gentext key="glossseealso" text="Vezi şi"/> +<gentext key="important" text="IMPORTANT"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Important"/> +<gentext key="index" text="Index"/> +<gentext key="legalnotice" text=""/> +<gentext key="msgaud" text=""/> +<gentext key="msglevel" text="Nivel"/> +<gentext key="msgorig" text="Origine"/> +<gentext key="note" text="NOTÃ"/> +<gentext key="note" text="Notã"/> +<gentext key="refname" text="Nume"/> +<gentext key="note" text="Notã"/> +<gentext key="part" text="Parte"/> +<gentext key="preface" text="Prefaþã"/> +<gentext key="procedure" text="Procedurã"/> +<gentext key="published" text="Publicat"/> +<gentext key="reference" text="Referinþã"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="Referinþã"/> +<gentext key="refname" text="Name"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="Rezumat"/> +<gentext key="revision" text="Versiune"/> +<gentext key="revhistory" text="Istoricul versiunilor"/> +<gentext key="section" text="Secþiune"/> +<gentext key="see" text="Vezi"/> +<gentext key="seealso" text="Vezi şi"/> +<gentext key="set" text="Set"/> +<gentext key="setindex" text="Index"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Operaþie"/> +<gentext key="tip" text="INDICAÞIE"/> +<gentext key="table" text="Tabel"/> +<gentext key="tip" text="Indicaþie"/> +<gentext key="warning" text="AVERTISMENT"/> +<gentext key="warning" text="Avertisment"/> +<gentext key="appendix" text="anexa"/> +<gentext key="sidebar" text="sidebar"/> +<gentext key="chapter" text="cap."/> +<gentext key="section" text="sec."/> +<gentext key="step" text="operaþiune"/> +<gentext key="seealso" text="Vezi şi"/> + +<gentext key="TableofContents" text="Cuprins"/> +<gentext key="in" text="în"/> +<gentext key="by" text="de"/> +<gentext key="Edited" text="Publicat"/> +<gentext key="Editedby" text="Publicat de"/> +<gentext key="and" text="şi"/> +<gentext key="Notes" text="Note"/> +<gentext key="TableNotes" text="Remarci"/> +<gentext key="nonexistantelement" text="element inexistent"/> +<gentext key="Pgs" text="Pagini"/> +<gentext key="unsupported" text="nerecunoscut de sisitem"/> +<gentext key="xrefto" text="referinþã cãtre"/> +<gentext key="unexpectedelementname" text="Nume de element neaşteptat"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Listã de tabele"/> +<gentext key="ListofExamples" text="Listã de exemple"/> +<gentext key="ListofFigures" text="Listã de figuri"/> +<gentext key="ListofEquations" text="Listã de ecuaþii"/> +<gentext key="ListofUnknown" text="Listã de necunoscute"/> + +<gentext key="nav-prev" text="Prev"/> +<gentext key="nav-prev-sibling" text="Fast Backward"/> +<gentext key="nav-next-sibling" text="Fast Forward"/> +<gentext key="nav-next" text="Next"/> +<gentext key="nav-up" text="Up"/> +<gentext key="nav-home" text="Home"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/ru.xml b/docs/docbook/xslt/db2latex/common/ru.xml new file mode 100644 index 0000000000..a097cd419b --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/ru.xml @@ -0,0 +1,113 @@ +<localization language="ru"> + +<gentext key="abstract" text="Аннотация"/> +<gentext key="appendix" text="Приложение"/> +<gentext key="appendix.abr" text="Прил."/> +<gentext key="article" text="Статья"/> +<gentext key="audience" text="Аудитория"/> +<gentext key="bibliography" text="Литература"/> +<gentext key="book" text="Книга"/> +<gentext key="caution" text="ПРЕДОСТЕРЕЖЕНИЕ"/> +<gentext key="caution" text="Предостережение"/> +<gentext key="chapter" text="Глава"/> +<gentext key="chapter.abr" text="Гл."/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Посвящение"/> +<gentext key="edition" text="Редакция"/> +<gentext key="equation" text="Формула"/> +<gentext key="equation.abr" text="Ф."/> +<gentext key="example" text="Пример"/> +<gentext key="example.abr" text="Прим."/> +<gentext key="figure" text="Рисунок"/> +<gentext key="figure.abr" text="Рис."/> +<gentext key="glossary" text="Глоссарий"/> +<gentext key="important" text="ВАЖНО"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Важно"/> +<gentext key="index" text="Предметный указатель"/> +<gentext key="legalnotice" text="Авторские права"/> +<gentext key="level" text="Уровень"/> +<gentext key="note" text="ЗАМЕЧАНИЕ"/> +<gentext key="name" text="Имя"/> +<gentext key="note" text="Замечание"/> +<gentext key="origin" text="Источник"/> +<gentext key="part" text="Часть"/> +<gentext key="part.abr" text="Ч."/> +<gentext key="preface" text="Предисловие"/> +<gentext key="procedure" text="Процедура"/> +<gentext key="procedure.abr" text="Проц."/> +<gentext key="published" text="Опубликовано"/> +<gentext key="reference" text="Ссылка"/> +<gentext key="revision" text="Издание"/> +<gentext key="history" text="История"/> +<gentext key="revisionhistory" text="История переиздания"/> +<gentext key="section" text="Раздел"/> +<gentext key="section.abr" text="Разд."/> +<gentext key="see" text="См."/> +<gentext key="seealso" text="См. также"/> +<gentext key="seealso" text="См. также"/> +<gentext key="set" text="Подборка"/> +<gentext key="setindex" text="Индекс подборки"/> +<gentext key="sidebar" text="Выделение"/> +<gentext key="step" text="Шаг"/> +<gentext key="tip" text="ПОДСКАЗКА"/> +<gentext key="table" text="Таблица"/> +<gentext key="table.abr" text="Табл."/> +<gentext key="tip" text="Подсказка"/> +<gentext key="warning" text="ВНИМАНИЕ"/> +<gentext key="warning" text="Внимание"/> +<gentext key="appendix" text="приложение"/> +<gentext key="chapter" text="глава"/> +<gentext key="section" text="раздел"/> +<gentext key="step" text="шаг"/> + +<gentext key="TableofContents" text="Содержание"/> +<gentext key="called" text=""/> +<gentext key="in" text="в"/> +<gentext key="by" text=""/> +<gentext key="Edited" text="Под редакцией"/> +<gentext key="Editedby" text="Под редакцией"/> +<gentext key="and" text=""/> +<!-- the list of author names, but "and" in such + lists of Russian books is not traditionally + used (I. Kouznetsov) --> +<gentext key="Notes" text="Примечания"/> +<gentext key="TableNotes" text="Примечания"/> + +<!-- Suggestion of I. Kouznetsov: Error messages are better in English --> + +<gentext key="nonexistantelement" text="non-existant element"/> +<gentext key="the" text=""/> +<gentext key="Pgs" text="Стр."/> +<gentext key="unsupported" text="unsupported"/> +<gentext key="xrefto" text="xref to"/> +<gentext key="unexpectedelementname" text="unexpected element name"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Список таблиц"/> +<gentext key="ListofExamples" text="Список примеров"/> +<gentext key="ListofFigures" text="Список иллюстраций"/> +<gentext key="ListofEquations" text="Список формул"/> +<gentext key="ListofUnknown" text="Неопределенный список"/> + +<gentext key="nav-prev" text="Пред."/> +<gentext key="nav-prev-sibling" text="Пред. Подраздел"/> +<gentext key="nav-next-sibling" text="След. Подраздел"/> +<gentext key="nav-next" text="След."/> +<gentext key="nav-up" text="Уровень выше"/> +<gentext key="nav-home" text="начало"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/sk.xml b/docs/docbook/xslt/db2latex/common/sk.xml new file mode 100644 index 0000000000..0c2fbc85fb --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/sk.xml @@ -0,0 +1,104 @@ +<localization language="sk"> + +<gentext key="abstract" text="Obsah"/> +<gentext key="answer" text="A:"/> +<gentext key="appendix" text="Dodatok"/> +<gentext key="article" text="Článok"/> +<gentext key="bibliography" text="Bibliografia"/> +<gentext key="book" text="Kniha"/> +<gentext key="caution" text="VÝSTRAHA"/> +<gentext key="caution" text="Výstraha"/> +<gentext key="chapter" text="Kapitola"/> +<gentext key="colophon" text="Tiráž"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Venovanie"/> +<gentext key="edition" text="Vydanie"/> +<gentext key="equation" text="Rovnice"/> +<gentext key="example" text="Príklad"/> +<gentext key="figure" text="Obrázok"/> +<gentext key="glosssee" text="Pozri"/> +<gentext key="glossseealso" text="Pozri tiež"/> +<gentext key="glossary" text="Slovník"/> +<gentext key="important" text="DÔLEŽITÉ"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Dôležité"/> +<gentext key="index" text="Zoznam"/> +<gentext key="legalnotice" text="Právna poznámka"/> +<gentext key="msgaud" text="Publikum"/> +<gentext key="msglevel" text="Úroveň"/> +<gentext key="msgorig" text="Pôvod"/> +<gentext key="note" text="POZNÁMKA"/> +<gentext key="note" text="Poznámka"/> +<gentext key="part" text="Časť"/> +<gentext key="preface" text="Úvod"/> +<gentext key="procedure" text="Postup"/> +<gentext key="published" text="Vydané"/> +<gentext key="question" text="Q:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="Odkaz"/> +<gentext key="refname" text="Meno"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="Prehľad"/> +<gentext key="revision" text="Revízia"/> +<gentext key="revhistory" text="Prehľad revízií"/> +<gentext key="section" text="Oddiel"/> +<gentext key="see" text="Pozri"/> +<gentext key="seealso" text="Pozri tiež"/> +<gentext key="set" text="Nastaviť"/> +<gentext key="setindex" text="Nastaviť index"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Krok"/> +<gentext key="tip" text="TIP"/> +<gentext key="table" text="Tabuľka"/> +<gentext key="tip" text="Tip"/> +<gentext key="warning" text="VAROVANIE"/> +<gentext key="warning" text="Varovanie"/> +<gentext key="appendix" text="dodatok"/> +<gentext key="chapter" text="kapitola"/> +<gentext key="section" text="oddiel"/> +<gentext key="sidebar" text="boční lišta"/> +<gentext key="step" text="krok"/> +<gentext key="seealso" text="Pozri tiež"/> + +<gentext key="TableofContents" text="Obsah"/> +<gentext key="in" text="v"/> +<gentext key="by" text=""/> +<gentext key="Edited" text="Vydané"/> +<gentext key="Editedby" text="Vydané"/> +<gentext key="and" text="a"/> +<gentext key="Notes" text="Poznámky"/> +<gentext key="TableNotes" text="Poznámky"/> +<gentext key="nonexistantelement" text="neexistujúci prvok"/> +<gentext key="Pgs" text="Str."/> +<gentext key="unsupported" text="nepodporovaný"/> +<gentext key="xrefto" text="xref k"/> +<gentext key="unexpectedelementname" text="Neočakávané meno prvku"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Zoznam tabuliek"/> +<gentext key="ListofExamples" text="Zoznam príkladov"/> +<gentext key="ListofFigures" text="Zoznam obrázkov"/> +<gentext key="ListofEquations" text="Zoznam rovníc"/> +<gentext key="ListofUnknown" text="Zoznam neznámeho"/> + +<gentext key="nav-prev" text="Predchádzajúci"/> +<gentext key="nav-prev-sibling" text="Rýchlo nazpät"/> +<gentext key="nav-next-sibling" text="Rýchlo dopredu"/> +<gentext key="nav-next" text="Ďalší"/> +<gentext key="nav-up" text="Hore"/> +<gentext key="nav-home" text="Domov"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/sl.xml b/docs/docbook/xslt/db2latex/common/sl.xml new file mode 100644 index 0000000000..fca0f5e348 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/sl.xml @@ -0,0 +1,104 @@ +<localization language="sl"> + +<gentext key="abstract" text="Povzetek"/> +<gentext key="answer" text="O:"/> +<gentext key="appendix" text="Dodatek"/> +<gentext key="article" text="Članek"/> +<gentext key="bibliography" text="Literatura"/> +<gentext key="book" text="Knjiga"/> +<gentext key="caution" text="OPOZORILO"/> +<gentext key="caution" text="Opozorilo"/> +<gentext key="chapter" text="Poglavje"/> +<gentext key="colophon" text="Kolofon"/> +<gentext key="copyright" text="Pravna zaščita"/> +<gentext key="dedication" text="Posvetilo"/> +<gentext key="edition" text="Izdaja"/> +<gentext key="equation" text="Enačba"/> +<gentext key="example" text="Primer"/> +<gentext key="figure" text="Slika"/> +<gentext key="glosssee" text="glej"/> +<gentext key="glossseealso" text="glej tudi"/> +<gentext key="glossary" text="Slovarček"/> +<gentext key="important" text="POMEMBNO"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Pomembno"/> +<gentext key="index" text="Stvarno kazalo"/> +<gentext key="legalnotice" text="Pravno sporočilo"/> +<gentext key="msgaud" text="Občinstvo"/> +<gentext key="msglevel" text="Raven"/> +<gentext key="msgorig" text="Izvor"/> +<gentext key="note" text="OPOMBA"/> +<gentext key="note" text="Opomba"/> +<gentext key="part" text="Del"/> +<gentext key="preface" text="Predgovor"/> +<gentext key="procedure" text="Postopek"/> +<gentext key="published" text="Izdano"/> +<gentext key="question" text="V:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="Sklic"/> +<gentext key="refname" text="Ime"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="Sinopsis"/> +<gentext key="revision" text="Različica"/> +<gentext key="revhistory" text="Zgodovina različic"/> +<gentext key="section" text="Razdelek"/> +<gentext key="see" text="glej"/> +<gentext key="seealso" text="glej tudi"/> +<gentext key="set" text="Postavi"/> <!-- ? --> +<gentext key="setindex" text="Postavi stvarno kazalo"/> <!-- ? --> +<gentext key="sidebar" text=""/> +<gentext key="step" text="Korak"/> +<gentext key="tip" text="NAMIG"/> +<gentext key="table" text="Tabela"/> +<gentext key="tip" text="Namig"/> +<gentext key="warning" text="POZOR"/> +<gentext key="warning" text="Pozor"/> +<gentext key="appendix" text="dodatek"/> +<gentext key="chapter" text="poglavje"/> +<gentext key="section" text="razdelek"/> +<gentext key="sidebar" text="sidebar"/> <!-- ? --> +<gentext key="step" text="korak"/> +<gentext key="seealso" text="Glej tudi"/> + +<gentext key="TableofContents" text="Kazalo"/> +<gentext key="in" text="v"/> +<gentext key="by" text="od"/> <!-- ? --> +<gentext key="Edited" text="Urejeno"/> <!-- ? --> +<gentext key="Editedby" text="Urejeno od"/> <!-- ? --> +<gentext key="and" text="in"/> +<gentext key="Notes" text="Notes"/> <!-- ? --> +<gentext key="TableNotes" text="Notes"/> <!-- ? --> +<gentext key="nonexistantelement" text="neobstoječi element"/> +<gentext key="Pgs" text="Str."/> +<gentext key="unsupported" text="nepodprto"/> +<gentext key="xrefto" text="xref na"/> <!-- ? --> +<gentext key="unexpectedelementname" text="Nepričakovano ime elementa"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Seznam tabel"/> +<gentext key="ListofExamples" text="Seznam primerov"/> +<gentext key="ListofFigures" text="Seznam slik"/> +<gentext key="ListofEquations" text="Seznam enačb"/> +<gentext key="ListofUnknown" text="Seznam neznanih stvari"/> <!-- ? --> + +<gentext key="nav-prev" text="Nazaj"/> +<gentext key="nav-prev-sibling" text="Hitro nazaj"/> +<gentext key="nav-next-sibling" text="Hitro naprej"/> +<gentext key="nav-next" text="Naprej"/> +<gentext key="nav-up" text="Gor"/> +<gentext key="nav-home" text="Domov"/> + +<dingbat key="startquote" text='“'/> +<dingbat key="endquote" text='”'/> +<dingbat key="nestedstartquote" text="`"/> +<dingbat key="nestedendquote" text="'"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/sv.xml b/docs/docbook/xslt/db2latex/common/sv.xml new file mode 100644 index 0000000000..27b45cce15 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/sv.xml @@ -0,0 +1,99 @@ +<localization language="sv"> + +<gentext key="abstract" text="Abstrakt"/> +<gentext key="appendix" text="Appendix"/> +<gentext key="article" text="Artikel"/> +<gentext key="bibliography" text="Bibliografi"/> +<gentext key="book" text="Bok"/> +<gentext key="caution" text="OBSERVERA"/> +<gentext key="caution" text="Observera"/> +<gentext key="chapter" text="Kapitel"/> +<gentext key="copyright" text="Copyright"/> +<gentext key="dedication" text="Dedikation"/> +<gentext key="edition" text="Edition"/> +<gentext key="equation" text="Ekvation"/> +<gentext key="example" text="Exempel"/> +<gentext key="figure" text="Figur"/> +<gentext key="glosssee" text="Se"/> +<gentext key="glossseealso" text="Se Även"/> +<gentext key="glossary" text="Gloslista"/> +<gentext key="important" text="VIKTIGT"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="important" text="Viktigt"/> +<gentext key="index" text="Index"/> +<gentext key="legalnotice" text="Legal Notice"/> +<gentext key="msgaud" text="Målgrupp"/> +<gentext key="msglevel" text="Nivå"/> +<gentext key="msgorig" text="Ursprung"/> +<gentext key="note" text="NOT"/> +<gentext key="note" text="Not"/> +<gentext key="part" text="Del"/> +<gentext key="preface" text="Företal"/> +<gentext key="procedure" text="Procedur"/> +<gentext key="published" text="Publicerad"/> +<gentext key="refname" text="Namn"/> +<gentext key="reference" text="Referens"/> +<gentext key="revision" text="Revision"/> +<gentext key="revhistory" text="Revisions Historik;"/> +<gentext key="section" text="Sektion"/> +<gentext key="see" text="Se"/> +<gentext key="seealso" text="Se Även"/> +<gentext key="set" text="Set"/> +<gentext key="setindex" text="Set Index"/> +<gentext key="sidebar" text="Sidebar"/> +<gentext key="step" text="Steg"/> +<gentext key="tip" text="TIPS"/> +<gentext key="table" text="Tabell"/> +<gentext key="tip" text="Tips"/> +<gentext key="warning" text="VARNING"/> +<gentext key="warning" text="Varning"/> +<gentext key="appendix" text="appendix"/> +<gentext key="chapter" text="kapitel"/> +<gentext key="section" text="sektion"/> +<gentext key="step" text="steg"/> +<gentext key="seealso" text="Se även"/> + +<gentext key="TableofContents" text="Innehållsförteckning"/> +<gentext key="called" text="kallas"/> +<gentext key="in" text="i"/> +<gentext key="by" text="av"/> +<gentext key="Edited" text="Utgiven"/> +<gentext key="Editedby" text="Utgiven av"/> +<gentext key="and" text="och"/> +<gentext key="Notes" text="Noter"/> +<gentext key="TableNotes" text="Noter"/> +<gentext key="nonexistantelement" text="non-existant element"/> +<gentext key="the" text=""/> +<gentext key="Pgs" text="Sid."/> +<gentext key="unsupported" text="unsupported"/> +<gentext key="xrefto" text="xref till"/> +<gentext key="unexpectedelementname" text="Unexpected element name"/> +<gentext key="Revisedby" text="Revised by: "/> + +<gentext key="ListofTables" text="Tabellförteckning"/> +<gentext key="ListofExamples" text="Exempelförteckning"/> +<gentext key="ListofFigures" text="Figurförteckning"/> +<gentext key="ListofEquations" text="Ekvationsförteckning"/> +<gentext key="ListofUnknown" text="Förteckning av okända"/> + +<gentext key="nav-prev" text="Förutgående"/> +<gentext key="nav-prev-sibling" text="Snabbt frammåt"/> +<gentext key="nav-next-sibling" text="Snabbt bakåt"/> +<gentext key="nav-next" text="Nästa"/> +<gentext key="nav-up" text="Upp"/> +<gentext key="nav-home" text="Hem"/> + +<dingbat key="startquote" text="“"/> +<dingbat key="endquote" text="”"/> +<dingbat key="nestedstartquote" text="‘"/> +<dingbat key="nestedendquote" text="’"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="bibliography" text="%t"/> +<xref element="chapter" text="%g %n, %t"/> +<xref element="dedication" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> +<xref element="preface" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/zh_cn.xml b/docs/docbook/xslt/db2latex/common/zh_cn.xml new file mode 100644 index 0000000000..ef373b4a33 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/zh_cn.xml @@ -0,0 +1,95 @@ +<localization language="zh_cn"> + +<gentext key="abstract" text="摘要"/> +<gentext key="answer" text="答:"/> +<gentext key="appendix" text="附录"/> +<gentext key="article" text="文章"/> +<gentext key="bibliography" text="参考书目"/> +<gentext key="book" text="书目"/> +<gentext key="caution" text="注意"/> +<gentext key="chapter" text="章"/> +<gentext key="colophon" text="Colophon"/> +<gentext key="copyright" text="版权"/> +<gentext key="dedication" text="奉献"/> +<gentext key="edition" text="版"/> +<gentext key="equation" text="方程"/> +<gentext key="example" text="例子"/> +<gentext key="figure" text="图形"/> +<gentext key="glossary" text="术语表"/> +<gentext key="glosssee" text="见"/> +<gentext key="glossseealso" text="另见"/> +<gentext key="important" text="重要"/> +<gentext key="index" text="索引"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="legalnotice" text="法律布告"/> +<gentext key="msgaud" text="读者"/> +<gentext key="msglevel" text="难度"/> +<gentext key="msgorig" text="出处"/> +<gentext key="note" text="注"/> +<gentext key="part" text="部分"/> +<gentext key="preface" text="前言"/> +<gentext key="procedure" text="过程"/> +<gentext key="published" text="出版"/> +<gentext key="question" text="问:"/> +<gentext key="refentry" text=""/> +<gentext key="reference" text="参考"/> +<gentext key="refname" text="名字"/> +<gentext key="refsection" text=""/> +<gentext key="refsynopsisdiv" text="大纲"/> +<gentext key="revhistory" text="修订历史"/> +<gentext key="revision" text="修订"/> +<gentext key="section" text="节"/> +<gentext key="see" text="见"/> +<gentext key="seealso" text="另见"/> +<gentext key="set" text="Set"/> +<gentext key="setindex" text="Set Index"/> +<gentext key="sidebar" text="sidebar"/> +<gentext key="step" text="步骤"/> +<gentext key="table" text="表格"/> +<gentext key="tip" text="提示"/> +<gentext key="tip" text="提示"/> +<gentext key="warning" text="警告"/> + +<gentext key="TableofContents" text="目录"/> +<gentext key="in" text="在"/> +<gentext key="by" text="由"/> +<gentext key="Edited" text="编辑"/> +<gentext key="Editedby" text="编辑"/> +<gentext key="and" text="和"/> +<gentext key="Notes" text="注"/> +<gentext key="TableNotes" text="注"/> +<gentext key="nonexistantelement" text="不存在的元素"/> +<gentext key="Pgs" text="页"/> +<gentext key="unsupported" text="不支持"/> +<gentext key="xrefto" text="参照"/> +<gentext key="unexpectedelementname" text="未预料到的元素名"/> +<gentext key="Revisedby" text="修订"/> + +<gentext key="ListofTables" text="表格列表"/> +<gentext key="ListofExamples" text="示例列表"/> +<gentext key="ListofFigures" text="图形列表"/> +<gentext key="ListofEquations" text="方程式列表"/> +<gentext key="ListofUnknown" text="其他内容列表"/> + +<gentext key="nav-prev" text="后退"/> +<gentext key="nav-prev-sibling" text="快速后退"/> +<gentext key="nav-next-sibling" text="快速前进"/> +<gentext key="nav-next" text="前进"/> +<gentext key="nav-up" text="上一级"/> +<gentext key="nav-home" text="起点"/> + +<dingbat key="startquote" text='"'/> +<dingbat key="endquote" text='"'/> +<dingbat key="nestedstartquote" text="'"/> +<dingbat key="nestedendquote" text="'"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="appendix" text="%g %n"/> +<xref element="chapter" text="%g %n"/> +<xref element="dedication" text="%t"/> +<xref element="preface" text="%t"/> +<xref element="bibliography" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/common/zh_tw.xml b/docs/docbook/xslt/db2latex/common/zh_tw.xml new file mode 100644 index 0000000000..7168114f49 --- /dev/null +++ b/docs/docbook/xslt/db2latex/common/zh_tw.xml @@ -0,0 +1,98 @@ +<localization language="zh_tw"> + +<gentext key="abstract" text="摘要"/> +<gentext key="answer" text="答:"/> +<gentext key="appendix" text="附錄"/> +<gentext key="article" text="文章"/> +<gentext key="bibliography" text="參考文獻"/> +<gentext key="book" text="書目"/> +<gentext key="caution" text="注意"/> +<gentext key="chapter" text="章"/> +<gentext key="colophon" text="版本記錄"/> +<gentext key="copyright" text="版權"/> +<gentext key="dedication" text="奉獻"/> +<gentext key="edition" text="版"/> +<gentext key="equation" text="方程式"/> +<gentext key="example" text="範例"/> +<gentext key="figure" text="圖形"/> +<gentext key="glossary" text="小辭彙"/> +<gentext key="glosssee" text="參見"/> +<gentext key="glossseealso" text="另參見"/> +<gentext key="important" text="重要"/> +<gentext key="index" text="索引"/> +<gentext key="isbn" text="ISBN"/> +<gentext key="legalnotice" text="法律聲明"/> +<gentext key="msgaud" text="讀者"/> +<gentext key="msglevel" text="程度"/> +<gentext key="msgorig" text="出處"/> +<gentext key="note" text="注"/> +<gentext key="part" text="部"/> +<gentext key="preface" text="序言"/> +<gentext key="procedure" text="過程"/> +<gentext key="published" text="出版"/> +<gentext key="question" text="問:"/> +<gentext key="refentry" text="參照項目"/> +<gentext key="reference" text="參考"/> +<gentext key="refname" text="參考名"/> +<gentext key="refsection" text="參照章節"/> +<gentext key="refsynopsisdiv" text="大綱"/> +<gentext key="revhistory" text="修訂記錄"/> +<gentext key="revision" text="修訂"/> +<gentext key="section" text="節"/> +<gentext key="see" text="見"/> +<gentext key="seealso" text="另見"/> +<gentext key="set" text="Set"/> +<gentext key="setindex" text="Set Index"/> +<gentext key="sidebar" text=""/> +<gentext key="step" text="步驟"/> +<gentext key="table" text="表格"/> +<gentext key="tip" text="提示"/> +<gentext key="tip" text="提示"/> +<gentext key="warning" text="警告"/> + +<gentext key="TableofContents" + text="內容目錄"/> +<gentext key="in" text="在"/> +<gentext key="by" text="由"/> +<gentext key="Edited" text="編輯"/> +<gentext key="Editedby" text="編輯"/> +<gentext key="and" text="且"/> +<gentext key="Notes" text="注"/> +<gentext key="TableNotes" text="注釋"/> +<gentext key="nonexistantelement" + text="不存在的元素"/> +<gentext key="Pgs" text="頁"/> +<gentext key="unsupported" text="未支援"/> +<gentext key="xrefto" text="參照"/> +<gentext key="unexpectedelementname" + text="非預期的元素名"/> +<gentext key="Revisedby" text="修訂"/> + +<gentext key="ListofTables" text="附表目錄"/> +<gentext key="ListofExamples" text="範例目錄"/> +<gentext key="ListofFigures" text="附圖目錄"/> +<gentext key="ListofEquations" text="公式目錄"/> +<gentext key="ListofUnknown" text="其它內容目錄"/> + +<gentext key="nav-prev" text="前一頁"/> +<gentext key="nav-prev-sibling" text="快速向前"/> +<gentext key="nav-next-sibling" text="快速向後"/> +<gentext key="nav-next" text="下一頁"/> +<gentext key="nav-up" text="上一層"/> +<gentext key="nav-home" text="內容"/> + +<dingbat key="startquote" text="""/> +<dingbat key="endquote" text="""/> +<dingbat key="nestedstartquote" text="'"/> +<dingbat key="nestedendquote" text="'"/> +<dingbat key="bullet" text="ߦ"/> + +<xref element="appendix" text="%g %n"/> +<xref element="chapter" text="%g %n"/> +<xref element="dedication" text="%t"/> +<xref element="preface" text="%t"/> +<xref element="bibliography" text="%t"/> +<xref element="glossary" text="%t"/> +<xref element="index" text="%t"/> + +</localization> diff --git a/docs/docbook/xslt/db2latex/component.mod.xsl b/docs/docbook/xslt/db2latex/component.mod.xsl new file mode 100644 index 0000000000..2197c94674 --- /dev/null +++ b/docs/docbook/xslt/db2latex/component.mod.xsl @@ -0,0 +1,94 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: component.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="component" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: component.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Component <filename>component.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <xsl:template name="component.title"> + <xsl:variable name="id"> + <xsl:call-template name="label.id"><xsl:with-param name="object" select="."/></xsl:call-template> + </xsl:variable> + <xsl:text> {\sc </xsl:text><xsl:apply-templates select="." mode="title.ref"/><xsl:text>}</xsl:text> + </xsl:template> + + + + <xsl:template name="component.subtitle"> + <xsl:variable name="subtitle"><xsl:apply-templates select="." mode="subtitle.content"/></xsl:variable> + <xsl:if test="$subtitle != ''"> + <xsl:text> {\sc </xsl:text><xsl:copy-of select="$subtitle"/><xsl:text>}</xsl:text> + </xsl:if> + </xsl:template> + + + + <xsl:template name="component.separator"> + </xsl:template> + + + + <xsl:template match="colophon"> + <xsl:variable name="id"><xsl:call-template name="label.id"/></xsl:variable> + <xsl:call-template name="component.separator"/> + <xsl:call-template name="component.title"/> + <xsl:call-template name="component.subtitle"/> + <xsl:apply-templates/> + </xsl:template> + + + <xsl:template match="colophon/title"/> + + + + <xsl:template match="bibliography" mode="component.number"> + <xsl:param name="add.space" select="false()"/> + </xsl:template> + + <xsl:template match="glossary" mode="component.number"> + <xsl:param name="add.space" select="false()"/> + </xsl:template> + + <xsl:template match="index" mode="component.number"> + <xsl:param name="add.space" select="false()"/> + </xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/dedication.mod.xsl b/docs/docbook/xslt/db2latex/dedication.mod.xsl new file mode 100644 index 0000000000..67012391f8 --- /dev/null +++ b/docs/docbook/xslt/db2latex/dedication.mod.xsl @@ -0,0 +1,129 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: dedication.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="dedication" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: dedication.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Dedication <filename>dedication.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + +<!--############################################################################# + | XSL Parameters + +- ############################################################################# --> +<xsl:param name="latex.dedication.title.style">\sc</xsl:param> + + + +<!--############################################################################# + | Dedication Template + +- ############################################################################# --> +<xsl:template match="dedication"> +<xsl:text>\newpage </xsl:text> +<xsl:text>% ------------------------------------------------------------- </xsl:text> +<xsl:text>% Dedication </xsl:text> +<xsl:text>% ------------------------------------------------------------- </xsl:text> +<xsl:call-template name="label.id"/> +<xsl:call-template name="dedication.title"/> +<xsl:call-template name="dedication.subtitle"/> +<!-- except title, titleabbrev and subtitle --> +<xsl:apply-templates select="*[name(.) != 'title' and name(.) != 'subtitle' and name(.) != 'titleabbrev']"/> +</xsl:template> + + +<!--############################################################################# + | Dedication Title + +- ############################################################################# --> +<xsl:template name="dedication.title"> +<!-- Output dedication title or generic text --> +<xsl:text>{</xsl:text> +<xsl:value-of select="$latex.dedication.title.style"/> +<xsl:text> </xsl:text> +<xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">dedication</xsl:with-param> + </xsl:call-template> + </xsl:otherwise> +</xsl:choose> +<xsl:text>} </xsl:text> +<!-- done with title --> +</xsl:template> + + +<xsl:template match="dedication/title"> +<xsl:apply-templates/> +</xsl:template> + + + +<!--############################################################################# + | Dedication Subtitle + +- ############################################################################# --> +<xsl:template name="dedication.subtitle"> +<xsl:variable name="subtitle"> + <xsl:apply-templates select="." mode="subtitle.content"/> +</xsl:variable> +<xsl:if test="$subtitle != ''"> + <xsl:text>{</xsl:text> + <xsl:value-of select="$latex.dedication.title.style"/> + <xsl:text> </xsl:text> + <xsl:copy-of select="$subtitle"/> + <xsl:text>} </xsl:text> +</xsl:if> +</xsl:template> + + +<xsl:template match="dedication/subtitle"> +<xsl:apply-templates/> +</xsl:template> + +<xsl:template match="dedication/titleabbrev"/> + + +<!--############################################################################# + | Special treatment for dedication paragraphs + +- ############################################################################# --> +<xsl:template match="dedication/para"> +<xsl:text> \paragraph*{} </xsl:text> <!-- This is a fixme !! --> +<xsl:apply-templates/> +</xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/dingbat.mod.xsl b/docs/docbook/xslt/db2latex/dingbat.mod.xsl new file mode 100644 index 0000000000..86b2f25b30 --- /dev/null +++ b/docs/docbook/xslt/db2latex/dingbat.mod.xsl @@ -0,0 +1,72 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: dingbat.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: +| ++ ############################################################################## --> + + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="dingbat" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: dingbat.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year><year>2001</year><year>2002</year><year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Dingbats <filename>dingbat.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + </section> + </partintro> + </doc:reference> + + + + <xsl:template name="dingbat"> + <xsl:param name="dingbat">bullet</xsl:param> + <xsl:call-template name="dingbat.characters"> + <xsl:with-param name="dingbat" select="$dingbat"/> + </xsl:call-template> + </xsl:template> + + <xsl:template name="dingbat.characters"> + <xsl:param name="dingbat">bullet</xsl:param> + <xsl:choose> + <xsl:when test="$dingbat='bullet'"> $\bullet$ </xsl:when> + <xsl:when test="$dingbat='copyright'">\copyright{}</xsl:when> + <xsl:when test="$dingbat='trademark'">\texttrademark{}</xsl:when> + <xsl:when test="$dingbat='registered'">\textregistered{}</xsl:when> + <xsl:when test="$dingbat='nbsp'">~</xsl:when> + <xsl:when test="$dingbat='ldquo'">``</xsl:when> + <xsl:when test="$dingbat='rdquo'">''</xsl:when> + <xsl:when test="$dingbat='lsquo'">`</xsl:when> + <xsl:when test="$dingbat='rsquo'">'</xsl:when> + <xsl:when test="$dingbat='em-dash'">---</xsl:when> + <xsl:when test="$dingbat='mdash'">---</xsl:when> + <xsl:when test="$dingbat='en-dash'">--</xsl:when> + <xsl:when test="$dingbat='ndash'">--</xsl:when> + <xsl:otherwise> + <xsl:text> [dingbat?] </xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/docbook.xsl b/docs/docbook/xslt/db2latex/docbook.xsl new file mode 100644 index 0000000000..3a8759d57d --- /dev/null +++ b/docs/docbook/xslt/db2latex/docbook.xsl @@ -0,0 +1,154 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: docbook.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: +| This is the "parent" stylesheet. The used "modules" are included here. +| output encoding text in ISO-8859-1 indented. ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + <xsl:output method="text" encoding="ISO-8859-1" indent="yes"/> + + <xsl:include href="common/l10n.xsl"/> + <xsl:include href="common/common.xsl"/> + + <xsl:include href="VERSION.xml"/> + <xsl:include href="vars.mod.xsl"/> + <xsl:include href="latex.mapping.xsl"/> + <xsl:include href="preamble.mod.xsl"/> + <xsl:include href="font.mod.xsl"/> + <xsl:include href="labelid.mod.xsl"/> + + <xsl:include href="book-article.mod.xsl"/> + + <xsl:include href="dedication.mod.xsl"/> + <xsl:include href="preface.mod.xsl"/> + + <xsl:include href="part-chap-app.mod.xsl"/> + + <xsl:include href="sections.mod.xsl"/> + <xsl:include href="bridgehead.mod.xsl"/> + + <xsl:include href="abstract.mod.xsl"/> + <xsl:include href="biblio.mod.xsl"/> + <xsl:include href="revision.mod.xsl"/> + + <xsl:include href="admonition.mod.xsl"/> + <xsl:include href="verbatim.mod.xsl"/> + <xsl:include href="email.mod.xsl"/> + <xsl:include href="sgmltag.mod.xsl"/> + <xsl:include href="citation.mod.xsl"/> + <xsl:include href="qandaset.mod.xsl"/> + <xsl:include href="procedure.mod.xsl"/> + <xsl:include href="lists.mod.xsl"/> + <xsl:include href="callout.mod.xsl"/> + + + <xsl:include href="figure.mod.xsl"/> + <xsl:include href="graphic.mod.xsl"/> + <xsl:include href="mediaobject.mod.xsl"/> + + <xsl:include href="index.mod.xsl"/> + + + <xsl:include href="xref.mod.xsl"/> + <xsl:include href="formal.mod.xsl"/> + <xsl:include href="example.mod.xsl"/> + <xsl:include href="table.mod.xsl"/> + <xsl:include href="inline.mod.xsl"/> + <xsl:include href="authorgroup.mod.xsl"/> + <xsl:include href="dingbat.mod.xsl"/> + <xsl:include href="info.mod.xsl"/> + <xsl:include href="keywords.mod.xsl"/> + <xsl:include href="refentry.mod.xsl"/> + <xsl:include href="component.mod.xsl"/> + <xsl:include href="glossary.mod.xsl"/> + <xsl:include href="block.mod.xsl"/> + + + <xsl:include href="synop-oop.mod.xsl"/> + <xsl:include href="synop-struct.mod.xsl"/> + + <xsl:include href="pi.mod.xsl"/> + + <xsl:include href="footnote.mod.xsl"/> + + <xsl:include href="texmath.mod.xsl"/> + <xsl:include href="mathelem.mod.xsl"/> + <xsl:include href="mathml/mathml.mod.xsl"/> + <xsl:include href="mathml/mathml.presentation.mod.xsl"/> + <xsl:include href="mathml/mathml.content.mod.xsl"/> + <xsl:include href="mathml/mathml.content.token.mod.xsl"/> + <xsl:include href="mathml/mathml.content.functions.mod.xsl"/> + <xsl:include href="mathml/mathml.content.constsymb.mod.xsl"/> + + <xsl:include href="para.mod.xsl"/> + <xsl:include href="msgset.mod.xsl"/> + <xsl:include href="errors.mod.xsl"/> + + <xsl:include href="normalize-scape.mod.xsl"/> + + + + <xsl:template match="/"> + <xsl:variable name="xsl-vendor" select="system-property('xsl:vendor')"/> + <xsl:message>################################################################################</xsl:message> + <xsl:message> XSLT stylesheets DocBook - LaTeX 2e </xsl:message> + <xsl:message> Reqs: LaTeX 2e installation common packages </xsl:message> + <xsl:message>################################################################################</xsl:message> + <xsl:message> RELEASE : <xsl:value-of select="$VERSION"/> </xsl:message> + <xsl:message> VERSION : <xsl:value-of select="$CVSVERSION"/> </xsl:message> + <xsl:message> TAG : <xsl:value-of select="$TAG"/> </xsl:message> + <xsl:message> WWW : http://db2latex.sourceforge.net </xsl:message> + <xsl:message> SUMMARY : http://www.sourceforge.net/projects/db2latex </xsl:message> + <xsl:message> AUTHOR : Ramon Casellas casellas@infres.enst.fr </xsl:message> + <xsl:message> AUTHOR : James Devenish j-devenish@users.sf.net </xsl:message> + <xsl:message> USING : <xsl:call-template name="set-vendor"/> </xsl:message> + <xsl:message>################################################################################</xsl:message> + <xsl:apply-templates/> + </xsl:template> + + + <!--############################################################################# --> + <!-- XSL Processor Vendor --> + <!-- XSL Mailing Lists http://www.dpawson.co.uk/xsl/N10378.html --> + <!--############################################################################# --> + <xsl:template name="set-vendor"> + <xsl:variable name="xsl-vendor" select="system-property('xsl:vendor')"/> + <xsl:choose> + <xsl:when test="contains($xsl-vendor, 'SAXON 6.4')"> + <xsl:text>SAXON 6.4.X</xsl:text> + </xsl:when> + <xsl:when test="contains($xsl-vendor, 'SAXON 6.2')"> + <xsl:text>SAXON 6.2.X</xsl:text> + </xsl:when> + <xsl:when test="starts-with($xsl-vendor,'SAXON')"> + <xsl:text>SAXON</xsl:text> + </xsl:when> + <xsl:when test="contains($xsl-vendor,'Apache')"> + <xsl:text>XALAN</xsl:text> + </xsl:when> + <xsl:when test="contains($xsl-vendor,'Xalan')"> + <xsl:text>XALAN</xsl:text> + </xsl:when> + <xsl:when test="contains($xsl-vendor,'libxslt')"> + <xsl:text>libxslt/xsltproc</xsl:text> + </xsl:when> + <xsl:when test="contains($xsl-vendor,'Clark')"> + <xsl:text>XT</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>UNKNOWN</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/email.mod.xsl b/docs/docbook/xslt/db2latex/email.mod.xsl new file mode 100644 index 0000000000..fad6b59551 --- /dev/null +++ b/docs/docbook/xslt/db2latex/email.mod.xsl @@ -0,0 +1,65 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: email.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="email" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: email.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Email <filename>email.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="email" xmlns=""> + <refpurpose> XSL template for email </refpurpose> + <refdescription> + <para>Outputs the mail in {\texttt }. Calls the normalize-scape template in order to get a + normalized email string. It does not process email content model.</para> + <formalpara><title>Remarks and Bugs</title> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + + <xsl:template match="email"> + <xsl:text>\texttt{<</xsl:text> + <xsl:call-template name="ulink"> + <xsl:with-param name="url" select="concat('mailto:',.)"/> + </xsl:call-template> + <xsl:text>>}</xsl:text> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/errors.mod.xsl b/docs/docbook/xslt/db2latex/errors.mod.xsl new file mode 100644 index 0000000000..466f052c7f --- /dev/null +++ b/docs/docbook/xslt/db2latex/errors.mod.xsl @@ -0,0 +1,18 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + <!--############################################################################# + | $Id: errors.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: + + ############################################################################## --> + + + <xsl:template match="*"> + <xsl:message>DB2LaTeX: Need to process XPath match <xsl:value-of select="concat(name(..),'/',name(.))"/></xsl:message> + <xsl:text> [</xsl:text><xsl:value-of select="name(.)"/><xsl:text>] </xsl:text> + <xsl:apply-templates/> + <xsl:text> [/</xsl:text><xsl:value-of select="name(.)"/><xsl:text>] </xsl:text> + </xsl:template> +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/example.mod.xsl b/docs/docbook/xslt/db2latex/example.mod.xsl new file mode 100644 index 0000000000..6f67df52bf --- /dev/null +++ b/docs/docbook/xslt/db2latex/example.mod.xsl @@ -0,0 +1,79 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: example.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="example" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: example.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Example <filename>example.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + <xsl:template match="example"> + <xsl:variable name="placement"> + <xsl:call-template name="generate.formal.title.placement"> + <xsl:with-param name="object" select="local-name(.)" /> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="caption"> + <xsl:text>\caption{</xsl:text> + <xsl:apply-templates select="title" mode="caption.mode"/> + <xsl:text>} </xsl:text> + </xsl:variable> + <xsl:call-template name="map.begin"/> + <xsl:if test="$placement='before'"> + <xsl:text>\captionswapskip{}</xsl:text> + <xsl:value-of select="$caption" /> + <xsl:text>\captionswapskip{}</xsl:text> + </xsl:if> + <xsl:apply-templates /> + <xsl:if test="$placement!='before'"><xsl:value-of select="$caption" /></xsl:if> + <xsl:call-template name="map.end"/> + </xsl:template> + + + + <xsl:template match="example/title"></xsl:template> + + + + + <xsl:template match="informalexample"> + <xsl:call-template name="informal.object"/> + </xsl:template> + + + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/figure.mod.xsl b/docs/docbook/xslt/db2latex/figure.mod.xsl new file mode 100644 index 0000000000..f23689608a --- /dev/null +++ b/docs/docbook/xslt/db2latex/figure.mod.xsl @@ -0,0 +1,130 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: figure.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: Template for figure tag. ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="figure" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: figure.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Figures and InformalFigures <filename>figure.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + + + <!--############################################################################# --> + <doc:template match="figure|informalfigure" xmlns=""> + <refpurpose> XSL template for figure|informalfigure </refpurpose> + <refdescription> + <para>Outputs <literal>\begin{figure}</literal>, + applies templates and outputs <literal>\end{figure}</literal>. </para> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + <listitem><para>The <literal>figure.title</literal> can be typset in italics by specifying <literal>$latex.figure.title.style</literal> (<literal>\itshape</literal> would be common).</para></listitem> + <listitem><para>If a <literal>figure.mediaobject.caption</literal> exists, it will be typeset after the <literal>figure.title</literal> (but only if there is a single <literal>figure.mediaobject.caption</literal>).</para></listitem> + </itemizedlist> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + +<!-- Auxiliary template to output a figure caption.--> +<xsl:template name="aux.figure.caption"> +<xsl:text>\caption{{</xsl:text> +<xsl:value-of select="$latex.figure.title.style"/> +<xsl:text>{</xsl:text> +<xsl:apply-templates select="title"/> +<xsl:text>}}</xsl:text> +<xsl:if test="count(child::mediaobject/caption)=1"> + <xsl:text>. </xsl:text> + <xsl:apply-templates select="mediaobject/caption" /> +</xsl:if> +<xsl:text>} </xsl:text> +</xsl:template> + +<xsl:template match="figure|informalfigure"> + <xsl:variable name="placement"> + <xsl:call-template name="generate.formal.title.placement"> + <xsl:with-param name="object" select="local-name(.)" /> + </xsl:call-template> + </xsl:variable> + <xsl:call-template name="map.begin"/> + <xsl:if test="$placement='before'"> + <xsl:text>\captionswapskip{}</xsl:text> + <xsl:call-template name="aux.figure.caption" /> + <xsl:text>\captionswapskip{}</xsl:text> + </xsl:if> + <xsl:apply-templates select="*[name(.) != 'title']"/> + <xsl:if test="$placement!='before'"> + <xsl:call-template name="aux.figure.caption" /> + </xsl:if> + <xsl:call-template name="map.end"/> +</xsl:template> + + + + <!--############################################################################# --> + <!-- + <doc:template match="figure[programlisting]" xmlns=""> + <refpurpose> XSL template for programlisting within a figure </refpurpose> + <refdescription> + <para>Outputs <literal>\begin{figure}</literal>, + applies templates and outputs <literal>\end{abstract}</literal>. </para> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + </itemizedlist> + </formalpara> + </refdescription> + </doc:template> + --> + <!--############################################################################# --> + + <!-- + <xsl:template match="figure[programlisting]"> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="programlisting"/> + </xsl:call-template> + <xsl:apply-templates /> + <xsl:call-template name="map.end"> + <xsl:with-param name="keyword" select="programlisting"/> + </xsl:call-template> + </xsl:template> + --> + + <xsl:template match="figure/title"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="informalfigure/title"> + </xsl:template> +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/font.mod.xsl b/docs/docbook/xslt/db2latex/font.mod.xsl new file mode 100644 index 0000000000..c66d6aab37 --- /dev/null +++ b/docs/docbook/xslt/db2latex/font.mod.xsl @@ -0,0 +1,58 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: font.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="font" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: font.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Font <filename>font.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <doc:param name="latex.document.font" xmlns=""> + <refpurpose> Document Font </refpurpose> + <refdescription> + Possible values: default, times, palatcm, charter, helvet, palatino, avant, newcent, bookman + </refdescription> + </doc:param> + + + <xsl:param name="latex.document.font">palatino</xsl:param> + + <!-- + If you want to change explicitly to a certain font, use the command \fontfamily{XYZ}\selectfont whereby XYZ can be set to: pag for Adobe AvantGarde, pbk for Adobe Bookman, pcr for Adobe Courier, phv for Adobe Helvetica, pnc for Adobe NewCenturySchoolbook, ppl for Adobe Palatino, ptm for Adobe Times Roman, pzc for Adobe ZapfChancery + --> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/footnote.mod.xsl b/docs/docbook/xslt/db2latex/footnote.mod.xsl new file mode 100644 index 0000000000..1fb23dfbeb --- /dev/null +++ b/docs/docbook/xslt/db2latex/footnote.mod.xsl @@ -0,0 +1,85 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: footnote.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="footnote" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: footnote.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>FootNotes <filename>footnote.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + + <xsl:template match="footnote"> + <xsl:call-template name="label.id"/> + <xsl:text>\begingroup\catcode`\#=12\footnote{</xsl:text> + <xsl:apply-templates/> + <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text> + <xsl:call-template name="generate.label.id"/> + <xsl:text>}</xsl:text> + </xsl:template> + + <doc:template name="footnote"> + <refpurpose>Construct a footnote that copes with URLs</refpurpose> + <refdescription><para>This template exists in this file so that all + the footnote-generating templates are close to each other. However, + it is actually a part of the ulink template in xref.mod.xsl</para></refdescription> + </doc:template> + <xsl:template name="footnote"> + <xsl:param name="hyphenation"/> + <xsl:param name="url"/> + <xsl:call-template name="label.id"/> + <xsl:text>\begingroup\catcode`\#=12\footnote{</xsl:text> + <xsl:call-template name="generate.typeset.url"> + <xsl:with-param name="hyphenation" select="$hyphenation"/> + <xsl:with-param name="url" select="$url"/> + </xsl:call-template> + <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text> + <xsl:call-template name="generate.label.id"/> + <xsl:text>}</xsl:text> + </xsl:template> + + <xsl:template match="footnote/para"> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + + + <xsl:template match="footnoteref"> + <xsl:variable name="footnote" select="id(@linkend)"/> + <xsl:text>\docbooktolatexusefootnoteref{</xsl:text> + <xsl:value-of select="@linkend"/> + <xsl:text>}</xsl:text> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/formal.mod.xsl b/docs/docbook/xslt/db2latex/formal.mod.xsl new file mode 100644 index 0000000000..6c3ea3ff55 --- /dev/null +++ b/docs/docbook/xslt/db2latex/formal.mod.xsl @@ -0,0 +1,176 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: formal.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="formal" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: formal.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Formal Objects <filename>formal.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <xsl:template name="formal.object"> + <xsl:call-template name="formal.object.heading"> + <xsl:with-param name="title"><xsl:apply-templates select="." mode="title.ref"/></xsl:with-param> + </xsl:call-template> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template name="formal.object.heading"> + <xsl:param name="title"></xsl:param> + <xsl:call-template name="label.id"/> + <xsl:copy-of select="$title"/> + </xsl:template> + + <xsl:template name="informal.object"> + <xsl:call-template name="label.id"/> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template name="semiformal.object"> + <xsl:choose> + <xsl:when test="title"> <xsl:call-template name="formal.object"/> </xsl:when> + <xsl:otherwise> <xsl:call-template name="informal.object"/></xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <xsl:template name="generate.formal.title.placement"> + <xsl:param name="object" select="figure" /> + <xsl:variable name="param.placement" select="substring-after(normalize-space($formal.title.placement),concat($object, ' '))"/> + <xsl:choose> + <xsl:when test="contains($param.placement, ' ')"> + <xsl:value-of select="substring-before($param.placement, ' ')"/> + </xsl:when> + <xsl:when test="$param.placement = ''">before</xsl:when> + <xsl:otherwise> + <xsl:value-of select="$param.placement"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + +<!-- ======================================== --> +<!-- XSL Template for DocBook Equation Element --> +<!-- 2003/07/04 Applied patches from J.Pavlovic --> +<!-- ======================================== --> +<xsl:template match="equation"> +<!-- Equation title placement --> +<xsl:variable name="placement"> + <xsl:call-template name="generate.formal.title.placement"> + <xsl:with-param name="object" select="local-name(.)" /> + </xsl:call-template> +</xsl:variable> +<!-- Equation caption --> +<xsl:variable name="caption"> + <xsl:text>\caption{</xsl:text> + <xsl:apply-templates select="title" mode="caption.mode"/> + <xsl:text>} </xsl:text> +</xsl:variable> +<xsl:call-template name="map.begin"/> +<xsl:if test="$placement='before'"> + <xsl:text>\captionswapskip{}</xsl:text> + <xsl:value-of select="$caption" /> + <xsl:text>\captionswapskip{}</xsl:text> +</xsl:if> +<xsl:choose> + <xsl:when test="informalequation"> + <xsl:apply-templates select="informalequation"/> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="tex" select="alt[@role='tex' or @role='latex']|mediaobject/textobject[@role='tex' or @role='latex']|mediaobject/textobject/phrase[@role='tex' or @role='latex']"/> + <xsl:choose> + <xsl:when test="$tex"> + <xsl:apply-templates select="$tex"/> + </xsl:when> + <xsl:when test="alt and $latex.alt.is.preferred='1'"> + <xsl:apply-templates select="alt"/> + </xsl:when> + <xsl:when test="mediaobject"> + <xsl:apply-templates select="mediaobject"/> + </xsl:when> + <xsl:when test="alt"> + <xsl:apply-templates select="alt"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="graphic"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> +</xsl:choose> +<xsl:if test="$placement!='before'"><xsl:value-of select="$caption" /></xsl:if> +<xsl:call-template name="map.end"/> +</xsl:template> + + +<xsl:template match="equation/title"/> + + + + + +<xsl:template match="informalequation"> +<xsl:variable name="tex" select="alt[@role='tex' or @role='latex']|mediaobject/textobject[@role='tex' or @role='latex']|mediaobject/textobject/phrase[@role='tex' or @role='latex']"/> +<xsl:text> </xsl:text> +<xsl:choose> + <xsl:when test="$tex"> + <xsl:apply-templates select="$tex"/> + </xsl:when> + <xsl:when test="alt and $latex.alt.is.preferred='1'"> + <xsl:apply-templates select="alt"/> + </xsl:when> + <xsl:when test="mediaobject"> + <xsl:apply-templates select="mediaobject"/> + </xsl:when> + <xsl:when test="alt"> + <xsl:apply-templates select="alt"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="graphic"/> + </xsl:otherwise> +</xsl:choose> +<xsl:text> </xsl:text> +</xsl:template> + + + + + + + + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/glossary.mod.xsl b/docs/docbook/xslt/db2latex/glossary.mod.xsl new file mode 100644 index 0000000000..a88fe609c2 --- /dev/null +++ b/docs/docbook/xslt/db2latex/glossary.mod.xsl @@ -0,0 +1,221 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: glossary.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="glossary" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: glossary.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Glossary <filename>glossary.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para>This reference applies to the glossary element name. Altough LaTeX + provides some glossary support, the better glossary management support + motivates the bypass of the LaTeX <literal>\makeglossary</literal> + command.</para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="glossary" xmlns=""> + <refpurpose> Glossary XSL template / entry point </refpurpose> + <refdescription><para>The <sgmltag>glossary</sgmltag> element is the entry point + to a docbook glossary. The DB2LaTeX processing of the element is quite straight- + forward. First thing is to check whether the document is a book or article. In + both cases two new LaTeX commands are defined. <literal>\dbglossary</literal> + and <literal>\dbglossdiv</literal>. In the former case, they are mapped to + <literal>\chapter*</literal> and <literal>\section*</literal>. In the second + case to <literal>\section*</literal> and <literal>\subsection*</literal>.</para> + </refdescription> + <itemizedlist> + <listitem><para>Call template map.begin.</para></listitem> + <listitem><para>Apply Templates for Preamble, GlossDivs and GlossEntries (serial).</para></listitem> + <listitem><para>Call template map.end.</para></listitem> + </itemizedlist> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + <listitem><para>Template for glossary/glossaryinfo is EMPTY.</para></listitem> + <listitem><para>Template for glossary/title | glossary/subtitle is EMPTY.</para></listitem> + <listitem><para>Template for glossary/titleabbrev is EMPTY.</para></listitem> + </itemizedlist> + </formalpara> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="glossary"> + <xsl:variable name="divs" select="glossdiv"/> + <xsl:variable name="entries" select="glossentry"/> + <xsl:variable name="preamble" select="*[not(self::title or self::subtitle or self::glossdiv or self::glossentry)]"/> + <xsl:choose> + <xsl:when test="local-name(..)='book' or local-name(..)='part'"> + <xsl:text>\newcommand{\dbglossary}[1]{\chapter*{#1}}% </xsl:text> + <xsl:text>\newcommand{\dbglossdiv}[1]{\section*{#1}}% </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\newcommand{\dbglossary}[1]{\section*{#1}}% </xsl:text> + <xsl:text>\newcommand{\dbglossdiv}[1]{\subsection*{#1}}% </xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:call-template name="map.begin"/> + <xsl:if test="./subtitle"><xsl:apply-templates select="./subtitle" mode="component.title.mode"/> </xsl:if> + <xsl:if test="$preamble"> <xsl:apply-templates select="$preamble"/> </xsl:if> + <xsl:if test="$divs"> <xsl:apply-templates select="$divs"/> </xsl:if> + <xsl:if test="$entries"> <xsl:apply-templates select="$entries"/></xsl:if> + <xsl:call-template name="map.end"/> + </xsl:template> + + <xsl:template match="glossary/glossaryinfo"/> + <xsl:template match="glossary/title"/> + <xsl:template match="glossary/subtitle"/> + <xsl:template match="glossary/titleabbrev"/> + <xsl:template match="glossary/title" mode="component.title.mode"> <xsl:apply-templates/> </xsl:template> + <xsl:template match="glossary/subtitle" mode="component.title.mode"> <xsl:apply-templates/> </xsl:template> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="glossdiv|glosslist" xmlns=""> + <refpurpose> Glossary Division and Glossary Lists XSL templates. </refpurpose> + <refdescription><para>T.B.D</para> + </refdescription> + <itemizedlist> + <listitem><para>Call template map.begin.</para></listitem> + <listitem><para>Apply Templates.</para></listitem> + <listitem><para>Call template map.end.</para></listitem> + </itemizedlist> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + <listitem><para>Template for glossdiv/glossaryinfo is EMPTY.</para></listitem> + </itemizedlist> + </formalpara> + </doc:template> + <!--############################################################################# --> + <xsl:template match="glossdiv|glosslist"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + <xsl:call-template name="map.end"/> + </xsl:template> + + <xsl:template match="glossdiv/title" /> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="glossentry" xmlns=""> + <refpurpose> Glossary Entry XSL template / entry point </refpurpose> + <refdescription> + <para>T.B.D.</para> + </refdescription> + <itemizedlist> + <listitem><para>Apply Templates.</para></listitem> + </itemizedlist> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + <listitem><para>Explicit Templates for <literal>glossentry/glossterm</literal></para></listitem> + <listitem><para>Explicit Templates for <literal>glossentry/acronym</literal></para></listitem> + <listitem><para>Explicit Templates for <literal>glossentry/abbrev</literal></para></listitem> + <listitem><para>Explicit Templates for <literal>glossentry/glossdef</literal></para></listitem> + <listitem><para>Explicit Templates for <literal>glossentry/glosssee</literal></para></listitem> + <listitem><para>Explicit Templates for <literal>glossentry/glossseealso</literal></para></listitem> + <listitem><para>Template for glossentry/revhistory is EMPTY.</para></listitem> + </itemizedlist> + </formalpara> + </doc:template> + <!--############################################################################# --> + + + <xsl:template match="glossentry"> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="glossentry/glossterm"> + <xsl:text>\item[</xsl:text> + <xsl:if test="../@id!=''"> + <xsl:text>\hypertarget{</xsl:text> + <xsl:value-of select="../@id"/> + <xsl:text>}</xsl:text> + </xsl:if> + <xsl:text>{</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="."/> + </xsl:call-template> + <xsl:text>}] </xsl:text> + </xsl:template> + + <xsl:template match="glossentry/acronym"> + <xsl:text> ( \texttt {</xsl:text> <xsl:apply-templates/> <xsl:text>} ) </xsl:text> + </xsl:template> + + <xsl:template match="glossentry/abbrev"> + <xsl:text> [ </xsl:text> <xsl:apply-templates/> <xsl:text> ] </xsl:text> + </xsl:template> + + <xsl:template match="glossentry/revhistory"/> + + <xsl:template match="glossentry/glossdef"> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="glossseealso|glossentry/glosssee"> + <xsl:variable name="otherterm" select="@otherterm"/> + <xsl:variable name="targets" select="//node()[@id=$otherterm]"/> + <xsl:variable name="target" select="$targets[1]"/> + <xsl:call-template name="gentext.element.name"/> + <xsl:call-template name="gentext.space"/> + <xsl:call-template name="gentext.startquote"/> + <xsl:choose> + <xsl:when test="@otherterm"> + <xsl:text>\hyperlink{</xsl:text><xsl:value-of select="@otherterm"/> + <xsl:text>}{</xsl:text><xsl:apply-templates select="$target" mode="xref"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> + <xsl:call-template name="gentext.endquote"/> + <xsl:text>. </xsl:text> + </xsl:template> + + <xsl:template match="glossentry" mode="xref"> + <xsl:apply-templates select="./glossterm" mode="xref"/> + </xsl:template> + + <xsl:template match="glossterm" mode="xref"> + <xsl:apply-templates/> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/graphic.mod.xsl b/docs/docbook/xslt/db2latex/graphic.mod.xsl new file mode 100644 index 0000000000..89799dbbb9 --- /dev/null +++ b/docs/docbook/xslt/db2latex/graphic.mod.xsl @@ -0,0 +1,90 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: graphic.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="graphic" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: graphic.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Graphics <filename>graphic.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <xsl:template match="screenshot"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="screeninfo"> + </xsl:template> + + + <xsl:template match="graphic[@fileref]"> + <xsl:text>\includegraphics{</xsl:text> <xsl:value-of select="normalize-space(@fileref)"/>} + </xsl:template> + + <xsl:template match="graphic[@entityref]"> + <xsl:text>\includegraphics{</xsl:text> <xsl:value-of select="unparsed-entity-uri(@entityref)"/>} + </xsl:template> + + + <xsl:template match="inlinegraphic[@fileref]"> + <xsl:choose> + <xsl:when test="@format='linespecific'"> + <a xml:link="simple" show="embed" actuate="auto" href="{@fileref}"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>\includegraphics{</xsl:text> + <xsl:if test="@align"> + <!-- <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute> --> + </xsl:if> + <xsl:value-of select="normalize-space(@fileref)"/>} + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="inlinegraphic[@entityref]"> + <xsl:choose> + <xsl:when test="@format='linespecific'"> + <a xml:link="simple" show="embed" actuate="auto" href="{@fileref}"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>\includegraphics{</xsl:text> + <xsl:if test="@align"> + <!-- <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute> --> + </xsl:if> + <xsl:value-of select="unparsed-entity-uri(@entityref)"/>} + </xsl:otherwise> + </xsl:choose> + </xsl:template> +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/html.mod.xsl b/docs/docbook/xslt/db2latex/html.mod.xsl new file mode 100644 index 0000000000..fade6e7e78 --- /dev/null +++ b/docs/docbook/xslt/db2latex/html.mod.xsl @@ -0,0 +1,17 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + <!--############################################################################# + | $Id: html.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: + | + + ############################################################################## --> + + + <xsl:template name="html"> + </xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/index.mod.xsl b/docs/docbook/xslt/db2latex/index.mod.xsl new file mode 100644 index 0000000000..76985c19fd --- /dev/null +++ b/docs/docbook/xslt/db2latex/index.mod.xsl @@ -0,0 +1,216 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: index.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="index" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: index.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Index <filename>index.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + +<!-- This parameter is for enabeling or disabling of indexterms --> +<xsl:param name="latex.generate.indexterm">1</xsl:param> + +<!-- Our key for ranges --> +<xsl:key name="indexterm-range" match="indexterm[@class='startofrange']" use="@id"/> + + + + +<!-- ############################################################### --> +<!-- Index --> +<!-- --> +<!-- ############################################################### --> +<xsl:template match="index|setindex"> + <xsl:call-template name="label.id"/> + <xsl:text>\printindex </xsl:text> +</xsl:template> + +<xsl:template match="index/title"></xsl:template> +<xsl:template match="index/subtitle"></xsl:template> +<xsl:template match="index/titleabbrev"></xsl:template> + +<xsl:template match="index/title" mode="component.title.mode"> + <xsl:call-template name="label.id"> <xsl:with-param name="object" select=".."/> </xsl:call-template> +</xsl:template> + +<xsl:template match="index/subtitle" mode="component.title.mode"/> + + +<!-- ############################################################### --> +<!-- IndexDiv --> +<!-- --> +<!-- ############################################################### --> +<xsl:template match="indexdiv"> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="indexdiv/title"> + <xsl:call-template name="label.id"> <xsl:with-param name="object" select=".."/> </xsl:call-template> +</xsl:template> + + +<!-- INDEX TERM CONTENT MODEL +IndexTerm ::= +(Primary, +((Secondary, +((Tertiary, +(See|SeeAlso+)?)| +See|SeeAlso+)?)| +See|SeeAlso+)?) +--> +<!-- ############################################################### --> +<!-- IndexDiv --> +<!-- --> +<!-- ############################################################### --> +<xsl:template match="indexterm"> +<xsl:if test="$latex.generate.indexterm != 0"> +<!-- + <xsl:text>\index{</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="normalize-space(./primary)"/> + </xsl:call-template> + <xsl:if test="./secondary"> + <xsl:text>!</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="normalize-space(./secondary)"/> + </xsl:call-template> + </xsl:if> + <xsl:if test="./tertiary"> + <xsl:text>!</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="normalize-space(./tertiary)"/> + </xsl:call-template> + </xsl:if> + <xsl:if test="./see"> + <xsl:text>|see{</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="normalize-space(./see)"/> + </xsl:call-template> + <xsl:text>}</xsl:text> + </xsl:if> + <xsl:if test="./seealso"> + <xsl:text>|see{</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="normalize-space(./seealso)"/> + </xsl:call-template> + <xsl:text>}</xsl:text> + </xsl:if> + <xsl:text>}</xsl:text> +--> + <xsl:variable name="idxterm"> + <xsl:apply-templates mode="indexterm"/> + </xsl:variable> + + <xsl:if test="@class and @zone"> + <xsl:message terminate="yes">Error: Only one attribut (@class or @zone) is in indexterm possible!</xsl:message> + </xsl:if> + + <xsl:choose> + <xsl:when test="@class='startofrange'"> + <xsl:text>\index{</xsl:text> + <xsl:value-of select="normalize-space($idxterm)"/> + <xsl:text>|(}</xsl:text> + </xsl:when> + <xsl:when test="@class='endofrange'"> + <xsl:choose> + <xsl:when test="count(key('indexterm-range',@startref)) = 0"> + <xsl:message terminate="yes"><xsl:text>Error: No indexterm with </xsl:text> + <xsl:text>id='</xsl:text><xsl:value-of select="@startref"/> + <xsl:text>' found!</xsl:text> + <xsl:text> Check your attributs id/startref in your indexterms!</xsl:text> + </xsl:message> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="thekey" select="key('indexterm-range',@startref)"/> + <xsl:text>\index{</xsl:text> + <xsl:apply-templates select="$thekey/*" mode="indexterm"/> + <xsl:text>|)}</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:text>\index{</xsl:text> + <xsl:message terminate="no"><xsl:text>Simple case:</xsl:text></xsl:message> + <xsl:value-of select="normalize-space($idxterm)"/> + <xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:if> +</xsl:template> + + +<!-- ================================================ --> +<xsl:template match="*" mode="indexterm"> + <xsl:message>WARNING: Element '<xsl:value-of select="local-name()"/>' in indexterm not supported!</xsl:message> +</xsl:template> + + + +<!-- ================================================ --> +<xsl:template match="primary" mode="indexterm"> +<xsl:apply-templates mode="indexterm"/> +</xsl:template> + +<xsl:template match="secondary" mode="indexterm"> +<xsl:text>!</xsl:text> +<xsl:apply-templates mode="indexterm"/> +</xsl:template> + +<xsl:template match="tertiary" mode="indexterm"> +<xsl:text>!</xsl:text> +<xsl:apply-templates mode="indexterm"/> +</xsl:template> + +<xsl:template match="see|seealso" mode="indexterm"> +<xsl:text>|see{</xsl:text> +<xsl:apply-templates mode="indexterm"/> +<xsl:text>} </xsl:text> +</xsl:template> + + +<!-- ================================================ --> +<!-- A simple example of what can be in an primary, --> +<!-- secondary or tertiary. --> +<!-- ================================================ --> +<xsl:template match="acronym" mode="indexterm"> +<xsl:apply-templates mode="indexterm"/> +</xsl:template> + + +<xsl:template match="primary|secondary|tertiary|see|seealso"/> +<xsl:template match="indexentry"/> +<xsl:template match="primaryie|secondaryie|tertiaryie|seeie|seealsoie"/> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/info.mod.xsl b/docs/docbook/xslt/db2latex/info.mod.xsl new file mode 100644 index 0000000000..3b8bb5162a --- /dev/null +++ b/docs/docbook/xslt/db2latex/info.mod.xsl @@ -0,0 +1,69 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: info.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="info" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: info.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Info <filename>info.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <!-- These templates define the "default behavior" for info + elements. Even if you don't process the *info wrappers, + some of these elements are needed because the elements are + processed from named templates that are called with modes. + Since modes aren't sticky, these rules apply. + (TODO: clarify this comment) --> + + + <xsl:template match="corpauthor"> + <xsl:apply-templates/> + </xsl:template> + + + <xsl:template match="jobtitle"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="orgname"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="orgdiv"> + <xsl:apply-templates/> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/inline.mod.xsl b/docs/docbook/xslt/db2latex/inline.mod.xsl new file mode 100644 index 0000000000..5661ca4385 --- /dev/null +++ b/docs/docbook/xslt/db2latex/inline.mod.xsl @@ -0,0 +1,526 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: inline.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="inline" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: inline.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Inline <filename>inline.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + + + <xsl:template name="inline.charseq"> + <xsl:param name="content"> + <xsl:apply-templates/> + </xsl:param> + <xsl:copy-of select="$content"/> + </xsl:template> + + <xsl:template name="inline.monoseq"> + <xsl:param name="hyphenation">\docbookhyphenatedot</xsl:param> + <xsl:param name="content"> + <xsl:apply-templates/> + </xsl:param> + <xsl:text>{\texttt{</xsl:text> + <xsl:if test="$latex.hyphenation.tttricks='1'"><xsl:value-of select="$hyphenation" /></xsl:if> + <xsl:text>{</xsl:text> + <xsl:copy-of select="$content"/> + <xsl:text>}}}</xsl:text> + </xsl:template> + + <xsl:template name="inline.boldseq"> + <xsl:param name="content"> + <xsl:apply-templates/> + </xsl:param> + <xsl:text>{\bfseries </xsl:text> + <xsl:copy-of select="$content"/> + <xsl:text>}</xsl:text> + </xsl:template> + + <xsl:template name="inline.italicseq"> + <xsl:param name="content"> + <xsl:apply-templates/> + </xsl:param> + <xsl:text>{\em </xsl:text> + <xsl:copy-of select="$content"/> + <xsl:text>}</xsl:text> + </xsl:template> + + <xsl:template name="inline.boldmonoseq"> + <xsl:param name="hyphenation">\docbookhyphenatedot</xsl:param> + <xsl:param name="content"> + <xsl:apply-templates/> + </xsl:param> + <xsl:text>{\texttt\bfseries{</xsl:text> + <xsl:if test="$latex.hyphenation.tttricks='1'"><xsl:value-of select="$hyphenation" /></xsl:if> + <xsl:text>{</xsl:text> + <xsl:copy-of select="$content"/> + <xsl:text>}}}</xsl:text> + </xsl:template> + + <xsl:template name="inline.italicmonoseq"> + <xsl:param name="hyphenation">\docbookhyphenatedot</xsl:param> + <xsl:param name="content"> + <xsl:apply-templates/> + </xsl:param> + <xsl:text>{\texttt\itshape{</xsl:text> + <xsl:if test="$latex.hyphenation.tttricks='1'"><xsl:value-of select="$hyphenation" /></xsl:if> + <xsl:text>{</xsl:text> + <xsl:copy-of select="$content"/> + <xsl:text>}}}</xsl:text> + </xsl:template> + + <xsl:template name="inline.superscriptseq"> + <xsl:param name="content"> + <xsl:apply-templates/> + </xsl:param> + <xsl:text>$^\text{</xsl:text> + <xsl:copy-of select="$content"/> + <xsl:text>}$</xsl:text> + </xsl:template> + + <xsl:template name="inline.subscriptseq"> + <xsl:param name="content"> + <xsl:apply-templates/> + </xsl:param> + <xsl:text>$_\text{</xsl:text> + <xsl:copy-of select="$content"/> + <xsl:text>}$</xsl:text> + </xsl:template> + + + + + + + <!-- ==================================================================== --> + <!-- some special cases --> + + <xsl:template match="author"> + <xsl:call-template name="person.name"/> + </xsl:template> + + <xsl:template match="editor"> + <xsl:call-template name="person.name"/> + </xsl:template> + + <xsl:template match="othercredit"> + <xsl:call-template name="person.name"/> + </xsl:template> + + <xsl:template match="authorinitials"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <!-- ==================================================================== --> + + <xsl:template match="accel"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="action"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="application"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="classname"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="exceptionname"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="interfacename"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="methodname"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="command"> + <xsl:call-template name="inline.boldseq"/> + </xsl:template> + + <xsl:template match="computeroutput"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="constant"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="database"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="errorcode"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="errorname"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="errortype"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="envar"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="filename"> + <xsl:call-template name="inline.monoseq"><xsl:with-param name="hyphenation">\docbookhyphenatefilename</xsl:with-param></xsl:call-template> + </xsl:template> + + + + <xsl:template match="function"> + <xsl:choose> + <xsl:when test="$function.parens != '0' + or parameter or function or replaceable"> <xsl:variable name="nodes" select="text()|*"/> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:apply-templates select="$nodes[1]"/> + </xsl:with-param> + </xsl:call-template> + <xsl:text>(</xsl:text> + <xsl:apply-templates select="$nodes[position()>1]"/> + <xsl:text>)</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="inline.monoseq"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="function/parameter" priority="2"> + <xsl:call-template name="inline.italicmonoseq"/> + <xsl:if test="following-sibling::*"> + <xsl:text>, </xsl:text> + </xsl:if> + </xsl:template> + + <xsl:template match="function/replaceable" priority="2"> + <xsl:call-template name="inline.italicmonoseq"/> + <xsl:if test="following-sibling::*"> + <xsl:text>, </xsl:text> + </xsl:if> + </xsl:template> + + <xsl:template match="guibutton|guiicon|guilabel|guimenu|guimenuitem|guisubmenu|interface"> + <xsl:text>{\sffamily \bfseries </xsl:text> + <xsl:call-template name="inline.charseq" /> + <xsl:text>}</xsl:text> + </xsl:template> + + <xsl:template match="hardware"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="interfacedefinition"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="keycap|keysym"> + <xsl:call-template name="inline.boldseq" /> + </xsl:template> + + <xsl:template match="keycode"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="literal"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="medialabel"> + <xsl:call-template name="inline.italicseq"/> + </xsl:template> + + <xsl:template match="shortcut"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="mousebutton"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="option"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="parameter" priority="1"> + <xsl:call-template name="inline.italicmonoseq"/> + </xsl:template> + + <xsl:template match="property"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="prompt"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="replaceable" priority="1"> + <xsl:call-template name="inline.italicmonoseq"/> + </xsl:template> + + <xsl:template match="returnvalue"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="structfield"> + <xsl:call-template name="inline.italicmonoseq"/> + </xsl:template> + + <xsl:template match="structname"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="symbol"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="systemitem"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="token"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="type"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="userinput"> + <xsl:call-template name="inline.boldmonoseq"/> + </xsl:template> + + <xsl:template match="abbrev"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="acronym"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="citerefentry"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="citetitle"> + <xsl:call-template name="inline.italicseq"/> + </xsl:template> + + <xsl:template match="emphasis"> + <xsl:call-template name="inline.italicseq"/> + </xsl:template> + + <xsl:template match="emphasis[@role='bold']"> + <xsl:call-template name="inline.boldseq"/> + </xsl:template> + + <xsl:template match="foreignphrase"> + <xsl:call-template name="inline.italicseq"/> + </xsl:template> + + <xsl:template match="markup"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <doc:template match="phrase"> + <refpurpose> A span of text </refpurpose> + <refdescription><para> + This is a regular inline sequence. + However, if the role attribute is 'tex' or 'latex', the content + will be output without LaTeX active-character escaping. + </para></refdescription> + </doc:template> + <xsl:template match="phrase"> + <xsl:choose> + <xsl:when test="@role='tex' or @role='latex'"> + <xsl:value-of select="."/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="inline.charseq"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="quote"> + <xsl:call-template name="gentext.nestedstartquote"/> + <xsl:call-template name="inline.charseq"/> + <xsl:call-template name="gentext.nestedendquote"/> + </xsl:template> + + <xsl:template match="varname"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template match="wordasword"> + <xsl:call-template name="inline.italicseq"/> + </xsl:template> + + <xsl:template match="lineannotation"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="superscript"> + <xsl:call-template name="inline.superscriptseq"/> + </xsl:template> + + <xsl:template match="subscript"> + <xsl:call-template name="inline.subscriptseq"/> + </xsl:template> + + <xsl:template match="trademark"> + <xsl:call-template name="inline.charseq"/> + <xsl:call-template name="dingbat"> + <xsl:with-param name="dingbat">trademark</xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template match="firstterm"> + <xsl:call-template name="inline.italicseq"/> + </xsl:template> + + <xsl:template match="glossterm"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="keycombo"> + <xsl:variable name="action" select="@action"/> + <xsl:variable name="joinchar"> + <xsl:choose> + <xsl:when test="$action='seq'"><xsl:text> </xsl:text></xsl:when> + <xsl:when test="$action='simul'">+</xsl:when> + <xsl:when test="$action='press'">--</xsl:when> + <xsl:when test="$action='click'">--</xsl:when> + <xsl:when test="$action='double-click'">--</xsl:when> + <xsl:when test="$action='other'"></xsl:when> + <xsl:otherwise>--</xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:for-each select="./*"> + <xsl:if test="position()>1"><xsl:value-of select="$joinchar"/></xsl:if> + <xsl:apply-templates select="."/> + </xsl:for-each> + </xsl:template> + + <!-- ==================================================================== --> + + <xsl:template match="menuchoice"> + <xsl:variable name="shortcut" select="./shortcut"/> + <xsl:call-template name="process.menuchoice"/> + <xsl:if test="$shortcut"> + <xsl:text> (</xsl:text> + <xsl:apply-templates select="$shortcut"/> + <xsl:text>)</xsl:text> + </xsl:if> + </xsl:template> + + <xsl:template name="process.menuchoice"> + <xsl:param name="nodelist" select="guibutton|guiicon|guilabel|guimenu|guimenuitem|guisubmenu|interface"/><!-- not(shortcut) --> + <xsl:param name="count" select="1"/> + + <xsl:choose> + <xsl:when test="$count>count($nodelist)"></xsl:when> + <xsl:when test="$count=1"> + <xsl:apply-templates select="$nodelist[$count=position()]"/> + <xsl:call-template name="process.menuchoice"> + <xsl:with-param name="nodelist" select="$nodelist"/> + <xsl:with-param name="count" select="$count+1"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="node" select="$nodelist[$count=position()]"/> + <xsl:choose> + <xsl:when test="name($node)='guimenuitem' + or name($node)='guisubmenu'"> + <xsl:text> $\to$ </xsl:text> + </xsl:when> + <xsl:otherwise>+</xsl:otherwise> + </xsl:choose> + <xsl:apply-templates select="$node"/> + <xsl:call-template name="process.menuchoice"> + <xsl:with-param name="nodelist" select="$nodelist"/> + <xsl:with-param name="count" select="$count+1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <!-- ==================================================================== --> + + <xsl:template match="optional"> + <xsl:value-of select="$arg.choice.opt.open.str"/> + <xsl:call-template name="inline.charseq"/> + <xsl:value-of select="$arg.choice.opt.close.str"/> + </xsl:template> + + <!-- ==================================================================== --> + + <xsl:template match="comment|remark"> + <xsl:if test="$show.comments != 0"> + <i><xsl:call-template name="inline.charseq"/></i> + </xsl:if> + </xsl:template> + + <!-- ==================================================================== --> + + <xsl:template match="productname"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="productnumber"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <!-- ==================================================================== --> + + <xsl:template match="pob|street|city|state|postcode|country|phone|fax|otheraddr"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <!-- ==================================================================== --> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/keywords.mod.xsl b/docs/docbook/xslt/db2latex/keywords.mod.xsl new file mode 100644 index 0000000000..c3fd7376b5 --- /dev/null +++ b/docs/docbook/xslt/db2latex/keywords.mod.xsl @@ -0,0 +1,62 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: keywords.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="keywords" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: keywords.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Keywords <filename>keywords.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + +<xsl:template match="keywordset"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + <xsl:call-template name="map.end"/> +</xsl:template> + +<xsl:template match="keyword"> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="normalize-space(.)"/> + </xsl:call-template> + <xsl:if test="following-sibling::keyword">, </xsl:if> +</xsl:template> + + + + + +<xsl:template match="subjectset"></xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/labelid.mod.xsl b/docs/docbook/xslt/db2latex/labelid.mod.xsl new file mode 100644 index 0000000000..7f8206321f --- /dev/null +++ b/docs/docbook/xslt/db2latex/labelid.mod.xsl @@ -0,0 +1,479 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: labelid.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: When this template is called, it marks the object with a label +| and an hypertarget. ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="labelid" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: labelid.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Labels <filename>labelid.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + <doc:template name="label.id" xmlns=""> + <refpurpose>Marks the current object with a label.</refpurpose> + <refdescription> + <para>This template marks the current object with a <literal> + \label{.}</literal>. The passed argument indicates the object whose + <literal>id attribute</literal> is used to generate the label. + In this sense, in most cases its the current node itself. + If the used object has not an id attribute, a unique id is + obtained by means of the <literal>generate-id</literal> function. + Moreover, if we are using the hyperref package, a hypertarget is + also defined for this object. </para> + </refdescription> + <refparameter> + <variablelist> + <varlistentry><term>object</term> + <listitem><para>The node whose id is to be used.</para></listitem> + </varlistentry> + </variablelist> + </refparameter> + <refreturn> + <para>This template returns the id that has been used to label the + object.</para> + </refreturn> + </doc:template> + + <xsl:template name="label.id"> + <xsl:text>\label{</xsl:text> + <xsl:call-template name="generate.label.id"/> + <xsl:text>}</xsl:text> + </xsl:template> + + <xsl:template name="generate.label.id"> + <xsl:param name="object" select="."/> + <xsl:variable name="id"> + <xsl:choose> + <xsl:when test="$object/@id"> + <xsl:value-of select="$object/@id"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="generate-id($object)"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:value-of select="normalize-space($id)"/> + </xsl:template> + + + + + <!-- + <xsl:template match="*" mode="label.content"> + <xsl:message> + <xsl:text>Request for label of unexpected element: </xsl:text> + <xsl:value-of select="name(.)"/> + </xsl:message> + </xsl:template> + + <xsl:template match="set|book" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> + </xsl:template> + + <xsl:template match="part" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$part.autolabel != 0"> + <xsl:number from="book" count="part" format="I"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + + <xsl:template match="preface" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$preface.autolabel != 0"> + <xsl:number from="book" count="preface" format="1" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="chapter" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$chapter.autolabel != 0"> + <xsl:number from="book" count="chapter" format="1" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="appendix" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$chapter.autolabel != 0"> + <xsl:number from="book" count="appendix" format="A" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="article" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> + </xsl:template> + + + <xsl:template match="dedication|colophon" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> + </xsl:template> + + <xsl:template match="reference" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$part.autolabel != 0"> + <xsl:number from="book" count="reference" format="I" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="refentry" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> + </xsl:template> + + <xsl:template match="section" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + + <xsl:if test="local-name(..) = 'section'"> + <xsl:apply-templates select=".." mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + </xsl:if> + + <xsl:variable name="parent.is.component"> + <xsl:call-template name="is.component"> + <xsl:with-param name="node" select=".."/> + </xsl:call-template> + </xsl:variable> + + <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:apply-templates select=".." mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + </xsl:if> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$label != 0"> + <xsl:number count="section"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="sect1" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + + <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:apply-templates select=".." mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + </xsl:if> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:number count="sect1"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="sect2|sect3|sect4|sect5" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + + <xsl:apply-templates select=".." mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </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:otherwise> + <xsl:message>label.content: this can't happen!</xsl:message> + </xsl:otherwise> + </xsl:choose> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + <xsl:template match="refsect1|refsect2|refsect3" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:number level="multiple" count="refsect1|refsect2|refsect3"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="simplesect" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$section.autolabel != 0"> + <xsl:number level="multiple" count="section + |sect1|sect2|sect3|sect4|sect5 + |refsect1|refsect2|refsect3 + |simplesect"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="qandadiv" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:variable name="prefix"> + <xsl:if test="$qanda.inherit.numeration != 0"> + <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:if test="count($lparent)>0"> + <xsl:apply-templates select="$lparent" mode="label.content"/> + </xsl:if> + </xsl:if> + </xsl:variable> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="$prefix"/> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:when test="$qandadiv.autolabel != 0"> + <xsl:value-of select="$prefix"/> + <xsl:number level="multiple" count="qandadiv" format="1"/> + <xsl:value-of select="$punct"/> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="question|answer" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:variable name="prefix"> + <xsl:if test="$qanda.inherit.numeration != 0"> + <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 + |ancestor::qandadiv)[last()]"/> + <xsl:if test="count($lparent)>0"> + <xsl:apply-templates select="$lparent" mode="label.content"/> + </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"/> + + <xsl:choose> + <xsl:when test="count($label)>0"> + <xsl:value-of select="$prefix"/> + <xsl:apply-templates select="$label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + + <xsl:when test="$deflabel = 'qanda'"> + <xsl:call-template name="gentext.element.name"/> + </xsl:when> + + <xsl:when test="$deflabel = 'number'"> + <xsl:if test="name(.) = 'question'"> + <xsl:value-of select="$prefix"/> + <xsl:number level="multiple" count="qandaentry" format="1"/> + <xsl:value-of select="$punct"/> + </xsl:if> + </xsl:when> + </xsl:choose> + </xsl:template> + + <xsl:template match="bibliography|glossary|index" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:if test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:if> + </xsl:template> + + <xsl:template match="figure|table|example|equation" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + <xsl:choose> + <xsl:when test="@label"> + <xsl:value-of select="@label"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="pchap" + select="ancestor::chapter|ancestor::appendix"/> + <xsl:choose> + <xsl:when test="count($pchap)>0"> + <xsl:apply-templates select="$pchap" mode="label.content"> + <xsl:with-param name="punct">.</xsl:with-param> + </xsl:apply-templates> + <xsl:number format="1" from="chapter|appendix" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:when> + <xsl:otherwise> + <xsl:number format="1" from="book|article" level="any"/> + <xsl:value-of select="$punct"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="abstract" mode="label.content"> + <xsl:param name="punct">.</xsl:param> + </xsl:template> + --> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/latex.mapping.dtd b/docs/docbook/xslt/db2latex/latex.mapping.dtd new file mode 100644 index 0000000000..361ce5a18d --- /dev/null +++ b/docs/docbook/xslt/db2latex/latex.mapping.dtd @@ -0,0 +1,13 @@ +<!ELEMENT latexbindings (latexmapping+)> +<!ELEMENT latexmapping (mapping+)> +<!ELEMENT mapping (line*)> +<!ELEMENT line (#PCDATA)> + +<!ATTLIST latexmapping +role CDATA #REQUIRED +> +<!ATTLIST mapping +key CDATA #REQUIRED +text CDATA #REQUIRED +> + diff --git a/docs/docbook/xslt/db2latex/latex.mapping.xml b/docs/docbook/xslt/db2latex/latex.mapping.xml new file mode 100644 index 0000000000..1616774046 --- /dev/null +++ b/docs/docbook/xslt/db2latex/latex.mapping.xml @@ -0,0 +1,290 @@ +<?xml version='1.0'?> +<!DOCTYPE latexbindings SYSTEM "latex.mapping.dtd" []> + +<latexbindings> + + <!-- + ################################################################ + Keywords + %id + %title + ################################################################ --> + + + <!-- LaTeX mapping, role, BEGIN --> + <latexmapping role="begin"> + + <mapping key="abstract" text=""> + <line> </line> + <line>% -------------------------------------------- </line> + <line>% Abstract </line> + <line>% -------------------------------------------- </line> + <line>\begin{abstract} </line> + </mapping> + + <mapping key="admonition" text=""> + <line> </line> + <line>\begin{admonition}%title% NOTICE: see the db2latex FAQ w.r.t db2latex variable $latex.admonition.path </line> + </mapping> + + <mapping key="appendixes" text=""> + <line>% ------------------------------------------------------------- </line> + <line>% Appendixes start here </line> + <line>% ------------------------------------------------------------- </line> + <line>\appendix </line> + </mapping> + + <mapping key="appendix" text=""> + <line> </line> + <line>% ------------------------------------------------------------- </line> + <line>% appendix: %title </line> + <line>% ------------------------------------------------------------- </line> + <line>\dbappendix{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="chapter" text=""> + <line> </line> + <line>% ------------------------------------------------------------- </line> + <line>% Chapter %title </line> + <line>% ------------------------------------------------------------- </line> + <line>\chapter{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="figure" text=""> + <line> </line> + <line>% figure ------------------------------------------------------ </line> + <line>\begin{figure}[hbt] </line> + <line>\begin{center}% </line> + <line>\hypertarget{%id}{}% </line> + </mapping> + + + <mapping key="keywordset" text=""> + <line> </line> + <line>% keywords ------------------------------------------------------ </line> + <line>\begin{keywords} </line> + </mapping> + + <mapping key="table" text=""> + <line> </line> + <line>% table ------------------------------------------------------ </line> + <line>\begin{table}[hbt] </line> + <line>\begin{center}% </line> + <line>\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="informaltable" text=""> + <line> </line> + <line>% tabular ------------------------------------------------------ </line> + <line>\begin{center} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="equation" text=""> + <line> \begin{dbequation} </line> + <line>\begin{center} </line> + </mapping> + + <mapping key="glossary" text=""> + <line>% ------------------------------------------------------------- </line> + <line>% </line> + <line>% GLOSSARY %title </line> + <line>% </line> + <line>% ------------------------------------------------------------- </line> + <line>\dbglossary{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="glossdiv" text=""> + <line>% </line> + <line>% ------------------------------------------------------------- </line> + <line>\dbglossdiv{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + <line>\noindent% </line> + <line>\begin{description}% </line> + </mapping> + + <mapping key="part" text=""> + <line>% ------------------------------------------------------------- </line> + <line>% </line> + <line>% PART %title </line> + <line>% </line> + <line>% ------------------------------------------------------------- </line> + <line>\part{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="refentry" text=""> + <line>% </line> + <line>% ------------------------------------------------------------- </line> + <line>% Refentry </line> + <line>% ------------------------------------------------------------- </line> + <line>\section*{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="reference" text=""> + <line>% </line> + <line>% ------------------------------------------------------------- </line> + <line>% Reference </line> + <line>% ------------------------------------------------------------- </line> + <line>\chapter*{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="revhistory" text=""> + <line> </line> + <line>% ------------------------ </line> + <line>% RevHistory </line> + <line>% ------------------------ </line> + <line>\pagebreak </line> + <line>\section*{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + <line>\begin{center} </line> + <line>\begin{tt} </line> + <line>\begin{tabular}{|l||l|l|} \hline </line> + </mapping> + + <mapping key="example" text=" \begin{example}% "/> + + <mapping key="programlisting" text=" \begin{program}% "/> + + <mapping key="sect1" text=""> + <line> </line> + <line>% ------------------------ </line> + <line>% Section </line> + <line>\section{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="sect2" text=""> + <line>\subsection{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="sect3" text=""> + <line>\subsubsection{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="sect4" text=""> + <line>\subparagraph*{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="sect5" text=""> + <line>\subparagraph*{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="sect6" text=""> + <line>\subparagraph*{%title} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="formalpara" text=""> + <line>\subsubsection*{\small{%title}} </line> + <line>\label{%id}\hypertarget{%id}{}% </line> + </mapping> + + <mapping key="refentry" text=" \section*{%title} \label{%id} "/> + <mapping key="refsect1" text=" \subsection*{%title} \label{%id} "/> + <mapping key="refsect2" text=" \subsubsection*{%title} \label{%id} "/> + <mapping key="refsect3" text=" \paragraph*{%title} \label{%id} "/> + + </latexmapping> + + + + <!-- LaTeX mapping, role, END --> + + <latexmapping role="end"> + + <mapping key="abstract" text=""> + <line>\end{abstract} </line> + <line> </line> + </mapping> + + <mapping key="admonition" text=""> + <line>\end{admonition} </line> + <line> </line> + </mapping> + + <mapping key="book" text=""> + <line> </line> + <line>\end{document} </line> + <line> </line> + </mapping> + + <mapping key="chapter" text=""/> + + <mapping key="example" text=""> + <line>\label{%id}\hypertarget{%id}{}% </line> + <line>\end{example} </line> + <line> </line> + </mapping> + + <mapping key="figure" text=""> + <line>\label{%id} </line> + <line>\end{center} </line> + <line>\end{figure} </line> + <line> </line> + </mapping> + <mapping key="equation" text=""> + <line>\label{%id}\hypertarget{%id}{}% </line> + <line>\end{center} </line> + <line>\end{dbequation} </line> + <line> </line> + </mapping> + + <mapping key="glossary" text=""> + </mapping> + + <mapping key="glossdiv" text=""> + <line>\end{description}% </line> + </mapping> + + + <mapping key="keywordset" text=""> + <line>\end{keywords} </line> + </mapping> + + <mapping key="part" text=""> + </mapping> + + <mapping key="table" text=""> + <line>\label{%id} </line> + <line>\end{center} </line> + <line>\end{table} </line> + <line> </line> + </mapping> + + <mapping key="informaltable" text=""> + <line>\end{center} </line> + <line> </line> + </mapping> + + <mapping key="programlisting" text=""> + <line>\label{%id}\hypertarget{%id}{}% </line> + <line>\end{center} </line> + <line>\end{program} </line> + <line> </line> + </mapping> + + <mapping key="revhistory" text=""> + <line>\end{tabular} </line> + <line>\end{tt} </line> + <line>\end{center} </line> + <line>% ------------------------ </line> + <line>% End RevHistory </line> + <line>% ------------------------ </line> + </mapping> + </latexmapping> + + <latexmapping role="entities"> + <mapping key="∞" text=" \infty "/> + </latexmapping> + +</latexbindings> diff --git a/docs/docbook/xslt/db2latex/latex.mapping.xsl b/docs/docbook/xslt/db2latex/latex.mapping.xsl new file mode 100644 index 0000000000..5e11f9de3c --- /dev/null +++ b/docs/docbook/xslt/db2latex/latex.mapping.xsl @@ -0,0 +1,177 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: latex.mapping.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + <xsl:variable name="latex.mapping.xml" select="document('latex.mapping.xml')"/> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="glossary" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: latex.mapping.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <author> + <firstname>Ramon</firstname><surname>Casellas</surname> + </author> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>The DB2LaTeX mapping system <filename>latex.mapping.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para>The DB2LaTeX mapping system centralizes mapping docbook tags (e.g. <sgmltag>chapter</sgmltag>) + to LaTeX commands <literal>\chapter</literal>. It used an auxiliary file, <filename>latex.mapping.xml</filename> + that defines how the mapping is to be done.</para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template name="latex.mapping" xmlns=""> + <refpurpose></refpurpose> + <refdescription> + <para></para> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + </itemizedlist> + </formalpara> + <formalpara><title>Default Behaviour</title> + <screen></screen> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + + + <xsl:template name="latex.mapping"> + <xsl:param name="object" select="."/> + <xsl:param name="keyword" select="local-name($object)"/> + <xsl:param name="role" select="begin"/> + <xsl:param name="string"> + <xsl:call-template name="extract.object.title"> + <xsl:with-param name="object" select="$object"/> + </xsl:call-template> + </xsl:param> + <xsl:param name="use.label" select="1"/> + <xsl:param name="use.hypertarget" select="1"/> + <xsl:variable name="id"> + <xsl:choose> + <xsl:when test="$object/@id"> <xsl:value-of select="$object/@id"/> </xsl:when> + <xsl:otherwise> <xsl:value-of select="generate-id($object)"/> </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:variable name="title"> + <xsl:choose> + <xsl:when test="$string=''"> + <xsl:call-template name="gentext.element.name"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="normalize-space($string)"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:variable name="latex.mapping.node" + select="($latex.mapping.xml/latexbindings/latexmapping[@role=$role]/mapping[@key=$keyword])"/> + <xsl:choose> + <xsl:when test="$latex.mapping.node/@text!=''"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to"><xsl:value-of select="$id"/></xsl:with-param> + <xsl:with-param name="from">%id</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to"><xsl:value-of select="$title"/></xsl:with-param> + <xsl:with-param name="from">%title</xsl:with-param> + <xsl:with-param name="string"> + <xsl:value-of select="$latex.mapping.node/@text"/> + </xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:for-each select="$latex.mapping.node/line"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to"><xsl:value-of select="$id"/></xsl:with-param> + <xsl:with-param name="from">%id</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to"><xsl:value-of select="$title"/></xsl:with-param> + <xsl:with-param name="from">%title</xsl:with-param> + <xsl:with-param name="string" select="."/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:for-each> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + <xsl:template name="map.begin"> + <xsl:param name="object" select="."/> + <xsl:param name="keyword" select="local-name($object)"/> + <xsl:param name="string"> + <xsl:call-template name="extract.object.title"> + <xsl:with-param name="object" select="$object"/> + </xsl:call-template> + </xsl:param> + <xsl:call-template name="latex.mapping"> + <xsl:with-param name="keyword" select="$keyword"/> + <xsl:with-param name="role">begin</xsl:with-param> + <xsl:with-param name="string" select="$string"/> + </xsl:call-template> + </xsl:template> + + <xsl:template name="map.end"> + <xsl:param name="object" select="."/> + <xsl:param name="keyword" select="local-name($object)"/> + <xsl:param name="role" select="begin"/> + <xsl:param name="string"> + <xsl:call-template name="extract.object.title"> + <xsl:with-param name="object" select="$object"/> + </xsl:call-template> + </xsl:param> + <xsl:call-template name="latex.mapping"> + <xsl:with-param name="keyword" select="$keyword"/> + <xsl:with-param name="string" select="$string"/> + <xsl:with-param name="role">end</xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template match="title" mode="latex"><xsl:apply-templates/></xsl:template> + + <xsl:template name="extract.object.title"> + <xsl:param name="object" select="."/> + <xsl:choose> + <xsl:when test="$latex.apply.title.templates='1'"> + <xsl:apply-templates select="$object/title" mode="latex"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="$object/title"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/lists.mod.xsl b/docs/docbook/xslt/db2latex/lists.mod.xsl new file mode 100644 index 0000000000..29afd0f58d --- /dev/null +++ b/docs/docbook/xslt/db2latex/lists.mod.xsl @@ -0,0 +1,455 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: lists.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="lists" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: lists.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Lists <filename>lists.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + <xsl:template match="variablelist/title| orderedlist/title | itemizedlist/title | simplelist/title"> + <xsl:text> {\sc </xsl:text> + <xsl:apply-templates/> + <xsl:text>} </xsl:text> + </xsl:template> + + + <xsl:template match="itemizedlist"> + <xsl:if test="title"> <xsl:apply-templates select="title"/></xsl:if> + <xsl:text> \begin{itemize} </xsl:text> + <xsl:apply-templates select="listitem"/> + <xsl:text> \end{itemize} </xsl:text> + </xsl:template> + + + <xsl:template match="orderedlist"> + <xsl:variable name="numeration"> + <xsl:choose> + <xsl:when test="@numeration"> + <xsl:value-of select="@numeration"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="arabic"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:if test="title"> <xsl:apply-templates select="title"/></xsl:if> + <xsl:text> \begin{enumerate}</xsl:text> + <xsl:if test="@numeration"> + <xsl:choose> + <xsl:when test="@numeration='arabic'"> <xsl:text>[1]</xsl:text> </xsl:when> + <xsl:when test="@numeration='upperalpha'"><xsl:text>[A]</xsl:text> </xsl:when> + <xsl:when test="@numeration='loweralpha'"><xsl:text>[a]</xsl:text> </xsl:when> + <xsl:when test="@numeration='upperroman'"><xsl:text>[I]</xsl:text> </xsl:when> + <xsl:when test="@numeration='lowerroman'"><xsl:text>[i]</xsl:text> </xsl:when> + </xsl:choose> + </xsl:if> + <xsl:apply-templates select="listitem"/> + \end{enumerate} + </xsl:template> + + + + <xsl:template match="variablelist"> + <xsl:if test="title"> + <xsl:apply-templates select="title"/> + </xsl:if> + <xsl:text> \noindent </xsl:text> + <xsl:text> \begin{description} </xsl:text> + <xsl:apply-templates select="varlistentry"/> + <xsl:text> \end{description} </xsl:text> + </xsl:template> + + + <xsl:template match="listitem"> + <xsl:text> %--- Item </xsl:text> + <xsl:text>\item </xsl:text> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + + + <xsl:template match="varlistentry"> + <xsl:variable name="id"> + <xsl:call-template name="label.id"/> + </xsl:variable> + <xsl:text>\item[</xsl:text><xsl:apply-templates select="term"/><xsl:text>]\mbox{} % mbox is a trick to induce different typesetting decisions</xsl:text> + <xsl:apply-templates select="listitem"/> + </xsl:template> + + + <xsl:template match="varlistentry/term"> + <xsl:apply-templates/><xsl:text>, </xsl:text> + </xsl:template> + + <xsl:template match="varlistentry/term[position()=last()]"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="varlistentry/listitem"> + <xsl:apply-templates/> + </xsl:template> + + + <xsl:template name="tabular.string"> + <xsl:param name="cols" select="1"/> + <xsl:param name="i" select="1"/> + <xsl:choose> + <xsl:when test="$i > $cols"></xsl:when> + <xsl:otherwise> + <xsl:text>l</xsl:text> + <xsl:call-template name="tabular.string"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <!--========================================================================== + | Inline simplelist. It is rendered as a list of comma separated values. + | We make the difference between the last member and the rest. XSL easily + | allows this. + +============================================================================--> + + <xsl:template match="simplelist[@type='inline']"> + <xsl:apply-templates/> + </xsl:template> + <xsl:template match="simplelist[@type='inline']/member"> + <xsl:apply-templates/> + <xsl:text>, </xsl:text> + </xsl:template> + <xsl:template match="simplelist[@type='inline']/member[position()=last()]"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="simplelist[@type='horiz']"> + <xsl:variable name="cols"> + <xsl:choose> + <xsl:when test="@columns"> + <xsl:value-of select="@columns"/> + </xsl:when> + <xsl:otherwise>1</xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:text> </xsl:text> + <xsl:text>\begin{tabular*}{\linewidth}{</xsl:text> + <xsl:call-template name="tabular.string"> + <xsl:with-param name="cols" select="$cols"/> + </xsl:call-template> + <xsl:text>} </xsl:text> + <xsl:call-template name="simplelist.horiz"> + <xsl:with-param name="cols" select="$cols"/> + </xsl:call-template> + <xsl:text> \end{tabular*} </xsl:text> + </xsl:template> + + + + + <xsl:template name="simplelist.horiz"> + <xsl:param name="cols">1</xsl:param> + <xsl:param name="cell">1</xsl:param> + <xsl:param name="members" select="./member"/> + <xsl:if test="$cell <= count($members)"> + <xsl:text> </xsl:text> + <xsl:call-template name="simplelist.horiz.row"> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="cell" select="$cell"/> + <xsl:with-param name="members" select="$members"/> + </xsl:call-template> + <xsl:text> \\</xsl:text> + <xsl:call-template name="simplelist.horiz"> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="cell" select="$cell + $cols"/> + <xsl:with-param name="members" select="$members"/> + </xsl:call-template> + </xsl:if> + </xsl:template> + + <xsl:template name="simplelist.horiz.row"> + <xsl:param name="cols">1</xsl:param> + <xsl:param name="cell">1</xsl:param> + <xsl:param name="members" select="./member"/> + <xsl:param name="curcol">1</xsl:param> + <xsl:if test="$curcol <= $cols"> + <xsl:choose> + <xsl:when test="$members[position()=$cell]"> + <xsl:apply-templates select="$members[position()=$cell]"/> + <xsl:text> </xsl:text> + <xsl:if test="$curcol < $cols"> + <xsl:call-template name="generate.latex.cell.separator"/> + </xsl:if> + </xsl:when> + </xsl:choose> + <xsl:call-template name="simplelist.horiz.row"> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="cell" select="$cell+1"/> + <xsl:with-param name="members" select="$members"/> + <xsl:with-param name="curcol" select="$curcol+1"/> + </xsl:call-template> + </xsl:if> + </xsl:template> + + + + + + + + + + + + <xsl:template match="simplelist|simplelist[@type='vert']"> + <xsl:variable name="cols"> + <xsl:choose> + <xsl:when test="@columns"> + <xsl:value-of select="@columns"/> + </xsl:when> + <xsl:otherwise>1</xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:text> </xsl:text> + <!--<xsl:text>\vspace{1cm} </xsl:text>--> + <xsl:text>\begin{tabular*}{\linewidth}{</xsl:text> + <xsl:call-template name="tabular.string"> + <xsl:with-param name="i" select="1"/> + <xsl:with-param name="cols" select="$cols"/> + </xsl:call-template> + <xsl:text>}</xsl:text> + <xsl:call-template name="simplelist.vert"> + <xsl:with-param name="cols" select="$cols"/> + </xsl:call-template> + <xsl:text> \end{tabular*} </xsl:text> + <!--<xsl:text>\vspace{1cm} </xsl:text>--> + </xsl:template> + + + + <xsl:template name="simplelist.vert"> + <xsl:param name="cols">1</xsl:param> + <xsl:param name="cell">1</xsl:param> + <xsl:param name="members" select="./member"/> + <xsl:param name="rows" select="floor((count($members)+$cols - 1) div $cols)"/> + <xsl:if test="$cell <= $rows"> + <xsl:text> </xsl:text> + <xsl:call-template name="simplelist.vert.row"> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="rows" select="$rows"/> + <xsl:with-param name="cell" select="$cell"/> + <xsl:with-param name="members" select="$members"/> + </xsl:call-template> + <xsl:text> \\</xsl:text> + <xsl:call-template name="simplelist.vert"> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="cell" select="$cell+1"/> + <xsl:with-param name="members" select="$members"/> + <xsl:with-param name="rows" select="$rows"/> + </xsl:call-template> + </xsl:if> + </xsl:template> + + + + <xsl:template name="simplelist.vert.row"> + <xsl:param name="cols">1</xsl:param> + <xsl:param name="rows">1</xsl:param> + <xsl:param name="cell">1</xsl:param> + <xsl:param name="members" select="./member"/> + <xsl:param name="curcol">1</xsl:param> + <xsl:if test="$curcol <= $cols"> + <xsl:choose> + <xsl:when test="$members[position()=$cell]"> + <xsl:apply-templates select="$members[position()=$cell]"/> + <xsl:text> </xsl:text> + <xsl:if test="$curcol < $cols"> + <xsl:call-template name="generate.latex.cell.separator"/> + </xsl:if> + </xsl:when> + <xsl:otherwise> + </xsl:otherwise> + </xsl:choose> + <xsl:call-template name="simplelist.vert.row"> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="rows" select="$rows"/> + <xsl:with-param name="cell" select="$cell+$rows"/> + <xsl:with-param name="members" select="$members"/> + <xsl:with-param name="curcol" select="$curcol+1"/> + </xsl:call-template> + </xsl:if> + </xsl:template> + + + <xsl:template match="member"> + <xsl:apply-templates/> + </xsl:template> + + + + + <xsl:template match="segmentedlist"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="segmentedlist/title"> + <xsl:text> {\sc </xsl:text> + <xsl:apply-templates/> + <xsl:text>} \\ </xsl:text> + </xsl:template> + + <xsl:template match="segtitle"> + </xsl:template> + + <xsl:template match="segtitle" mode="segtitle-in-seg"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="seglistitem"> + <xsl:apply-templates/> + <xsl:choose> + <xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when> + <xsl:otherwise><xsl:text> \\ </xsl:text></xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + <xsl:template match="seg"> + <xsl:variable name="segnum" select="position()"/> + <xsl:variable name="seglist" select="ancestor::segmentedlist"/> + <xsl:variable name="segtitles" select="$seglist/segtitle"/> + + <!-- + Note: segtitle is only going to be the right thing in a well formed + SegmentedList. If there are too many Segs or too few SegTitles, + you'll get something odd...maybe an error + --> + + <xsl:text>{ \em </xsl:text> + <xsl:apply-templates select="$segtitles[$segnum=position()]" mode="segtitle-in-seg"/> + <xsl:text>:} </xsl:text> + <xsl:apply-templates/> + </xsl:template> + + + + + + + + + + + <!-- ==================================================================== --> + + <xsl:template match="calloutlist"> + <xsl:if test="./title"> + <xsl:apply-templates select="./title" mode="calloutlist.title.mode"/> + </xsl:if> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="calloutlist/title"> + </xsl:template> + + <xsl:template match="calloutlist/title" mode="calloutlist.title.mode"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="callout"> + <dt> + <xsl:call-template name="callout.arearefs"> + <xsl:with-param name="arearefs" select="@arearefs"/> + </xsl:call-template> + </dt> + <dl><xsl:apply-templates/></dl> + </xsl:template> + + <xsl:template name="callout.arearefs"> + <xsl:param name="arearefs"></xsl:param> + <xsl:if test="$arearefs!=''"> + <xsl:choose> + <xsl:when test="substring-before($arearefs,' ')=''"> + <xsl:call-template name="callout.arearef"> + <xsl:with-param name="arearef" select="$arearefs"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="callout.arearef"> + <xsl:with-param name="arearef" + select="substring-before($arearefs,' ')"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + <xsl:call-template name="callout.arearefs"> + <xsl:with-param name="arearefs" + select="substring-after($arearefs,' ')"/> + </xsl:call-template> + </xsl:if> + </xsl:template> + + + + + + <xsl:template name="callout.arearef"> + <xsl:param name="arearef"></xsl:param> + <xsl:variable name="targets" select="//node()[@id=$arearef]"/> + <xsl:variable name="target" select="$targets[1]"/> + <xsl:choose> + <xsl:when test="count($target)=0"> + <xsl:value-of select="$arearef"/> + <xsl:text>callout ???</xsl:text> + </xsl:when> + <xsl:when test="local-name($target)='co'"> + <!-- FIXME --> + <xsl:text>\href{ </xsl:text> + <xsl:value-of select="$target/@id"/> + <xsl:text>}{</xsl:text> + <xsl:value-of select="$target/@id"/><xsl:text>} </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>callout ???</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/mathelem.mod.xsl b/docs/docbook/xslt/db2latex/mathelem.mod.xsl new file mode 100644 index 0000000000..66e7089413 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathelem.mod.xsl @@ -0,0 +1,225 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: mathelem.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: Math Elements as theorems, lemmas, propositions, etc. +| Note: these elements are not part of the DocBook DTD. I have extended +| the docbook DTD in order to support this tags, so that's why I have these +| templates here. ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="mathelems" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: mathelem.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Math Elements <filename>mathelems.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <xsl:template match="mathelement"> + <xsl:apply-templates/> + </xsl:template> + + + <!-- + ########################################## + # + # \begin{hypothesis}[title] + # + # \end{hypothesis} + # + ########################################## + --> + <xsl:template match="mathelement/mathhypothesis"> + <xsl:text>\begin{hypothesis}[</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="title"/> + </xsl:call-template> + <xsl:text>] </xsl:text> + <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable> + <xsl:apply-templates/> + <xsl:text>\end{rem} </xsl:text> + </xsl:template> + + <!-- + ########################################## + # + # \begin{rem}[title] + # + # \end{rem} + # + ########################################## + --> + <xsl:template match="mathelement/mathremark"> + <xsl:text>\begin{rem}[</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="title"/> + </xsl:call-template> + <xsl:text>] </xsl:text> + <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable> + <xsl:apply-templates/> + <xsl:text>\end{rem} </xsl:text> + </xsl:template> + + + <!-- + ########################################## + # + # \begin{exm}[title] + # + # \end{exm} + # + ########################################## + --> + <xsl:template match="mathelement/mathexample"> + <xsl:text>\begin{exm}[</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="title"/> + </xsl:call-template> + <xsl:text>] </xsl:text> + <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable> + <xsl:apply-templates/> + <xsl:text>\end{exm} </xsl:text> + </xsl:template> + + + <!-- + ########################################## + # + # \begin{prop}[title] + # + # \end{prop} + # + ########################################## + --> + <xsl:template match="mathelement/mathproposition"> + <xsl:text>\begin{prop}[</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="title"/> + </xsl:call-template> + <xsl:text>] </xsl:text> + <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable> + <xsl:apply-templates/> + <xsl:text>\end{prop} </xsl:text> + </xsl:template> + + + <!-- + ########################################## + # + # \begin{thm}[title] + # + # \end{thm} + # + ########################################## + --> + <xsl:template match="mathelement/maththeorem"> + <xsl:text>\begin{thm}[</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="title"/> + </xsl:call-template> + <xsl:text>] </xsl:text> + <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable> + <xsl:apply-templates/> + <xsl:text>\end{thm} </xsl:text> + </xsl:template> + + + + <!-- + ########################################## + # + # \begin{defn}[definition title] + # + # \end{defn} + # + ########################################## + --> + <xsl:template match="mathelement/mathdefinition"> + <xsl:text>\begin{defn}[</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="title"/> + </xsl:call-template> + <xsl:text>] </xsl:text> + <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable> + <xsl:apply-templates/> + <xsl:text>\end{defn} </xsl:text> + </xsl:template> + + + + <!-- + ########################################## + # + # \begin{lem}[lemma title] + # + # \end{lem} + # + ########################################## + --> + <xsl:template match="mathelement/mathlemma"> + <xsl:text>\begin{lem}[</xsl:text> + <xsl:call-template name="normalize-scape"> + <xsl:with-param name="string" select="title"/> + </xsl:call-template> + <xsl:text>] </xsl:text> + <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable> + <xsl:apply-templates/> + <xsl:text>\end{lem} </xsl:text> + </xsl:template> + + + <!-- + ########################################## + # + # \begin{proof} + # + # \end{proof} + # + ########################################## + --> + <xsl:template match="mathproof"> + <xsl:text>\begin{proof}</xsl:text> + <xsl:variable name="id"> <xsl:call-template name="label.id"/> </xsl:variable> + <xsl:apply-templates/> + <xsl:text>\end{proof} </xsl:text> + </xsl:template> + + + <xsl:template match="mathphrase|mathcondition|mathassertion"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="mathelement/*/title"> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isoamsa.ent b/docs/docbook/xslt/db2latex/mathml/ent/isoamsa.ent new file mode 100644 index 0000000000..5ecf4db216 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isoamsa.ent @@ -0,0 +1,173 @@ + +<!-- + File isoamsa.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY angzarr "⍼" ><!--angle with down zig-zag arrow --> +<!ENTITY cirmid "⫯" ><!--circle, mid below --> +<!ENTITY cudarrl "⤸" ><!--left, curved, down arrow --> +<!ENTITY cudarrr "⤵" ><!--right, curved, down arrow --> +<!ENTITY cularr "↶" ><!--/curvearrowleft A: left curved arrow --> +<!ENTITY cularrp "⤽" ><!--curved left arrow with plus --> +<!ENTITY curarr "↷" ><!--/curvearrowright A: rt curved arrow --> +<!ENTITY curarrm "⤼" ><!--curved right arrow with minus --> +<!ENTITY dArr "⇓" ><!--/Downarrow A: down dbl arrow --> +<!ENTITY Darr "↡" ><!--down two-headed arrow --> +<!ENTITY ddarr "⇊" ><!--/downdownarrows A: two down arrows --> +<!ENTITY DDotrahd "⤑" ><!--right arrow with dotted stem --> +<!ENTITY dfisht "⥿" ><!--down fish tail --> +<!ENTITY dHar "⥥" ><!--down harpoon-left, down harpoon-right --> +<!ENTITY dharl "⇃" ><!--/downharpoonleft A: dn harpoon-left --> +<!ENTITY dharr "⇂" ><!--/downharpoonright A: down harpoon-rt --> +<!ENTITY duarr "⇵" ><!--down arrow, up arrow --> +<!ENTITY duhar "⥯" ><!--down harp, up harp --> +<!ENTITY dzigrarr "⇝" ><!--right long zig-zag arrow --> +<!ENTITY erarr "⥱" ><!--equal, right arrow below --> +<!ENTITY harr "↔" ><!--/leftrightarrow A: l&r arrow --> +<!ENTITY hArr "⇔" ><!--/Leftrightarrow A: l&r dbl arrow --> +<!ENTITY harrcir "⥈" ><!--left and right arrow with a circle --> +<!ENTITY harrw "↭" ><!--/leftrightsquigarrow A: l&r arr-wavy --> +<!ENTITY hoarr "⇿" ><!--horizontal open arrow --> +<!ENTITY imof "⊷" ><!--image of --> +<!ENTITY lAarr "⇚" ><!--/Lleftarrow A: left triple arrow --> +<!ENTITY Larr "↞" ><!--/twoheadleftarrow A: --> +<!ENTITY larrbfs "⤟" ><!--left arrow-bar, filled square --> +<!ENTITY larrfs "⤝" ><!--left arrow, filled square --> +<!ENTITY larrhk "↩" ><!--/hookleftarrow A: left arrow-hooked --> +<!ENTITY larrlp "↫" ><!--/looparrowleft A: left arrow-looped --> +<!ENTITY larrpl "⤹" ><!--left arrow, plus --> +<!ENTITY larrsim "⥳" ><!--left arrow, similar --> +<!ENTITY larrtl "↢" ><!--/leftarrowtail A: left arrow-tailed --> +<!ENTITY latail "⤙" ><!--left arrow-tail --> +<!ENTITY lAtail "⤛" ><!--left double arrow-tail --> +<!ENTITY lbarr "⤌" ><!--left broken arrow --> +<!ENTITY lBarr "⤎" ><!--left doubly broken arrow --> +<!ENTITY ldca "⤶" ><!--left down curved arrow --> +<!ENTITY ldrdhar "⥧" ><!--left harpoon-down over right harpoon-down --> +<!ENTITY ldrushar "⥋" ><!--left-down-right-up harpoon --> +<!ENTITY ldsh "↲" ><!--left down angled arrow --> +<!ENTITY lfisht "⥼" ><!--left fish tail --> +<!ENTITY lHar "⥢" ><!--left harpoon-up over left harpoon-down --> +<!ENTITY lhard "↽" ><!--/leftharpoondown A: l harpoon-down --> +<!ENTITY lharu "↼" ><!--/leftharpoonup A: left harpoon-up --> +<!ENTITY lharul "⥪" ><!--left harpoon-up over long dash --> +<!ENTITY llarr "⇇" ><!--/leftleftarrows A: two left arrows --> +<!ENTITY llhard "⥫" ><!--left harpoon-down below long dash --> +<!ENTITY loarr "⇽" ><!--left open arrow --> +<!ENTITY lrarr "⇆" ><!--/leftrightarrows A: l arr over r arr --> +<!ENTITY lrhar "⇋" ><!--/leftrightharpoons A: l harp over r --> +<!ENTITY lrhard "⥭" ><!--right harpoon-down below long dash --> +<!ENTITY lsh "↰" ><!--/Lsh A: --> +<!ENTITY lurdshar "⥊" ><!--left-up-right-down harpoon --> +<!ENTITY luruhar "⥦" ><!--left harpoon-up over right harpoon-up --> +<!ENTITY map "↦" ><!--/mapsto A: --> +<!ENTITY Map "⤅" ><!--twoheaded mapsto --> +<!ENTITY midcir "⫰" ><!--mid, circle below --> +<!ENTITY mumap "⊸" ><!--/multimap A: --> +<!ENTITY nearhk "⤤" ><!--NE arrow-hooked --> +<!ENTITY nearr "↗" ><!--/nearrow A: NE pointing arrow --> +<!ENTITY neArr "⇗" ><!--NE pointing dbl arrow --> +<!ENTITY nesear "⤨" ><!--/toea A: NE & SE arrows --> +<!ENTITY nharr "↮" ><!--/nleftrightarrow A: not l&r arrow --> +<!ENTITY nhArr "⇎" ><!--/nLeftrightarrow A: not l&r dbl arr --> +<!ENTITY nlarr "↚" ><!--/nleftarrow A: not left arrow --> +<!ENTITY nlArr "⇍" ><!--/nLeftarrow A: not implied by --> +<!ENTITY nrarr "↛" ><!--/nrightarrow A: not right arrow --> +<!ENTITY nrArr "⇏" ><!--/nRightarrow A: not implies --> +<!ENTITY nrarrc "⤳̸" ><!--not right arrow-curved --> +<!ENTITY nrarrw "↝̸" ><!--not right arrow-wavy --> +<!ENTITY nvHarr "⇎" ><!--not, vert, left and right double arrow --> +<!ENTITY nvlArr "⇍" ><!--not, vert, left double arrow --> +<!ENTITY nvrArr "⇏" ><!--not, vert, right double arrow --> +<!ENTITY nwarhk "⤣" ><!--NW arrow-hooked --> +<!ENTITY nwarr "↖" ><!--/nwarrow A: NW pointing arrow --> +<!ENTITY nwArr "⇖" ><!--NW pointing dbl arrow --> +<!ENTITY nwnear "⤧" ><!--NW & NE arrows --> +<!ENTITY olarr "↺" ><!--/circlearrowleft A: l arr in circle --> +<!ENTITY orarr "↻" ><!--/circlearrowright A: r arr in circle --> +<!ENTITY origof "⊶" ><!--original of --> +<!ENTITY rAarr "⇛" ><!--/Rrightarrow A: right triple arrow --> +<!ENTITY Rarr "↠" ><!--/twoheadrightarrow A: --> +<!ENTITY rarrap "⥵" ><!--approximate, right arrow above --> +<!ENTITY rarrbfs "⤠" ><!--right arrow-bar, filled square --> +<!ENTITY rarrc "⤳" ><!--right arrow-curved --> +<!ENTITY rarrfs "⤞" ><!--right arrow, filled square --> +<!ENTITY rarrhk "↪" ><!--/hookrightarrow A: rt arrow-hooked --> +<!ENTITY rarrlp "↬" ><!--/looparrowright A: rt arrow-looped --> +<!ENTITY rarrpl "⥅" ><!--right arrow, plus --> +<!ENTITY rarrsim "⥴" ><!--right arrow, similar --> +<!ENTITY rarrtl "↣" ><!--/rightarrowtail A: rt arrow-tailed --> +<!ENTITY Rarrtl "⤖" ><!--right two-headed arrow with tail --> +<!ENTITY rarrw "⇝" ><!--/rightsquigarrow A: rt arrow-wavy --> +<!ENTITY ratail "↣" ><!--right arrow-tail --> +<!ENTITY rAtail "⤜" ><!--right double arrow-tail --> +<!ENTITY rbarr "⤍" ><!--/bkarow A: right broken arrow --> +<!ENTITY rBarr "⤏" ><!--/dbkarow A: right doubly broken arrow --> +<!ENTITY RBarr "⤐" ><!--/drbkarow A: twoheaded right broken arrow --> +<!ENTITY rdca "⤷" ><!--right down curved arrow --> +<!ENTITY rdldhar "⥩" ><!--right harpoon-down over left harpoon-down --> +<!ENTITY rdsh "↳" ><!--right down angled arrow --> +<!ENTITY rfisht "⥽" ><!--right fish tail --> +<!ENTITY rHar "⥤" ><!--right harpoon-up over right harpoon-down --> +<!ENTITY rhard "⇁" ><!--/rightharpoondown A: rt harpoon-down --> +<!ENTITY rharu "⇀" ><!--/rightharpoonup A: rt harpoon-up --> +<!ENTITY rharul "⥬" ><!--right harpoon-up over long dash --> +<!ENTITY rlarr "⇄" ><!--/rightleftarrows A: r arr over l arr --> +<!ENTITY rlhar "⇌" ><!--/rightleftharpoons A: r harp over l --> +<!ENTITY roarr "⇾" ><!--right open arrow --> +<!ENTITY rrarr "⇉" ><!--/rightrightarrows A: two rt arrows --> +<!ENTITY rsh "↱" ><!--/Rsh A: --> +<!ENTITY ruluhar "⥨" ><!--right harpoon-up over left harpoon-up --> +<!ENTITY searhk "⤥" ><!--/hksearow A: SE arrow-hooken --> +<!ENTITY searr "↘" ><!--/searrow A: SE pointing arrow --> +<!ENTITY seArr "⇘" ><!--SE pointing dbl arrow --> +<!ENTITY seswar "⤩" ><!--/tosa A: SE & SW arrows --> +<!ENTITY simrarr "⥲" ><!--similar, right arrow below --> +<!ENTITY slarr "←⁣" ><!--short left arrow --> +<!ENTITY srarr "→⁣" ><!--short right arrow --> +<!ENTITY swarhk "⤦" ><!--/hkswarow A: SW arrow-hooked --> +<!ENTITY swarr "↙" ><!--/swarrow A: SW pointing arrow --> +<!ENTITY swArr "⇙" ><!--SW pointing dbl arrow --> +<!ENTITY swnwar "⤪" ><!--SW & NW arrows --> +<!ENTITY uArr "⇑" ><!--/Uparrow A: up dbl arrow --> +<!ENTITY Uarr "↟" ><!--up two-headed arrow --> +<!ENTITY Uarrocir "⥉" ><!--up two-headed arrow above circle --> +<!ENTITY udarr "⇅" ><!--up arrow, down arrow --> +<!ENTITY udhar "⥮" ><!--up harp, down harp --> +<!ENTITY ufisht "⥾" ><!--up fish tail --> +<!ENTITY uHar "⥣" ><!--up harpoon-left, up harpoon-right --> +<!ENTITY uharl "↿" ><!--/upharpoonleft A: up harpoon-left --> +<!ENTITY uharr "↾" ><!--/upharpoonright /restriction A: up harp-r --> +<!ENTITY uuarr "⇈" ><!--/upuparrows A: two up arrows --> +<!ENTITY varr "↕" ><!--/updownarrow A: up&down arrow --> +<!ENTITY vArr "⇕" ><!--/Updownarrow A: up&down dbl arrow --> +<!ENTITY xharr "↔" ><!--/longleftrightarrow A: long l&r arr --> +<!ENTITY xhArr "⇔" ><!--/Longleftrightarrow A: long l&r dbl arr --> +<!ENTITY xlarr "←" ><!--/longleftarrow A: long left arrow --> +<!ENTITY xlArr "⇐" ><!--/Longleftarrow A: long l dbl arrow --> +<!ENTITY xmap "↦" ><!--/longmapsto A: --> +<!ENTITY xrarr "→" ><!--/longrightarrow A: long right arrow --> +<!ENTITY xrArr "⇒" ><!--/Longrightarrow A: long rt dbl arr --> +<!ENTITY zigrarr "⇝" ><!--right zig-zag arrow --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isoamsb.ent b/docs/docbook/xslt/db2latex/mathml/ent/isoamsb.ent new file mode 100644 index 0000000000..08e646c2bd --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isoamsb.ent @@ -0,0 +1,146 @@ + +<!-- + File isoamsb.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY ac "⤏" ><!--most positive --> +<!ENTITY acE "⧛" ><!--most positive, two lines below --> +<!ENTITY amalg "⨿" ><!--/amalg B: amalgamation or coproduct --> +<!ENTITY barvee "⊽" ><!--bar, vee --> +<!ENTITY barwed "⊼" ><!--/barwedge B: logical and, bar above --> +<!ENTITY Barwed "⌆" ><!--/doublebarwedge B: log and, dbl bar above --> +<!ENTITY bsolb "⧅" ><!--reverse solidus in square --> +<!ENTITY Cap "⋒" ><!--/Cap /doublecap B: dbl intersection --> +<!ENTITY capand "⩄" ><!--intersection, and --> +<!ENTITY capbrcup "⩉" ><!--intersection, bar, union --> +<!ENTITY capcap "⩋" ><!--intersection, intersection, joined --> +<!ENTITY capcup "⩇" ><!--intersection above union --> +<!ENTITY capdot "⩀" ><!--intersection, with dot --> +<!ENTITY caps "∩⁣" ><!--intersection, serifs --> +<!ENTITY ccaps "⩍" ><!--closed intersection, serifs --> +<!ENTITY ccups "⩌" ><!--closed union, serifs --> +<!ENTITY ccupssm "⩐" ><!--closed union, serifs, smash product --> +<!ENTITY coprod "∐" ><!--/coprod L: coproduct operator --> +<!ENTITY Cup "⋓" ><!--/Cup /doublecup B: dbl union --> +<!ENTITY cupbrcap "⩈" ><!--union, bar, intersection --> +<!ENTITY cupcap "⩆" ><!--union above intersection --> +<!ENTITY cupcup "⩊" ><!--union, union, joined --> +<!ENTITY cupdot "⊍" ><!--union, with dot --> +<!ENTITY cupor "⩅" ><!--union, or --> +<!ENTITY cups "∪⁣" ><!--union, serifs --> +<!ENTITY cuvee "⋎" ><!--/curlyvee B: curly logical or --> +<!ENTITY cuwed "⋏" ><!--/curlywedge B: curly logical and --> +<!ENTITY dagger "†" ><!--/dagger B: dagger relation --> +<!ENTITY Dagger "‡" ><!--/ddagger B: double dagger relation --> +<!ENTITY diam "⋄" ><!--/diamond B: open diamond --> +<!ENTITY divonx "⋇" ><!--/divideontimes B: division on times --> +<!ENTITY eplus "⩱" ><!--equal, plus --> +<!ENTITY hercon "⊹" ><!--hermitian conjugate matrix --> +<!ENTITY intcal "⊺" ><!--/intercal B: intercal --> +<!ENTITY iprod "⨼" ><!--/intprod --> +<!ENTITY loplus "⨭" ><!--plus sign in left half circle --> +<!ENTITY lotimes "⨴" ><!--multiply sign in left half circle --> +<!ENTITY lthree "⋋" ><!--/leftthreetimes B: --> +<!ENTITY ltimes "⋉" ><!--/ltimes B: times sign, left closed --> +<!ENTITY midast "*" ><!--/ast B: asterisk --> +<!ENTITY minusb "⊟" ><!--/boxminus B: minus sign in box --> +<!ENTITY minusd "∸" ><!--/dotminus B: minus sign, dot above --> +<!ENTITY minusdu "⨪" ><!--minus sign, dot below --> +<!ENTITY ncap "⩃" ><!--bar, intersection --> +<!ENTITY ncup "⩂" ><!--bar, union --> +<!ENTITY oast "⊛" ><!--/circledast B: asterisk in circle --> +<!ENTITY ocir "⊚" ><!--/circledcirc B: small circle in circle --> +<!ENTITY odash "⊝" ><!--/circleddash B: hyphen in circle --> +<!ENTITY odiv "⨸" ><!--divide in circle --> +<!ENTITY odot "⊙" ><!--/odot B: middle dot in circle --> +<!ENTITY odsold "⦼" ><!--dot, solidus, dot in circle --> +<!ENTITY ofcir "⦿" ><!--filled circle in circle --> +<!ENTITY ogt "⧁" ><!--greater-than in circle --> +<!ENTITY ohbar "⦵" ><!--circle with horizontal bar --> +<!ENTITY olcir "⦾" ><!--large circle in circle --> +<!ENTITY olt "⧀" ><!--less-than in circle --> +<!ENTITY omid "⦶" ><!--vertical bar in circle --> +<!ENTITY ominus "⊖" ><!--/ominus B: minus sign in circle --> +<!ENTITY opar "⦷" ><!--parallel in circle --> +<!ENTITY operp "⦹" ><!--perpendicular in circle --> +<!ENTITY oplus "⊕" ><!--/oplus B: plus sign in circle --> +<!ENTITY osol "⊘" ><!--/oslash B: solidus in circle --> +<!ENTITY otimes "⊗" ><!--/otimes B: multiply sign in circle --> +<!ENTITY Otimes "⨷" ><!--multiply sign in double circle --> +<!ENTITY otimesas "⨶" ><!--multiply sign in circle, circumflex accent --> +<!ENTITY ovbar "⌽" ><!--circle with vertical bar --> +<!ENTITY plusacir "⨣" ><!--plus, circumflex accent above --> +<!ENTITY plusb "⊞" ><!--/boxplus B: plus sign in box --> +<!ENTITY pluscir "⨢" ><!--plus, small circle above --> +<!ENTITY plusdo "∔" ><!--/dotplus B: plus sign, dot above --> +<!ENTITY plusdu "⨥" ><!--plus sign, dot below --> +<!ENTITY pluse "⩲" ><!--plus, equals --> +<!ENTITY plussim "⨦" ><!--plus, similar below --> +<!ENTITY plustwo "⨧" ><!--plus, two; Nim-addition --> +<!ENTITY prod "∏" ><!--/prod L: product operator --> +<!ENTITY race "⧚" ><!--reverse most positive, line below --> +<!ENTITY roplus "⨮" ><!--plus sign in right half circle --> +<!ENTITY rotimes "⨵" ><!--multiply sign in right half circle --> +<!ENTITY rthree "⋌" ><!--/rightthreetimes B: --> +<!ENTITY rtimes "⋊" ><!--/rtimes B: times sign, right closed --> +<!ENTITY sdot "⋅" ><!--/cdot B: small middle dot --> +<!ENTITY sdotb "⊡" ><!--/dotsquare /boxdot B: small dot in box --> +<!ENTITY setmn "∖" ><!--/setminus B: reverse solidus --> +<!ENTITY simplus "⨤" ><!--plus, similar above --> +<!ENTITY smashp "⨳" ><!--smash product --> +<!ENTITY solb "⧄" ><!--solidus in square --> +<!ENTITY sqcap "⊓" ><!--/sqcap B: square intersection --> +<!ENTITY sqcaps "⊓⁣" ><!--square intersection, serifs --> +<!ENTITY sqcup "⊔" ><!--/sqcup B: square union --> +<!ENTITY sqcups "⊔⁣" ><!--square union, serifs --> +<!ENTITY ssetmn "∖" ><!--/smallsetminus B: sm reverse solidus --> +<!ENTITY sstarf "⋆" ><!--/star B: small star, filled --> +<!ENTITY subdot "⪽" ><!--subset, with dot --> +<!ENTITY sum "∑" ><!--/sum L: summation operator --> +<!ENTITY supdot "⪾" ><!--superset, with dot --> +<!ENTITY timesb "⊠" ><!--/boxtimes B: multiply sign in box --> +<!ENTITY timesbar "⨱" ><!--multiply sign, bar below --> +<!ENTITY timesd "⨰" ><!--times, dot --> +<!ENTITY tridot "◬" ><!--dot in triangle --> +<!ENTITY triminus "⨺" ><!--minus in triangle --> +<!ENTITY triplus "⨹" ><!--plus in triangle --> +<!ENTITY trisb "⧍" ><!--triangle, serifs at bottom --> +<!ENTITY tritime "⨻" ><!--multiply in triangle --> +<!ENTITY uplus "⊎" ><!--/uplus B: plus sign in union --> +<!ENTITY veebar "⊻" ><!--/veebar B: logical or, bar below --> +<!ENTITY wedbar "⩟" ><!--wedge, bar below --> +<!ENTITY wreath "≀" ><!--/wr B: wreath product --> +<!ENTITY xcap "⋂" ><!--/bigcap L: intersection operator --> +<!ENTITY xcirc "◯" ><!--/bigcirc B: large circle --> +<!ENTITY xcup "⋃" ><!--/bigcup L: union operator --> +<!ENTITY xdtri "▽" ><!--/bigtriangledown B: big dn tri, open --> +<!ENTITY xodot "⊙" ><!--/bigodot L: circle dot operator --> +<!ENTITY xoplus "⊕" ><!--/bigoplus L: circle plus operator --> +<!ENTITY xotime "⊗" ><!--/bigotimes L: circle times operator --> +<!ENTITY xsqcup "⊔" ><!--/bigsqcup L: square union operator --> +<!ENTITY xuplus "⊎" ><!--/biguplus L: --> +<!ENTITY xutri "△" ><!--/bigtriangleup B: big up tri, open --> +<!ENTITY xvee "⋁" ><!--/bigvee L: logical and operator --> +<!ENTITY xwedge "⋀" ><!--/bigwedge L: logical or operator --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isoamsc.ent b/docs/docbook/xslt/db2latex/mathml/ent/isoamsc.ent new file mode 100644 index 0000000000..cce399cf9d --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isoamsc.ent @@ -0,0 +1,49 @@ + +<!-- + File isoamsc.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY dlcorn "⌞" ><!--/llcorner O: lower left corner --> +<!ENTITY drcorn "⌟" ><!--/lrcorner C: lower right corner --> +<!ENTITY gtlPar "⦕" ><!--dbl left parenthesis, greater --> +<!ENTITY langd "⦑" ><!--left angle, dot --> +<!ENTITY lbrke "⦋" ><!--left bracket, equal --> +<!ENTITY lbrksld "⦏" ><!--left bracket, solidus bottom corner --> +<!ENTITY lbrkslu "⦍" ><!--left bracket, solidus top corner --> +<!ENTITY lceil "⌈" ><!--/lceil O: left ceiling --> +<!ENTITY lfloor "⌊" ><!--/lfloor O: left floor --> +<!ENTITY lmoust "⦘" ><!--/lmoustache --> +<!ENTITY lparlt "⦓" ><!--O: left parenthesis, lt --> +<!ENTITY ltrPar "⦖" ><!--dbl right parenthesis, less --> +<!ENTITY rangd "⦒" ><!--right angle, dot --> +<!ENTITY rbrke "⦌" ><!--right bracket, equal --> +<!ENTITY rbrksld "⦎" ><!--right bracket, solidus bottom corner --> +<!ENTITY rbrkslu "⦐" ><!--right bracket, solidus top corner --> +<!ENTITY rceil "⌉" ><!--/rceil C: right ceiling --> +<!ENTITY rfloor "⌋" ><!--/rfloor C: right floor --> +<!ENTITY rmoust "⦗" ><!--/rmoustache --> +<!ENTITY rpargt "⦔" ><!--C: right paren, gt --> +<!ENTITY ulcorn "⌜" ><!--/ulcorner O: upper left corner --> +<!ENTITY urcorn "⌝" ><!--/urcorner C: upper right corner --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isoamsn.ent b/docs/docbook/xslt/db2latex/mathml/ent/isoamsn.ent new file mode 100644 index 0000000000..cddeba066e --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isoamsn.ent @@ -0,0 +1,117 @@ + +<!-- + File isoamsn.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY gnap "⪊" ><!--/gnapprox N: greater, not approximate --> +<!ENTITY gne "≩" ><!--/gneq N: greater, not equals --> +<!ENTITY gnE "≩" ><!--/gneqq N: greater, not dbl equals --> +<!ENTITY gnsim "⋧" ><!--/gnsim N: greater, not similar --> +<!ENTITY gvnE "≩̸" ><!--/gvertneqq N: gt, vert, not dbl eq --> +<!ENTITY lnap "⪉" ><!--/lnapprox N: less, not approximate --> +<!ENTITY lne "≨" ><!--/lneq N: less, not equals --> +<!ENTITY lnE "≨" ><!--/lneqq N: less, not double equals --> +<!ENTITY lnsim "⋦" ><!--/lnsim N: less, not similar --> +<!ENTITY lvnE "≨̸" ><!--/lvertneqq N: less, vert, not dbl eq --> +<!ENTITY nap "≉" ><!--/napprox N: not approximate --> +<!ENTITY napE "⩰̸" ><!--not approximately equal or equal to --> +<!ENTITY napid "≋̸" ><!--not approximately identical to --> +<!ENTITY ncong "≇" ><!--/ncong N: not congruent with --> +<!ENTITY ncongdot "⩭̸" ><!--not congruent, dot --> +<!ENTITY nequiv "≢" ><!--/nequiv N: not identical with --> +<!ENTITY nge "≱⃥" ><!--/ngeq N: not greater-than-or-equal --> +<!ENTITY ngE "≱" ><!--/ngeqq N: not greater, dbl equals --> +<!ENTITY nges "≱" ><!--/ngeqslant N: not gt-or-eq, slanted --> +<!ENTITY nGg "⋙̸" ><!--not triple greater than --> +<!ENTITY ngsim "≵" ><!--not greater, similar --> +<!ENTITY ngt "≯" ><!--/ngtr N: not greater-than --> +<!ENTITY nGt "≫̸" ><!--not, vert, much greater than --> +<!ENTITY nGtv "≫̸⁣" ><!--not much greater than, variant --> +<!ENTITY nle "≰⃥" ><!--/nleq N: not less-than-or-equal --> +<!ENTITY nlE "≰" ><!--/nleqq N: not less, dbl equals --> +<!ENTITY nles "≰" ><!--/nleqslant N: not less-or-eq, slant --> +<!ENTITY nLl "⋘̸" ><!--not triple less than --> +<!ENTITY nlsim "≴" ><!--not less, similar --> +<!ENTITY nlt "≮" ><!--/nless N: not less-than --> +<!ENTITY nLt "≪̸" ><!--not, vert, much less than --> +<!ENTITY nltri "⋪" ><!--/ntriangleleft N: not left triangle --> +<!ENTITY nltrie "⋬" ><!--/ntrianglelefteq N: not l tri, eq --> +<!ENTITY nLtv "≪̸⁣" ><!--not much less than, variant --> +<!ENTITY nmid "∤" ><!--/nmid --> +<!ENTITY npar "∦" ><!--/nparallel N: not parallel --> +<!ENTITY npr "⊀" ><!--/nprec N: not precedes --> +<!ENTITY nprcue "⋠" ><!--not curly precedes, eq --> +<!ENTITY npre "⪯̸" ><!--/npreceq N: not precedes, equals --> +<!ENTITY nrtri "⋫" ><!--/ntriangleright N: not rt triangle --> +<!ENTITY nrtrie "⋭" ><!--/ntrianglerighteq N: not r tri, eq --> +<!ENTITY nsc "⊁" ><!--/nsucc N: not succeeds --> +<!ENTITY nsccue "⋡" ><!--not succeeds, curly eq --> +<!ENTITY nsce "⪰̸" ><!--/nsucceq N: not succeeds, equals --> +<!ENTITY nsim "≁" ><!--/nsim N: not similar --> +<!ENTITY nsime "≄" ><!--/nsimeq N: not similar, equals --> +<!ENTITY nsmid "∤⁣" ><!--/nshortmid --> +<!ENTITY nspar "∦⁣" ><!--/nshortparallel N: not short par --> +<!ENTITY nsqsube "⋢" ><!--not, square subset, equals --> +<!ENTITY nsqsupe "⋣" ><!--not, square superset, equals --> +<!ENTITY nsub "⊄" ><!--not subset --> +<!ENTITY nsube "⊈" ><!--/nsubseteq N: not subset, equals --> +<!ENTITY nsubE "⊈" ><!--/nsubseteqq N: not subset, dbl eq --> +<!ENTITY nsup "⊅" ><!--not superset --> +<!ENTITY nsupe "⊉" ><!--/nsupseteq N: not superset, equals --> +<!ENTITY nsupE "⊉" ><!--/nsupseteqq N: not superset, dbl eq --> +<!ENTITY ntgl "≹" ><!--not greater, less --> +<!ENTITY ntlg "≸" ><!--not less, greater --> +<!ENTITY nvap "≉̸" ><!--not, vert, approximate --> +<!ENTITY nvdash "⊬" ><!--/nvdash N: not vertical, dash --> +<!ENTITY nvDash "⊭" ><!--/nvDash N: not vertical, dbl dash --> +<!ENTITY nVdash "⊮" ><!--/nVdash N: not dbl vertical, dash --> +<!ENTITY nVDash "⊯" ><!--/nVDash N: not dbl vert, dbl dash --> +<!ENTITY nvge "≱" ><!--not, vert, greater-than-or-equal --> +<!ENTITY nvgt "≯" ><!--not, vert, greater-than --> +<!ENTITY nvle "≰" ><!--not, vert, less-than-or-equal --> +<!ENTITY nvlt "≮" ><!--not, vert, less-than --> +<!ENTITY nvltrie "⋬̸" ><!--not, vert, left triangle, equals --> +<!ENTITY nvrtrie "⋭̸" ><!--not, vert, right triangle, equals --> +<!ENTITY nvsim "≁̸" ><!--not, vert, similar --> +<!ENTITY parsim "⫳" ><!--parallel, similar --> +<!ENTITY prnap "⋨" ><!--/precnapprox N: precedes, not approx --> +<!ENTITY prnE "⪵" ><!--/precneqq N: precedes, not dbl eq --> +<!ENTITY prnsim "⋨" ><!--/precnsim N: precedes, not similar --> +<!ENTITY rnmid "⫮" ><!--reverse /nmid --> +<!ENTITY scnap "⋩" ><!--/succnapprox N: succeeds, not approx --> +<!ENTITY scnE "⪶" ><!--/succneqq N: succeeds, not dbl eq --> +<!ENTITY scnsim "⋩" ><!--/succnsim N: succeeds, not similar --> +<!ENTITY simne "≆" ><!--similar, not equals --> +<!ENTITY solbar "⌿" ><!--solidus, bar through --> +<!ENTITY subne "⊊" ><!--/subsetneq N: subset, not equals --> +<!ENTITY subnE "⊊" ><!--/subsetneqq N: subset, not dbl eq --> +<!ENTITY supne "⊋" ><!--/supsetneq N: superset, not equals --> +<!ENTITY supnE "⊋" ><!--/supsetneqq N: superset, not dbl eq --> +<!ENTITY vnsub "⊄" ><!--/nsubset N: not subset, var --> +<!ENTITY vnsup "⊅" ><!--/nsupset N: not superset, var --> +<!ENTITY vsubne "⊊⁣" ><!--/varsubsetneq N: subset, not eq, var --> +<!ENTITY vsubnE "⊊⁣" ><!--/varsubsetneqq N: subset not dbl eq, var --> +<!ENTITY vsupne "⊋⁣" ><!--/varsupsetneq N: superset, not eq, var --> +<!ENTITY vsupnE "⊋⁣" ><!--/varsupsetneqq N: super not dbl eq, var --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isoamso.ent b/docs/docbook/xslt/db2latex/mathml/ent/isoamso.ent new file mode 100644 index 0000000000..8ac4bdb619 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isoamso.ent @@ -0,0 +1,77 @@ + +<!-- + File isoamso.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY ang "∠" ><!--/angle - angle --> +<!ENTITY ange "⦤" ><!--angle, equal --> +<!ENTITY angmsd "∡" ><!--/measuredangle - angle-measured --> +<!ENTITY angmsdaa "⦨" ><!--angle-measured, arrow, up, right --> +<!ENTITY angmsdab "⦩" ><!--angle-measured, arrow, up, left --> +<!ENTITY angmsdac "⦪" ><!--angle-measured, arrow, down, right --> +<!ENTITY angmsdad "⦫" ><!--angle-measured, arrow, down, left --> +<!ENTITY angmsdae "⦬" ><!--angle-measured, arrow, right, up --> +<!ENTITY angmsdaf "⦭" ><!--angle-measured, arrow, left, up --> +<!ENTITY angmsdag "⦮" ><!--angle-measured, arrow, right, down --> +<!ENTITY angmsdah "⦯" ><!--angle-measured, arrow, left, down --> +<!ENTITY angrtvb "⦝⁣" ><!--right angle-measured --> +<!ENTITY angrtvbd "⦝" ><!--right angle-measured, dot --> +<!ENTITY bbrk "⎵" ><!--bottom square bracket --> +<!ENTITY bemptyv "⦰" ><!--reversed circle, slash --> +<!ENTITY beth "ℶ" ><!--/beth - beth, Hebrew --> +<!ENTITY boxbox "⧉" ><!--two joined squares --> +<!ENTITY bprime "‵" ><!--/backprime - reverse prime --> +<!ENTITY bsemi "⁏" ><!--reverse semi-colon --> +<!ENTITY cemptyv "⦲" ><!--circle, slash, small circle above --> +<!ENTITY cirE "⧃" ><!--circle, two horizontal stroked to the right --> +<!ENTITY cirscir "⧂" ><!--circle, small circle to the right --> +<!ENTITY comp "∁" ><!--/complement - complement sign --> +<!ENTITY daleth "ℸ" ><!--/daleth - daleth, Hebrew --> +<!ENTITY demptyv "⦱" ><!--circle, slash, bar above --> +<!ENTITY ell "ℓ" ><!--/ell - cursive small l --> +<!ENTITY empty "∅⁣" ><!--/emptyset - zero, slash --> +<!ENTITY emptyv "∅" ><!--/varnothing - circle, slash --> +<!ENTITY gimel "ℷ" ><!--/gimel - gimel, Hebrew --> +<!ENTITY iiota "℩" ><!--inverted iota --> +<!ENTITY image "ℑ" ><!--/Im - imaginary --> +<!ENTITY imath "ı" ><!--/imath - small i, no dot --> +<!ENTITY jmath "j⁣" ><!--/jmath - small j, no dot --> +<!ENTITY laemptyv "⦴" ><!--circle, slash, left arrow above --> +<!ENTITY lltri "◺" ><!--lower left triangle --> +<!ENTITY lrtri "⊿" ><!--lower right triangle --> +<!ENTITY mho "℧" ><!--/mho - conductance --> +<!ENTITY nang "∠̸" ><!--not, vert, angle --> +<!ENTITY nexist "∄" ><!--/nexists - negated exists --> +<!ENTITY oS "Ⓢ" ><!--/circledS - capital S in circle --> +<!ENTITY plank "ℏ" ><!--/hbar - Planck's over 2pi --> +<!ENTITY plankv "ℏ" ><!--/hslash - variant Planck's over 2pi --> +<!ENTITY raemptyv "⦳" ><!--circle, slash, right arrow above --> +<!ENTITY range "⦥" ><!--reverse angle, equal --> +<!ENTITY real "ℜ" ><!--/Re - real --> +<!ENTITY tbrk "⎴" ><!--top square bracket --> +<!ENTITY ultri "◸" ><!--upper left triangle --> +<!ENTITY urtri "◹" ><!--upper right triangle --> +<!ENTITY vzigzag "⦚" ><!--vertical zig-zag line --> +<!ENTITY weierp "℘" ><!--/wp - Weierstrass p --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isoamsr.ent b/docs/docbook/xslt/db2latex/mathml/ent/isoamsr.ent new file mode 100644 index 0000000000..7fec582555 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isoamsr.ent @@ -0,0 +1,205 @@ + +<!-- + File isoamsr.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY ape "≊" ><!--/approxeq R: approximate, equals --> +<!ENTITY apE "≊" ><!--approximately equal or equal to --> +<!ENTITY apid "≋" ><!--approximately identical to --> +<!ENTITY asymp "≍" ><!--/asymp R: asymptotically equal to --> +<!ENTITY Barv "⫧" ><!--vert, dbl bar (over) --> +<!ENTITY bcong "≌" ><!--/backcong R: reverse congruent --> +<!ENTITY bepsi "ℼ" ><!--/backepsilon R: such that --> +<!ENTITY bowtie "⋈" ><!--/bowtie R: --> +<!ENTITY bsim "∽" ><!--/backsim R: reverse similar --> +<!ENTITY bsime "⋍" ><!--/backsimeq R: reverse similar, eq --> +<!ENTITY bsolhsub "\⊂" ><!--reverse solidus, subset --> +<!ENTITY bump "≎" ><!--/Bumpeq R: bumpy equals --> +<!ENTITY bumpe "≏" ><!--/bumpeq R: bumpy equals, equals --> +<!ENTITY bumpE "⪮" ><!--bump, equals --> +<!ENTITY cire "≗" ><!--/circeq R: circle, equals --> +<!ENTITY Colon "∷" ><!--/Colon, two colons --> +<!ENTITY colone "≔" ><!--/coloneq R: colon, equals --> +<!ENTITY Colone "⩴" ><!--double colon, equals --> +<!ENTITY congdot "⩭" ><!--congruent, dot --> +<!ENTITY csub "⫏" ><!--subset, closed --> +<!ENTITY csube "⫑" ><!--subset, closed, equals --> +<!ENTITY csup "⫐" ><!--superset, closed --> +<!ENTITY csupe "⫒" ><!--superset, closed, equals --> +<!ENTITY cuepr "⋞" ><!--/curlyeqprec R: curly eq, precedes --> +<!ENTITY cuesc "⋟" ><!--/curlyeqsucc R: curly eq, succeeds --> +<!ENTITY dashv "⊣" ><!--/dashv R: dash, vertical --> +<!ENTITY Dashv "⫤" ><!--dbl dash, vertical --> +<!ENTITY easter "≛" ><!--equal, asterisk above --> +<!ENTITY ecir "≖" ><!--/eqcirc R: circle on equals sign --> +<!ENTITY ecolon "≕" ><!--/eqcolon R: equals, colon --> +<!ENTITY eDDot "⩷" ><!--/ddotseq R: equal with four dots --> +<!ENTITY eDot "≑" ><!--/doteqdot /Doteq R: eq, even dots --> +<!ENTITY efDot "≒" ><!--/fallingdotseq R: eq, falling dots --> +<!ENTITY eg "⪚" ><!--equal-or-greater --> +<!ENTITY egs "⋝" ><!--/eqslantgtr R: equal-or-gtr, slanted --> +<!ENTITY egsdot "⪘" ><!--equal-or-greater, slanted, dot inside --> +<!ENTITY el "⪙" ><!--equal-or-less --> +<!ENTITY els "⋜" ><!--/eqslantless R: eq-or-less, slanted --> +<!ENTITY elsdot "⪗" ><!--equal-or-less, slanted, dot inside --> +<!ENTITY equest "≟" ><!--/questeq R: equal with questionmark --> +<!ENTITY equivDD "⩸" ><!--equivalent, four dots above --> +<!ENTITY erDot "≓" ><!--/risingdotseq R: eq, rising dots --> +<!ENTITY esdot "≐" ><!--/doteq R: equals, single dot above --> +<!ENTITY esim "≂" ><!--/esim R: equals, similar --> +<!ENTITY Esim "⩳" ><!--equal, similar --> +<!ENTITY fork "⋔" ><!--/pitchfork R: pitchfork --> +<!ENTITY forkv "⫙" ><!--fork, variant --> +<!ENTITY frown "⌢" ><!--/frown R: down curve --> +<!ENTITY gap "≳" ><!--/gtrapprox R: greater, approximate --> +<!ENTITY gE "≧" ><!--/geqq R: greater, double equals --> +<!ENTITY gel "⋛" ><!--/gtreqless R: greater, equals, less --> +<!ENTITY gEl "⋛" ><!--/gtreqqless R: gt, dbl equals, less --> +<!ENTITY ges "⩾" ><!--/geqslant R: gt-or-equal, slanted --> +<!ENTITY gescc "⪩" ><!--greater than, closed by curve, equal, slanted --> +<!ENTITY gesdot "⪀" ><!--greater-than-or-equal, slanted, dot inside --> +<!ENTITY gesdoto "⪂" ><!--greater-than-or-equal, slanted, dot above --> +<!ENTITY gesdotol "⪄" ><!--greater-than-or-equal, slanted, dot above left --> +<!ENTITY gesl "⋛⁣" ><!--greater, equal, slanted, less --> +<!ENTITY gesles "⪔" ><!--greater, equal, slanted, less, equal, slanted --> +<!ENTITY Gg "⋙" ><!--/ggg /Gg /gggtr R: triple gtr-than --> +<!ENTITY gl "≷" ><!--/gtrless R: greater, less --> +<!ENTITY gla "⪥" ><!--greater, less, apart --> +<!ENTITY glE "⪒" ><!--greater, less, equal --> +<!ENTITY glj "⪤" ><!--greater, less, overlapping --> +<!ENTITY gsim "≳" ><!--/gtrsim R: greater, similar --> +<!ENTITY gsime "⪎" ><!--greater, similar, equal --> +<!ENTITY gsiml "⪐" ><!--greater, similar, less --> +<!ENTITY Gt "≫" ><!--/gg R: dbl greater-than sign --> +<!ENTITY gtcc "⪧" ><!--greater than, closed by curve --> +<!ENTITY gtcir "⩺" ><!--greater than, circle inside --> +<!ENTITY gtdot "⋗" ><!--/gtrdot R: greater than, with dot --> +<!ENTITY gtquest "⩼" ><!--greater than, questionmark above --> +<!ENTITY gtrarr "⥸" ><!--greater than, right arrow --> +<!ENTITY homtht "∻" ><!--homothetic --> +<!ENTITY lap "≲" ><!--/lessapprox R: less, approximate --> +<!ENTITY lat "⪫" ><!--larger than --> +<!ENTITY late "⪭" ><!--larger than or equal --> +<!ENTITY lates "⪭⁣" ><!--larger than or equal, slanted --> +<!ENTITY lE "≦" ><!--/leqq R: less, double equals --> +<!ENTITY leg "⋚" ><!--/lesseqgtr R: less, eq, greater --> +<!ENTITY lEg "⋚" ><!--/lesseqqgtr R: less, dbl eq, greater --> +<!ENTITY les "⩽" ><!--/leqslant R: less-than-or-eq, slant --> +<!ENTITY lescc "⪨" ><!--less than, closed by curve, equal, slanted --> +<!ENTITY lesdot "⩿" ><!--less-than-or-equal, slanted, dot inside --> +<!ENTITY lesdoto "⪁" ><!--less-than-or-equal, slanted, dot above --> +<!ENTITY lesdotor "⪃" ><!--less-than-or-equal, slanted, dot above right --> +<!ENTITY lesg "⋚⁣" ><!--less, equal, slanted, greater --> +<!ENTITY lesges "⪓" ><!--less, equal, slanted, greater, equal, slanted --> +<!ENTITY lg "≶" ><!--/lessgtr R: less, greater --> +<!ENTITY lgE "⪑" ><!--less, greater, equal --> +<!ENTITY Ll "⋘" ><!--/Ll /lll /llless R: triple less-than --> +<!ENTITY lsim "≲" ><!--/lesssim R: less, similar --> +<!ENTITY lsime "⪍" ><!--less, similar, equal --> +<!ENTITY lsimg "⪏" ><!--less, similar, greater --> +<!ENTITY Lt "≪" ><!--/ll R: double less-than sign --> +<!ENTITY ltcc "⪦" ><!--less than, closed by curve --> +<!ENTITY ltcir "⩹" ><!--less than, circle inside --> +<!ENTITY ltdot "⋖" ><!--/lessdot R: less than, with dot --> +<!ENTITY ltlarr "⥶" ><!--less than, left arrow --> +<!ENTITY ltquest "⩻" ><!--less than, questionmark above --> +<!ENTITY ltrie "⊴" ><!--/trianglelefteq R: left triangle, eq --> +<!ENTITY mcomma "⨩" ><!--minus, comma above --> +<!ENTITY mDDot "∺" ><!--minus with four dots, geometric properties --> +<!ENTITY mid "∣" ><!--/mid R: --> +<!ENTITY mlcp "⫛" ><!--/mlcp --> +<!ENTITY models "⊧" ><!--/models R: --> +<!ENTITY mstpos "∾" ><!--most positive --> +<!ENTITY pr "≺" ><!--/prec R: precedes --> +<!ENTITY Pr "⪻" ><!--dbl precedes --> +<!ENTITY prap "≾" ><!--/precapprox R: precedes, approximate --> +<!ENTITY prcue "≼" ><!--/preccurlyeq R: precedes, curly eq --> +<!ENTITY pre "⪯" ><!--/preceq R: precedes, equals --> +<!ENTITY prE "⪯" ><!--precedes, dbl equals --> +<!ENTITY prsim "≾" ><!--/precsim R: precedes, similar --> +<!ENTITY prurel "⊰" ><!--element precedes under relation --> +<!ENTITY ratio "∶" ><!--/ratio --> +<!ENTITY rtrie "⊵" ><!--/trianglerighteq R: right tri, eq --> +<!ENTITY rtriltri "⧎" ><!--right triangle above left triangle --> +<!ENTITY sc "≻" ><!--/succ R: succeeds --> +<!ENTITY Sc "⪼" ><!--dbl succeeds --> +<!ENTITY scap "≿" ><!--/succapprox R: succeeds, approximate --> +<!ENTITY sccue "≽" ><!--/succcurlyeq R: succeeds, curly eq --> +<!ENTITY sce "≽" ><!--/succeq R: succeeds, equals --> +<!ENTITY scE "≾" ><!--succeeds, dbl equals --> +<!ENTITY scsim "≿" ><!--/succsim R: succeeds, similar --> +<!ENTITY sdote "⩦" ><!--equal, dot below --> +<!ENTITY simg "⪞" ><!--similar, greater --> +<!ENTITY simgE "⪠" ><!--similar, greater, equal --> +<!ENTITY siml "⪝" ><!--similar, less --> +<!ENTITY simlE "⪟" ><!--similar, less, equal --> +<!ENTITY smid "∣⁣" ><!--/shortmid R: --> +<!ENTITY smile "⌣" ><!--/smile R: up curve --> +<!ENTITY smt "⪪" ><!--smaller than --> +<!ENTITY smte "⪬" ><!--smaller than or equal --> +<!ENTITY smtes "⪬⁣" ><!--smaller than or equal, slanted --> +<!ENTITY spar "∥⁣" ><!--/shortparallel R: short parallel --> +<!ENTITY sqsub "⊏" ><!--/sqsubset R: square subset --> +<!ENTITY sqsube "⊑" ><!--/sqsubseteq R: square subset, equals --> +<!ENTITY sqsup "⊐" ><!--/sqsupset R: square superset --> +<!ENTITY sqsupe "⊒" ><!--/sqsupseteq R: square superset, eq --> +<!ENTITY Sub "⋐" ><!--/Subset R: double subset --> +<!ENTITY subE "⊆" ><!--/subseteqq R: subset, dbl equals --> +<!ENTITY subedot "⫃" ><!--subset, equals, dot --> +<!ENTITY submult "⫁" ><!--subset, multiply --> +<!ENTITY subplus "⪿" ><!--subset, plus --> +<!ENTITY subrarr "⥹" ><!--subset, right arrow --> +<!ENTITY subsim "⫇" ><!--subset, similar --> +<!ENTITY subsub "⫕" ><!--subset above subset --> +<!ENTITY subsup "⫓" ><!--subset above superset --> +<!ENTITY Sup "⋑" ><!--/Supset R: dbl superset --> +<!ENTITY supdsub "⫘" ><!--superset, subset, dash joining them --> +<!ENTITY supE "⊇" ><!--/supseteqq R: superset, dbl equals --> +<!ENTITY supedot "⫄" ><!--superset, equals, dot --> +<!ENTITY suphsol "⊃/" ><!--superset, solidus --> +<!ENTITY suphsub "⫗" ><!--superset, subset --> +<!ENTITY suplarr "⥻" ><!--superset, left arrow --> +<!ENTITY supmult "⫂" ><!--superset, multiply --> +<!ENTITY supplus "⫀" ><!--superset, plus --> +<!ENTITY supsim "⫈" ><!--superset, similar --> +<!ENTITY supsub "⫔" ><!--superset above subset --> +<!ENTITY supsup "⫖" ><!--superset above superset --> +<!ENTITY thkap "≈⁣" ><!--/thickapprox R: thick approximate --> +<!ENTITY thksim "∼" ><!--/thicksim R: thick similar --> +<!ENTITY topfork "⫚" ><!--fork with top --> +<!ENTITY trie "≜" ><!--/triangleq R: triangle, equals --> +<!ENTITY twixt "≬" ><!--/between R: between --> +<!ENTITY vBar "⫨" ><!--vert, dbl bar (under) --> +<!ENTITY Vbar "⫫" ><!--dbl vert, bar (under) --> +<!ENTITY vBarv "⫩" ><!--dbl bar, vert over and under --> +<!ENTITY vdash "⊢" ><!--/vdash R: vertical, dash --> +<!ENTITY vDash "⊨" ><!--/vDash R: vertical, dbl dash --> +<!ENTITY Vdash "⊩" ><!--/Vdash R: dbl vertical, dash --> +<!ENTITY VDash "⊫" ><!--dbl vert, dbl dash --> +<!ENTITY Vdashl "⫦" ><!--vertical, dash (long) --> +<!ENTITY vltri "⊲" ><!--/vartriangleleft R: l tri, open, var --> +<!ENTITY vprop "∝" ><!--/varpropto R: proportional, variant --> +<!ENTITY vrtri "⊳" ><!--/vartriangleright R: r tri, open, var --> +<!ENTITY Vvdash "⊪" ><!--/Vvdash R: triple vertical, dash --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isobox.ent b/docs/docbook/xslt/db2latex/mathml/ent/isobox.ent new file mode 100644 index 0000000000..630edc5597 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isobox.ent @@ -0,0 +1,67 @@ + +<!-- + File isobox.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY boxdl "┐" ><!--lower left quadrant --> +<!ENTITY boxdL "╕" ><!--lower left quadrant --> +<!ENTITY boxDl "╖" ><!--lower left quadrant --> +<!ENTITY boxDL "╗" ><!--lower left quadrant --> +<!ENTITY boxdr "┌" ><!--lower right quadrant --> +<!ENTITY boxdR "╒" ><!--lower right quadrant --> +<!ENTITY boxDr "╓" ><!--lower right quadrant --> +<!ENTITY boxDR "╔" ><!--lower right quadrant --> +<!ENTITY boxh "─" ><!--horizontal line --> +<!ENTITY boxH "═" ><!--horizontal line --> +<!ENTITY boxhd "┬" ><!--lower left and right quadrants --> +<!ENTITY boxhD "╥" ><!--lower left and right quadrants --> +<!ENTITY boxHd "╤" ><!--lower left and right quadrants --> +<!ENTITY boxHD "╦" ><!--lower left and right quadrants --> +<!ENTITY boxhu "┴" ><!--upper left and right quadrants --> +<!ENTITY boxhU "╨" ><!--upper left and right quadrants --> +<!ENTITY boxHu "╧" ><!--upper left and right quadrants --> +<!ENTITY boxHU "╩" ><!--upper left and right quadrants --> +<!ENTITY boxul "┘" ><!--upper left quadrant --> +<!ENTITY boxuL "╛" ><!--upper left quadrant --> +<!ENTITY boxUl "╜" ><!--upper left quadrant --> +<!ENTITY boxUL "╝" ><!--upper left quadrant --> +<!ENTITY boxur "└" ><!--upper right quadrant --> +<!ENTITY boxuR "╘" ><!--upper right quadrant --> +<!ENTITY boxUr "╙" ><!--upper right quadrant --> +<!ENTITY boxUR "╚" ><!--upper right quadrant --> +<!ENTITY boxv "│" ><!--vertical line --> +<!ENTITY boxV "║" ><!--vertical line --> +<!ENTITY boxvh "┼" ><!--all four quadrants --> +<!ENTITY boxvH "╪" ><!--all four quadrants --> +<!ENTITY boxVh "╫" ><!--all four quadrants --> +<!ENTITY boxVH "╬" ><!--all four quadrants --> +<!ENTITY boxvl "┤" ><!--upper and lower left quadrants --> +<!ENTITY boxvL "╡" ><!--upper and lower left quadrants --> +<!ENTITY boxVl "╢" ><!--upper and lower left quadrants --> +<!ENTITY boxVL "╣" ><!--upper and lower left quadrants --> +<!ENTITY boxvr "├" ><!--upper and lower right quadrants --> +<!ENTITY boxvR "╞" ><!--upper and lower right quadrants --> +<!ENTITY boxVr "╟" ><!--upper and lower right quadrants --> +<!ENTITY boxVR "╠" ><!--upper and lower right quadrants --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isocyr1.ent b/docs/docbook/xslt/db2latex/mathml/ent/isocyr1.ent new file mode 100644 index 0000000000..4bcc9e416e --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isocyr1.ent @@ -0,0 +1,94 @@ + +<!-- + File isocyr1.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY acy "а" ><!--=small a, Cyrillic --> +<!ENTITY Acy "А" ><!--=capital A, Cyrillic --> +<!ENTITY bcy "б" ><!--=small be, Cyrillic --> +<!ENTITY Bcy "Б" ><!--=capital BE, Cyrillic --> +<!ENTITY chcy "ч" ><!--=small che, Cyrillic --> +<!ENTITY CHcy "Ч" ><!--=capital CHE, Cyrillic --> +<!ENTITY dcy "д" ><!--=small de, Cyrillic --> +<!ENTITY Dcy "Д" ><!--=capital DE, Cyrillic --> +<!ENTITY ecy "э" ><!--=small e, Cyrillic --> +<!ENTITY Ecy "Э" ><!--=capital E, Cyrillic --> +<!ENTITY fcy "ф" ><!--=small ef, Cyrillic --> +<!ENTITY Fcy "Ф" ><!--=capital EF, Cyrillic --> +<!ENTITY gcy "г" ><!--=small ghe, Cyrillic --> +<!ENTITY Gcy "Г" ><!--=capital GHE, Cyrillic --> +<!ENTITY hardcy "ъ" ><!--=small hard sign, Cyrillic --> +<!ENTITY HARDcy "Ъ" ><!--=capital HARD sign, Cyrillic --> +<!ENTITY icy "и" ><!--=small i, Cyrillic --> +<!ENTITY Icy "И" ><!--=capital I, Cyrillic --> +<!ENTITY iecy "е" ><!--=small ie, Cyrillic --> +<!ENTITY IEcy "Е" ><!--=capital IE, Cyrillic --> +<!ENTITY iocy "ё" ><!--=small io, Russian --> +<!ENTITY IOcy "Ё" ><!--=capital IO, Russian --> +<!ENTITY jcy "й" ><!--=small short i, Cyrillic --> +<!ENTITY Jcy "Й" ><!--=capital short I, Cyrillic --> +<!ENTITY kcy "к" ><!--=small ka, Cyrillic --> +<!ENTITY Kcy "К" ><!--=capital KA, Cyrillic --> +<!ENTITY khcy "х" ><!--=small ha, Cyrillic --> +<!ENTITY KHcy "Х" ><!--=capital HA, Cyrillic --> +<!ENTITY lcy "л" ><!--=small el, Cyrillic --> +<!ENTITY Lcy "Л" ><!--=capital EL, Cyrillic --> +<!ENTITY mcy "м" ><!--=small em, Cyrillic --> +<!ENTITY Mcy "М" ><!--=capital EM, Cyrillic --> +<!ENTITY ncy "н" ><!--=small en, Cyrillic --> +<!ENTITY Ncy "Н" ><!--=capital EN, Cyrillic --> +<!ENTITY numero "№" ><!--=numero sign --> +<!ENTITY ocy "о" ><!--=small o, Cyrillic --> +<!ENTITY Ocy "О" ><!--=capital O, Cyrillic --> +<!ENTITY pcy "п" ><!--=small pe, Cyrillic --> +<!ENTITY Pcy "П" ><!--=capital PE, Cyrillic --> +<!ENTITY rcy "р" ><!--=small er, Cyrillic --> +<!ENTITY Rcy "Р" ><!--=capital ER, Cyrillic --> +<!ENTITY scy "с" ><!--=small es, Cyrillic --> +<!ENTITY Scy "С" ><!--=capital ES, Cyrillic --> +<!ENTITY shchcy "щ" ><!--=small shcha, Cyrillic --> +<!ENTITY SHCHcy "Щ" ><!--=capital SHCHA, Cyrillic --> +<!ENTITY shcy "ш" ><!--=small sha, Cyrillic --> +<!ENTITY SHcy "Ш" ><!--=capital SHA, Cyrillic --> +<!ENTITY softcy "ь" ><!--=small soft sign, Cyrillic --> +<!ENTITY SOFTcy "Ь" ><!--=capital SOFT sign, Cyrillic --> +<!ENTITY tcy "т" ><!--=small te, Cyrillic --> +<!ENTITY Tcy "Т" ><!--=capital TE, Cyrillic --> +<!ENTITY tscy "ц" ><!--=small tse, Cyrillic --> +<!ENTITY TScy "Ц" ><!--=capital TSE, Cyrillic --> +<!ENTITY ucy "у" ><!--=small u, Cyrillic --> +<!ENTITY Ucy "У" ><!--=capital U, Cyrillic --> +<!ENTITY vcy "в" ><!--=small ve, Cyrillic --> +<!ENTITY Vcy "В" ><!--=capital VE, Cyrillic --> +<!ENTITY yacy "я" ><!--=small ya, Cyrillic --> +<!ENTITY YAcy "Я" ><!--=capital YA, Cyrillic --> +<!ENTITY ycy "ы" ><!--=small yeru, Cyrillic --> +<!ENTITY Ycy "Ы" ><!--=capital YERU, Cyrillic --> +<!ENTITY yucy "ю" ><!--=small yu, Cyrillic --> +<!ENTITY YUcy "Ю" ><!--=capital YU, Cyrillic --> +<!ENTITY zcy "з" ><!--=small ze, Cyrillic --> +<!ENTITY Zcy "З" ><!--=capital ZE, Cyrillic --> +<!ENTITY zhcy "ж" ><!--=small zhe, Cyrillic --> +<!ENTITY ZHcy "Ж" ><!--=capital ZHE, Cyrillic --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isocyr2.ent b/docs/docbook/xslt/db2latex/mathml/ent/isocyr2.ent new file mode 100644 index 0000000000..67c477b24d --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isocyr2.ent @@ -0,0 +1,53 @@ + +<!-- + File isocyr2.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY djcy "ђ" ><!--=small dje, Serbian --> +<!ENTITY DJcy "Ђ" ><!--=capital DJE, Serbian --> +<!ENTITY dscy "ѕ" ><!--=small dse, Macedonian --> +<!ENTITY DScy "Ѕ" ><!--=capital DSE, Macedonian --> +<!ENTITY dzcy "џ" ><!--=small dze, Serbian --> +<!ENTITY DZcy "Џ" ><!--=capital dze, Serbian --> +<!ENTITY gjcy "ѓ" ><!--=small gje, Macedonian --> +<!ENTITY GJcy "Ѓ" ><!--=capital GJE Macedonian --> +<!ENTITY iukcy "і" ><!--=small i, Ukrainian --> +<!ENTITY Iukcy "І" ><!--=capital I, Ukrainian --> +<!ENTITY jsercy "ј" ><!--=small je, Serbian --> +<!ENTITY Jsercy "Ј" ><!--=capital JE, Serbian --> +<!ENTITY jukcy "є" ><!--=small je, Ukrainian --> +<!ENTITY Jukcy "Є" ><!--=capital JE, Ukrainian --> +<!ENTITY kjcy "ќ" ><!--=small kje Macedonian --> +<!ENTITY KJcy "Ќ" ><!--=capital KJE, Macedonian --> +<!ENTITY ljcy "љ" ><!--=small lje, Serbian --> +<!ENTITY LJcy "Љ" ><!--=capital LJE, Serbian --> +<!ENTITY njcy "њ" ><!--=small nje, Serbian --> +<!ENTITY NJcy "Њ" ><!--=capital NJE, Serbian --> +<!ENTITY tshcy "ћ" ><!--=small tshe, Serbian --> +<!ENTITY TSHcy "Ћ" ><!--=capital TSHE, Serbian --> +<!ENTITY ubrcy "ў" ><!--=small u, Byelorussian --> +<!ENTITY Ubrcy "Ў" ><!--=capital U, Byelorussian --> +<!ENTITY yicy "ї" ><!--=small yi, Ukrainian --> +<!ENTITY YIcy "Ї" ><!--=capital YI, Ukrainian --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isodia.ent b/docs/docbook/xslt/db2latex/mathml/ent/isodia.ent new file mode 100644 index 0000000000..ba6496300f --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isodia.ent @@ -0,0 +1,41 @@ + +<!-- + File isodia.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY acute "´" ><!--=acute accent --> +<!ENTITY breve "˘" ><!--=breve --> +<!ENTITY caron "ˇ" ><!--=caron --> +<!ENTITY cedil "¸" ><!--=cedilla --> +<!ENTITY circ "^" ><!--circumflex accent --> +<!ENTITY dblac "˝" ><!--=double acute accent --> +<!ENTITY die "¨" ><!--=dieresis --> +<!ENTITY dot "˙" ><!--=dot above --> +<!ENTITY grave "`" ><!--=grave accent --> +<!ENTITY macr "¯" ><!--=macron --> +<!ENTITY ogon "˛" ><!--=ogonek --> +<!ENTITY ring "˚" ><!--=ring --> +<!ENTITY tilde "˜" ><!--=tilde --> +<!ENTITY uml "¨" ><!--=umlaut mark --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isogrk1.ent b/docs/docbook/xslt/db2latex/mathml/ent/isogrk1.ent new file mode 100644 index 0000000000..63b9f14ce8 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isogrk1.ent @@ -0,0 +1,75 @@ +<!-- + + File isogrk1.ent produced by the dsssl script ent.dsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments in the STIX proposal for characters + for Mathematics. + + The STIX assignments are temporary and will change if + the proposal or some variant of it is adopted by the + Unicode Consortium. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. +--> + +<!ENTITY agr "α" ><!--U03B1 =small alpha, Greek --> +<!ENTITY Agr "Α" ><!--U0391 =capital Alpha, Greek --> +<!ENTITY bgr "β" ><!--U03B2 =small beta, Greek --> +<!ENTITY Bgr "Β" ><!--U0392 =capital Beta, Greek --> +<!ENTITY dgr "δ" ><!--U03B4 =small delta, Greek --> +<!ENTITY Dgr "Δ" ><!--U0394 =capital Delta, Greek --> +<!ENTITY eegr "η" ><!--U03B7 =small eta, Greek --> +<!ENTITY egr "ε" ><!--U03B5 =small epsilon, Greek --> +<!ENTITY EEgr "Η" ><!--U0397 =capital Eta, Greek --> +<!ENTITY Egr "Ε" ><!--U0395 =capital Epsilon, Greek --> +<!ENTITY ggr "γ" ><!--U03B3 =small gamma, Greek --> +<!ENTITY Ggr "Γ" ><!--U0393 =capital Gamma, Greek --> +<!ENTITY igr "ι" ><!--U03B9 =small iota, Greek --> +<!ENTITY Igr "Ι" ><!--U0399 =capital Iota, Greek --> +<!ENTITY kgr "κ" ><!--U03BA =small kappa, Greek --> +<!ENTITY khgr "χ" ><!--U03C7 =small chi, Greek --> +<!ENTITY Kgr "Κ" ><!--U039A =capital Kappa, Greek --> +<!ENTITY KHgr "Χ" ><!--U03A7 =capital Chi, Greek --> +<!ENTITY lgr "λ" ><!--U03BB =small lambda, Greek --> +<!ENTITY Lgr "Λ" ><!--U039B =capital Lambda, Greek --> +<!ENTITY mgr "μ" ><!--U03BC =small mu, Greek --> +<!ENTITY Mgr "Μ" ><!--U039C =capital Mu, Greek --> +<!ENTITY ngr "ν" ><!--U03BD =small nu, Greek --> +<!ENTITY Ngr "Ν" ><!--U039D =capital Nu, Greek --> +<!ENTITY ogr "ο" ><!--U03BF =small omicron, Greek --> +<!ENTITY ohgr "ω" ><!--U03C9 =small omega, Greek --> +<!ENTITY Ogr "Ο" ><!--U039F =capital Omicron, Greek --> +<!ENTITY OHgr "Ω" ><!--U03A9 =capital Omega, Greek --> +<!ENTITY pgr "π" ><!--U03C0 =small pi, Greek --> +<!ENTITY phgr "φ" ><!--U03C6 =small phi, Greek --> +<!ENTITY psgr "ψ" ><!--U03C8 =small psi, Greek --> +<!ENTITY Pgr "Π" ><!--U03A0 =capital Pi, Greek --> +<!ENTITY PHgr "Φ" ><!--U03A6 =capital Phi, Greek --> +<!ENTITY PSgr "Ψ" ><!--U03A8 =capital Psi, Greek --> +<!ENTITY rgr "ρ" ><!--U03C1 =small rho, Greek --> +<!ENTITY Rgr "Ρ" ><!--U03A1 =capital Rho, Greek --> +<!ENTITY sfgr "ς" ><!--U03C2 =final small sigma, Greek --> +<!ENTITY sgr "σ" ><!--U03C3 =small sigma, Greek --> +<!ENTITY Sgr "Σ" ><!--U03A3 =capital Sigma, Greek --> +<!ENTITY tgr "τ" ><!--U03C4 =small tau, Greek --> +<!ENTITY thgr "θ" ><!--U03B8 =small theta, Greek --> +<!ENTITY Tgr "Τ" ><!--U03A4 =capital Tau, Greek --> +<!ENTITY THgr "Θ" ><!--U0398 =capital Theta, Greek --> +<!ENTITY ugr "υ" ><!--U03C5 =small upsilon, Greek --> +<!ENTITY Ugr "Υ" ><!--U03A5 =capital Upsilon, Greek --> +<!ENTITY xgr "ξ" ><!--U03BE =small xi, Greek --> +<!ENTITY Xgr "Ξ" ><!--U039E =capital Xi, Greek --> +<!ENTITY zgr "ζ" ><!--U03B6 =small zeta, Greek --> +<!ENTITY Zgr "Ζ" ><!--U0396 =capital Zeta, Greek --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isogrk2.ent b/docs/docbook/xslt/db2latex/mathml/ent/isogrk2.ent new file mode 100644 index 0000000000..424786cabb --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isogrk2.ent @@ -0,0 +1,46 @@ +<!-- + + File isogrk2.ent produced by the dsssl script ent.dsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments in the STIX proposal for characters + for Mathematics. + + The STIX assignments are temporary and will change if + the proposal or some variant of it is adopted by the + Unicode Consortium. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. +--> + +<!ENTITY aacgr "ά" ><!--U03AC =small alpha, accent, Greek --> +<!ENTITY Aacgr "Ά" ><!--U0386 =capital Alpha, accent, Greek --> +<!ENTITY eacgr "έ" ><!--U03AD =small epsilon, accent, Greek --> +<!ENTITY eeacgr "ή" ><!--U03AE =small eta, accent, Greek --> +<!ENTITY Eacgr "Έ" ><!--U0388 =capital Epsilon, accent, Greek --> +<!ENTITY EEacgr "Ή" ><!--U0389 =capital Eta, accent, Greek --> +<!ENTITY iacgr "ί" ><!--U03AF =small iota, accent, Greek --> +<!ENTITY idiagr "ΐ" ><!--U0390 =small iota, dieresis, accent, Greek --> +<!ENTITY idigr "ϊ" ><!--U03CA =small iota, dieresis, Greek --> +<!ENTITY Iacgr "Ί" ><!--U038A =capital Iota, accent, Greek --> +<!ENTITY Idigr "Ϊ" ><!--U03AA =capital Iota, dieresis, Greek --> +<!ENTITY oacgr "ό" ><!--U03CC =small omicron, accent, Greek --> +<!ENTITY ohacgr "ώ" ><!--U03CE =small omega, accent, Greek --> +<!ENTITY Oacgr "Ό" ><!--U038C =capital Omicron, accent, Greek --> +<!ENTITY OHacgr "Ώ" ><!--U038F =capital Omega, accent, Greek --> +<!ENTITY uacgr "ύ" ><!--U03CD =small upsilon, accent, Greek --> +<!ENTITY udiagr "ΰ" ><!--U03B0 =small upsilon, dieresis, accent, Greek --> +<!ENTITY udigr "ϋ" ><!--U03CB =small upsilon, dieresis, Greek --> +<!ENTITY Uacgr "Ύ" ><!--U038E =capital Upsilon, accent, Greek --> +<!ENTITY Udigr "Ϋ" ><!--U03AB =capital Upsilon, dieresis, Greek --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isogrk3.ent b/docs/docbook/xslt/db2latex/mathml/ent/isogrk3.ent new file mode 100644 index 0000000000..fa03355048 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isogrk3.ent @@ -0,0 +1,70 @@ + +<!-- + File isogrk3.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY alpha "α" ><!--/alpha small alpha, Greek --> +<!ENTITY beta "β" ><!--/beta small beta, Greek --> +<!ENTITY chi "χ" ><!--/chi small chi, Greek --> +<!ENTITY delta "δ" ><!--/delta small delta, Greek --> +<!ENTITY Delta "Δ" ><!--/Delta capital Delta, Greek --> +<!ENTITY epsi "ε" ><!--/straightepsilon, small epsilon, Greek --> +<!ENTITY epsiv "ɛ" ><!--/varepsilon --> +<!ENTITY eta "η" ><!--/eta small eta, Greek --> +<!ENTITY gamma "γ" ><!--/gamma small gamma, Greek --> +<!ENTITY Gamma "Γ" ><!--/Gamma capital Gamma, Greek --> +<!ENTITY gammad "Ϝ" ><!--/digamma --> +<!ENTITY Gammad "Ϝ" ><!--capital digamma --> +<!ENTITY iota "ι" ><!--/iota small iota, Greek --> +<!ENTITY kappa "κ" ><!--/kappa small kappa, Greek --> +<!ENTITY kappav "ϰ" ><!--/varkappa --> +<!ENTITY lambda "λ" ><!--/lambda small lambda, Greek --> +<!ENTITY Lambda "Λ" ><!--/Lambda capital Lambda, Greek --> +<!ENTITY mu "μ" ><!--/mu small mu, Greek --> +<!ENTITY nu "ν" ><!--/nu small nu, Greek --> +<!ENTITY omega "ω" ><!--/omega small omega, Greek --> +<!ENTITY Omega "Ω" ><!--/Omega capital Omega, Greek --> +<!ENTITY phi "φ" ><!--/straightphi - small phi, Greek --> +<!ENTITY Phi "Φ" ><!--/Phi capital Phi, Greek --> +<!ENTITY phiv "ϕ" ><!--/varphi - curly or open phi --> +<!ENTITY pi "π" ><!--/pi small pi, Greek --> +<!ENTITY Pi "Π" ><!--/Pi capital Pi, Greek --> +<!ENTITY piv "ϖ" ><!--/varpi --> +<!ENTITY psi "ψ" ><!--/psi small psi, Greek --> +<!ENTITY Psi "Ψ" ><!--/Psi capital Psi, Greek --> +<!ENTITY rho "ρ" ><!--/rho small rho, Greek --> +<!ENTITY rhov "ϱ" ><!--/varrho --> +<!ENTITY sigma "σ" ><!--/sigma small sigma, Greek --> +<!ENTITY Sigma "Σ" ><!--/Sigma capital Sigma, Greek --> +<!ENTITY sigmav "ς" ><!--/varsigma --> +<!ENTITY tau "τ" ><!--/tau small tau, Greek --> +<!ENTITY theta "θ" ><!--/theta straight theta, small theta, Greek --> +<!ENTITY Theta "Θ" ><!--/Theta capital Theta, Greek --> +<!ENTITY thetav "ϑ" ><!--/vartheta - curly or open theta --> +<!ENTITY upsi "υ" ><!--/upsilon small upsilon, Greek --> +<!ENTITY Upsi "ϒ" ><!--/Upsilon capital Upsilon, Greek --> +<!ENTITY xi "ξ" ><!--/xi small xi, Greek --> +<!ENTITY Xi "Ξ" ><!--/Xi capital Xi, Greek --> +<!ENTITY zeta "ζ" ><!--/zeta small zeta, Greek --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isogrk4.ent b/docs/docbook/xslt/db2latex/mathml/ent/isogrk4.ent new file mode 100644 index 0000000000..71f834042b --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isogrk4.ent @@ -0,0 +1,69 @@ +<!-- + + File isogrk4.ent produced by the dsssl script ent.dsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments in the STIX proposal for characters + for Mathematics. + + The STIX assignments are temporary and will change if + the proposal or some variant of it is adopted by the + Unicode Consortium. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. +--> + +<!ENTITY b.alpha "" ><!--UE700 small alpha, Greek --> +<!ENTITY b.beta "" ><!--UE701 small beta, Greek --> +<!ENTITY b.chi "" ><!--UE727 small chi, Greek --> +<!ENTITY b.delta "" ><!--UE706 small delta, Greek --> +<!ENTITY b.Delta "" ><!--UE707 capital delta, Greek --> +<!ENTITY b.epsi "" ><!--UE708 small epsilon, Greek --> +<!ENTITY b.epsiv "" ><!--UE709 varepsilion --> +<!ENTITY b.eta "" ><!--UE70C small eta, Greek --> +<!ENTITY b.gamma "" ><!--UE702 small gamma, Greek --> +<!ENTITY b.gammad "" ><!--UE704 digamma, Greek --> +<!ENTITY b.Gamma "" ><!--UE703 capital gamma, Greek --> +<!ENTITY b.Gammad "" ><!--UE705 capital digamma, Greek --> +<!ENTITY b.iota "" ><!--UE710 small iota, Greek --> +<!ENTITY b.kappa "" ><!--UE711 small kappa, Greek --> +<!ENTITY b.kappav "" ><!--UE712 var kappa, Greek --> +<!ENTITY b.lambda "" ><!--UE713 small lambda, Greek --> +<!ENTITY b.Lambda "" ><!--UE714 capital lambda, Greek --> +<!ENTITY b.mu "" ><!--UE715 small mu, Greek --> +<!ENTITY b.nu "" ><!--UE716 small nu, Greek --> +<!ENTITY b.omega "" ><!--UE72A small omega, Greek --> +<!ENTITY b.Omega "" ><!--UE72B capital Omega, Greek --> +<!ENTITY b.phis "" ><!--UE724 straight phi, Greek --> +<!ENTITY b.phiv "" ><!--UE726 varphi --> +<!ENTITY b.pi "" ><!--UE719 small pi, Greek --> +<!ENTITY b.piv "" ><!--UE71B varpi --> +<!ENTITY b.psi "" ><!--UE728 small psi, Greek --> +<!ENTITY b.Phi "" ><!--UE725 capital Phi, Greek --> +<!ENTITY b.Pi "" ><!--UE71A capital pi, Greek --> +<!ENTITY b.Psi "" ><!--UE729 capital Psi, Greek --> +<!ENTITY b.rho "" ><!--UE71C small rho, Greek --> +<!ENTITY b.rhov "" ><!--UE71D varrho --> +<!ENTITY b.sigma "" ><!--UE71E small sigma, Greek --> +<!ENTITY b.sigmav "" ><!--UE720 varsigma --> +<!ENTITY b.Sigma "" ><!--UE71F capital sigma, Greek --> +<!ENTITY b.tau "" ><!--UE721 small tau, Greek --> +<!ENTITY b.thetas "" ><!--UE70D straight theta, Greek --> +<!ENTITY b.thetav "" ><!--UE70F var theta, Greek --> +<!ENTITY b.Theta "" ><!--UE70E capital theta, Greek --> +<!ENTITY b.upsi "" ><!--UE722 small upsilon, Greek --> +<!ENTITY b.Upsilon "" ><!--UE723 capital upsilon, Greek --> +<!ENTITY b.xi "" ><!--UE717 small xi, Greek --> +<!ENTITY b.Xi "" ><!--UE718 capital xi, Greek --> +<!ENTITY b.zeta "" ><!--UE70B small zeta, Greek --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isolat1.ent b/docs/docbook/xslt/db2latex/mathml/ent/isolat1.ent new file mode 100644 index 0000000000..849d360aea --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isolat1.ent @@ -0,0 +1,89 @@ + +<!-- + File isolat1.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY aacute "á" ><!--=small a, acute accent --> +<!ENTITY Aacute "Á" ><!--=capital A, acute accent --> +<!ENTITY acirc "â" ><!--=small a, circumflex accent --> +<!ENTITY Acirc "Â" ><!--=capital A, circumflex accent --> +<!ENTITY aelig "æ" ><!--=small ae diphthong (ligature) --> +<!ENTITY AElig "Æ" ><!--=capital AE diphthong (ligature) --> +<!ENTITY agrave "à" ><!--=small a, grave accent --> +<!ENTITY Agrave "À" ><!--=capital A, grave accent --> +<!ENTITY aring "å" ><!--=small a, ring --> +<!ENTITY Aring "Å" ><!--=capital A, ring --> +<!ENTITY atilde "ã" ><!--=small a, tilde --> +<!ENTITY Atilde "Ã" ><!--=capital A, tilde --> +<!ENTITY auml "ä" ><!--=small a, dieresis or umlaut mark --> +<!ENTITY Auml "Ä" ><!--=capital A, dieresis or umlaut mark --> +<!ENTITY ccedil "ç" ><!--=small c, cedilla --> +<!ENTITY Ccedil "Ç" ><!--=capital C, cedilla --> +<!ENTITY eacute "é" ><!--=small e, acute accent --> +<!ENTITY Eacute "É" ><!--=capital E, acute accent --> +<!ENTITY ecirc "ê" ><!--=small e, circumflex accent --> +<!ENTITY Ecirc "Ê" ><!--=capital E, circumflex accent --> +<!ENTITY egrave "è" ><!--=small e, grave accent --> +<!ENTITY Egrave "È" ><!--=capital E, grave accent --> +<!ENTITY eth "ð" ><!--=small eth, Icelandic --> +<!ENTITY ETH "Ð" ><!--=capital Eth, Icelandic --> +<!ENTITY euml "ë" ><!--=small e, dieresis or umlaut mark --> +<!ENTITY Euml "Ë" ><!--=capital E, dieresis or umlaut mark --> +<!ENTITY iacute "í" ><!--=small i, acute accent --> +<!ENTITY Iacute "Í" ><!--=capital I, acute accent --> +<!ENTITY icirc "î" ><!--=small i, circumflex accent --> +<!ENTITY Icirc "Î" ><!--=capital I, circumflex accent --> +<!ENTITY igrave "ì" ><!--=small i, grave accent --> +<!ENTITY Igrave "Ì" ><!--=capital I, grave accent --> +<!ENTITY iuml "ï" ><!--=small i, dieresis or umlaut mark --> +<!ENTITY Iuml "Ï" ><!--=capital I, dieresis or umlaut mark --> +<!ENTITY ntilde "ñ" ><!--=small n, tilde --> +<!ENTITY Ntilde "Ñ" ><!--=capital N, tilde --> +<!ENTITY oacute "ó" ><!--=small o, acute accent --> +<!ENTITY Oacute "Ó" ><!--=capital O, acute accent --> +<!ENTITY ocirc "ô" ><!--=small o, circumflex accent --> +<!ENTITY Ocirc "Ô" ><!--=capital O, circumflex accent --> +<!ENTITY ograve "ò" ><!--=small o, grave accent --> +<!ENTITY Ograve "Ò" ><!--=capital O, grave accent --> +<!ENTITY oslash "ø" ><!--latin small letter o with stroke --> +<!ENTITY Oslash "Ø" ><!--=capital O, slash --> +<!ENTITY otilde "õ" ><!--=small o, tilde --> +<!ENTITY Otilde "Õ" ><!--=capital O, tilde --> +<!ENTITY ouml "ö" ><!--=small o, dieresis or umlaut mark --> +<!ENTITY Ouml "Ö" ><!--=capital O, dieresis or umlaut mark --> +<!ENTITY szlig "ß" ><!--=small sharp s, German (sz ligature) --> +<!ENTITY thorn "þ" ><!--=small thorn, Icelandic --> +<!ENTITY THORN "Þ" ><!--=capital THORN, Icelandic --> +<!ENTITY uacute "ú" ><!--=small u, acute accent --> +<!ENTITY Uacute "Ú" ><!--=capital U, acute accent --> +<!ENTITY ucirc "û" ><!--=small u, circumflex accent --> +<!ENTITY Ucirc "Û" ><!--=capital U, circumflex accent --> +<!ENTITY ugrave "ù" ><!--=small u, grave accent --> +<!ENTITY Ugrave "Ù" ><!--=capital U, grave accent --> +<!ENTITY uuml "ü" ><!--=small u, dieresis or umlaut mark --> +<!ENTITY Uuml "Ü" ><!--=capital U, dieresis or umlaut mark --> +<!ENTITY yacute "ý" ><!--=small y, acute accent --> +<!ENTITY Yacute "Ý" ><!--=capital Y, acute accent --> +<!ENTITY yuml "ÿ" ><!--=small y, dieresis or umlaut mark --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isolat2.ent b/docs/docbook/xslt/db2latex/mathml/ent/isolat2.ent new file mode 100644 index 0000000000..3049be7f1f --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isolat2.ent @@ -0,0 +1,148 @@ + +<!-- + File isolat2.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY abreve "ă" ><!--=small a, breve --> +<!ENTITY Abreve "Ă" ><!--=capital A, breve --> +<!ENTITY amacr "ā" ><!--=small a, macron --> +<!ENTITY Amacr "Ā" ><!--=capital A, macron --> +<!ENTITY aogon "ą" ><!--=small a, ogonek --> +<!ENTITY Aogon "Ą" ><!--=capital A, ogonek --> +<!ENTITY cacute "ć" ><!--=small c, acute accent --> +<!ENTITY Cacute "Ć" ><!--=capital C, acute accent --> +<!ENTITY ccaron "č" ><!--=small c, caron --> +<!ENTITY Ccaron "Č" ><!--=capital C, caron --> +<!ENTITY ccirc "ĉ" ><!--=small c, circumflex accent --> +<!ENTITY Ccirc "Ĉ" ><!--=capital C, circumflex accent --> +<!ENTITY cdot "ċ" ><!--=small c, dot above --> +<!ENTITY Cdot "Ċ" ><!--=capital C, dot above --> +<!ENTITY dcaron "ď" ><!--=small d, caron --> +<!ENTITY Dcaron "Ď" ><!--=capital D, caron --> +<!ENTITY dstrok "đ" ><!--=small d, stroke --> +<!ENTITY Dstrok "Đ" ><!--=capital D, stroke --> +<!ENTITY ecaron "ě" ><!--=small e, caron --> +<!ENTITY Ecaron "Ě" ><!--=capital E, caron --> +<!ENTITY edot "ė" ><!--=small e, dot above --> +<!ENTITY Edot "Ė" ><!--=capital E, dot above --> +<!ENTITY emacr "ē" ><!--=small e, macron --> +<!ENTITY Emacr "Ē" ><!--=capital E, macron --> +<!ENTITY eng "ŋ" ><!--=small eng, Lapp --> +<!ENTITY ENG "Ŋ" ><!--=capital ENG, Lapp --> +<!ENTITY eogon "ę" ><!--=small e, ogonek --> +<!ENTITY Eogon "Ę" ><!--=capital E, ogonek --> +<!ENTITY gacute "ǵ" ><!--=small g, acute accent --> +<!ENTITY gbreve "ğ" ><!--=small g, breve --> +<!ENTITY Gbreve "Ğ" ><!--=capital G, breve --> +<!ENTITY Gcedil "Ģ" ><!--=capital G, cedilla --> +<!ENTITY gcirc "ĝ" ><!--=small g, circumflex accent --> +<!ENTITY Gcirc "Ĝ" ><!--=capital G, circumflex accent --> +<!ENTITY gdot "ġ" ><!--=small g, dot above --> +<!ENTITY Gdot "Ġ" ><!--=capital G, dot above --> +<!ENTITY hcirc "ĥ" ><!--=small h, circumflex accent --> +<!ENTITY Hcirc "Ĥ" ><!--=capital H, circumflex accent --> +<!ENTITY hstrok "ħ" ><!--=small h, stroke --> +<!ENTITY Hstrok "Ħ" ><!--=capital H, stroke --> +<!ENTITY Idot "İ" ><!--=capital I, dot above --> +<!ENTITY ijlig "ij" ><!--=small ij ligature --> +<!ENTITY IJlig "IJ" ><!--=capital IJ ligature --> +<!ENTITY imacr "ī" ><!--=small i, macron --> +<!ENTITY Imacr "Ī" ><!--=capital I, macron --> +<!ENTITY inodot "ı" ><!--=small i without dot --> +<!ENTITY iogon "į" ><!--=small i, ogonek --> +<!ENTITY Iogon "Į" ><!--=capital I, ogonek --> +<!ENTITY itilde "ĩ" ><!--=small i, tilde --> +<!ENTITY Itilde "Ĩ" ><!--=capital I, tilde --> +<!ENTITY jcirc "ĵ" ><!--=small j, circumflex accent --> +<!ENTITY Jcirc "Ĵ" ><!--=capital J, circumflex accent --> +<!ENTITY kcedil "ķ" ><!--=small k, cedilla --> +<!ENTITY Kcedil "Ķ" ><!--=capital K, cedilla --> +<!ENTITY kgreen "ĸ" ><!--=small k, Greenlandic --> +<!ENTITY lacute "ĺ" ><!--=small l, acute accent --> +<!ENTITY Lacute "Ĺ" ><!--=capital L, acute accent --> +<!ENTITY lcaron "ľ" ><!--=small l, caron --> +<!ENTITY Lcaron "Ľ" ><!--=capital L, caron --> +<!ENTITY lcedil "ļ" ><!--=small l, cedilla --> +<!ENTITY Lcedil "Ļ" ><!--=capital L, cedilla --> +<!ENTITY lmidot "ŀ" ><!--=small l, middle dot --> +<!ENTITY Lmidot "Ŀ" ><!--=capital L, middle dot --> +<!ENTITY lstrok "ł" ><!--=small l, stroke --> +<!ENTITY Lstrok "Ł" ><!--=capital L, stroke --> +<!ENTITY nacute "ń" ><!--=small n, acute accent --> +<!ENTITY Nacute "Ń" ><!--=capital N, acute accent --> +<!ENTITY napos "ʼn" ><!--=small n, apostrophe --> +<!ENTITY ncaron "ň" ><!--=small n, caron --> +<!ENTITY Ncaron "Ň" ><!--=capital N, caron --> +<!ENTITY ncedil "ņ" ><!--=small n, cedilla --> +<!ENTITY Ncedil "Ņ" ><!--=capital N, cedilla --> +<!ENTITY odblac "ő" ><!--=small o, double acute accent --> +<!ENTITY Odblac "Ő" ><!--=capital O, double acute accent --> +<!ENTITY oelig "œ" ><!--=small oe ligature --> +<!ENTITY OElig "Œ" ><!--=capital OE ligature --> +<!ENTITY omacr "ō" ><!--=small o, macron --> +<!ENTITY Omacr "Ō" ><!--=capital O, macron --> +<!ENTITY racute "ŕ" ><!--=small r, acute accent --> +<!ENTITY Racute "Ŕ" ><!--=capital R, acute accent --> +<!ENTITY rcaron "ř" ><!--=small r, caron --> +<!ENTITY Rcaron "Ř" ><!--=capital R, caron --> +<!ENTITY rcedil "ŗ" ><!--=small r, cedilla --> +<!ENTITY Rcedil "Ŗ" ><!--=capital R, cedilla --> +<!ENTITY sacute "ś" ><!--=small s, acute accent --> +<!ENTITY Sacute "Ś" ><!--=capital S, acute accent --> +<!ENTITY scaron "š" ><!--=small s, caron --> +<!ENTITY Scaron "Š" ><!--=capital S, caron --> +<!ENTITY scedil "ş" ><!--=small s, cedilla --> +<!ENTITY Scedil "Ş" ><!--=capital S, cedilla --> +<!ENTITY scirc "ŝ" ><!--=small s, circumflex accent --> +<!ENTITY Scirc "Ŝ" ><!--=capital S, circumflex accent --> +<!ENTITY tcaron "ť" ><!--=small t, caron --> +<!ENTITY Tcaron "Ť" ><!--=capital T, caron --> +<!ENTITY tcedil "ţ" ><!--=small t, cedilla --> +<!ENTITY Tcedil "Ţ" ><!--=capital T, cedilla --> +<!ENTITY tstrok "ŧ" ><!--=small t, stroke --> +<!ENTITY Tstrok "Ŧ" ><!--=capital T, stroke --> +<!ENTITY ubreve "ŭ" ><!--=small u, breve --> +<!ENTITY Ubreve "Ŭ" ><!--=capital U, breve --> +<!ENTITY udblac "ű" ><!--=small u, double acute accent --> +<!ENTITY Udblac "Ű" ><!--=capital U, double acute accent --> +<!ENTITY umacr "ū" ><!--=small u, macron --> +<!ENTITY Umacr "Ū" ><!--=capital U, macron --> +<!ENTITY uogon "ų" ><!--=small u, ogonek --> +<!ENTITY Uogon "Ų" ><!--=capital U, ogonek --> +<!ENTITY uring "ů" ><!--=small u, ring --> +<!ENTITY Uring "Ů" ><!--=capital U, ring --> +<!ENTITY utilde "ũ" ><!--=small u, tilde --> +<!ENTITY Utilde "Ũ" ><!--=capital U, tilde --> +<!ENTITY wcirc "ŵ" ><!--=small w, circumflex accent --> +<!ENTITY Wcirc "Ŵ" ><!--=capital W, circumflex accent --> +<!ENTITY ycirc "ŷ" ><!--=small y, circumflex accent --> +<!ENTITY Ycirc "Ŷ" ><!--=capital Y, circumflex accent --> +<!ENTITY Yuml "Ÿ" ><!--=capital Y, dieresis or umlaut mark --> +<!ENTITY zacute "ź" ><!--=small z, acute accent --> +<!ENTITY Zacute "Ź" ><!--=capital Z, acute accent --> +<!ENTITY zcaron "ž" ><!--=small z, caron --> +<!ENTITY Zcaron "Ž" ><!--=capital Z, caron --> +<!ENTITY zdot "ż" ><!--=small z, dot above --> +<!ENTITY Zdot "Ż" ><!--=capital Z, dot above --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isomfrk.ent b/docs/docbook/xslt/db2latex/mathml/ent/isomfrk.ent new file mode 100644 index 0000000000..397212a643 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isomfrk.ent @@ -0,0 +1,79 @@ + +<!-- + File isomfrk.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY afr "𝔞" ><!--/frak a, lower case a --> +<!ENTITY Afr "𝔄" ><!--/frak A, upper case a --> +<!ENTITY bfr "𝔟" ><!--/frak b, lower case b --> +<!ENTITY Bfr "𝔅" ><!--/frak B, upper case b --> +<!ENTITY cfr "𝔠" ><!--/frak c, lower case c --> +<!ENTITY Cfr "𝔆" ><!--/frak C, upper case c --> +<!ENTITY dfr "𝔡" ><!--/frak d, lower case d --> +<!ENTITY Dfr "𝔇" ><!--/frak D, upper case d --> +<!ENTITY efr "𝔢" ><!--/frak e, lower case e --> +<!ENTITY Efr "𝔈" ><!--/frak E, upper case e --> +<!ENTITY ffr "𝔣" ><!--/frak f, lower case f --> +<!ENTITY Ffr "𝔉" ><!--/frak F, upper case f --> +<!ENTITY gfr "𝔤" ><!--/frak g, lower case g --> +<!ENTITY Gfr "𝔊" ><!--/frak G, upper case g --> +<!ENTITY hfr "𝔥" ><!--/frak h, lower case h --> +<!ENTITY Hfr "𝔋" ><!--/frak H, upper case h --> +<!ENTITY ifr "𝔦" ><!--/frak i, lower case i --> +<!ENTITY Ifr "𝔌" ><!--/frak I, upper case i --> +<!ENTITY jfr "𝔧" ><!--/frak j, lower case j --> +<!ENTITY Jfr "𝔍" ><!--/frak J, upper case j --> +<!ENTITY kfr "𝔨" ><!--/frak k, lower case k --> +<!ENTITY Kfr "𝔎" ><!--/frak K, upper case k --> +<!ENTITY lfr "𝔩" ><!--/frak l, lower case l --> +<!ENTITY Lfr "𝔏" ><!--/frak L, upper case l --> +<!ENTITY mfr "𝔪" ><!--/frak m, lower case m --> +<!ENTITY Mfr "𝔐" ><!--/frak M, upper case m --> +<!ENTITY nfr "𝔫" ><!--/frak n, lower case n --> +<!ENTITY Nfr "𝔑" ><!--/frak N, upper case n --> +<!ENTITY ofr "𝔬" ><!--/frak o, lower case o --> +<!ENTITY Ofr "𝔒" ><!--/frak O, upper case o --> +<!ENTITY pfr "𝔭" ><!--/frak p, lower case p --> +<!ENTITY Pfr "𝔓" ><!--/frak P, upper case p --> +<!ENTITY qfr "𝔮" ><!--/frak q, lower case q --> +<!ENTITY Qfr "𝔔" ><!--/frak Q, upper case q --> +<!ENTITY rfr "𝔯" ><!--/frak r, lower case r --> +<!ENTITY Rfr "𝔕" ><!--/frak R, upper case r --> +<!ENTITY sfr "𝔰" ><!--/frak s, lower case s --> +<!ENTITY Sfr "𝔖" ><!--/frak S, upper case s --> +<!ENTITY tfr "𝔱" ><!--/frak t, lower case t --> +<!ENTITY Tfr "𝔗" ><!--/frak T, upper case t --> +<!ENTITY ufr "𝔲" ><!--/frak u, lower case u --> +<!ENTITY Ufr "𝔘" ><!--/frak U, upper case u --> +<!ENTITY vfr "𝔳" ><!--/frak v, lower case v --> +<!ENTITY Vfr "𝔙" ><!--/frak V, upper case v --> +<!ENTITY wfr "𝔴" ><!--/frak w, lower case w --> +<!ENTITY Wfr "𝔚" ><!--/frak W, upper case w --> +<!ENTITY xfr "𝔵" ><!--/frak x, lower case x --> +<!ENTITY Xfr "𝔛" ><!--/frak X, upper case x --> +<!ENTITY yfr "𝔶" ><!--/frak y, lower case y --> +<!ENTITY Yfr "𝔜" ><!--/frak Y, upper case y --> +<!ENTITY zfr "𝔷" ><!--/frak z, lower case z --> +<!ENTITY Zfr "𝔝" ><!--/frak Z, upper case z --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isomopf.ent b/docs/docbook/xslt/db2latex/mathml/ent/isomopf.ent new file mode 100644 index 0000000000..806b2fb4fe --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isomopf.ent @@ -0,0 +1,53 @@ + +<!-- + File isomopf.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY Aopf "𝔸" ><!--/Bbb A, open face A --> +<!ENTITY Bopf "𝔹" ><!--/Bbb B, open face B --> +<!ENTITY Copf "𝔺" ><!--/Bbb C, open face C --> +<!ENTITY Dopf "𝔻" ><!--/Bbb D, open face D --> +<!ENTITY Eopf "𝔼" ><!--/Bbb E, open face E --> +<!ENTITY Fopf "𝔽" ><!--/Bbb F, open face F --> +<!ENTITY Gopf "𝔾" ><!--/Bbb G, open face G --> +<!ENTITY Hopf "𝔿" ><!--/Bbb H, open face H --> +<!ENTITY Iopf "𝕀" ><!--/Bbb I, open face I --> +<!ENTITY Jopf "𝕁" ><!--/Bbb J, open face J --> +<!ENTITY Kopf "𝕂" ><!--/Bbb K, open face K --> +<!ENTITY Lopf "𝕃" ><!--/Bbb L, open face L --> +<!ENTITY Mopf "𝕄" ><!--/Bbb M, open face M --> +<!ENTITY Nopf "𝕅" ><!--/Bbb N, open face N --> +<!ENTITY Oopf "𝕆" ><!--/Bbb O, open face O --> +<!ENTITY Popf "𝕇" ><!--/Bbb P, open face P --> +<!ENTITY Qopf "𝕈" ><!--/Bbb Q, open face Q --> +<!ENTITY Ropf "𝕉" ><!--/Bbb R, open face R --> +<!ENTITY Sopf "𝕊" ><!--/Bbb S, open face S --> +<!ENTITY Topf "𝕋" ><!--/Bbb T, open face T --> +<!ENTITY Uopf "𝕌" ><!--/Bbb U, open face U --> +<!ENTITY Vopf "𝕍" ><!--/Bbb V, open face V --> +<!ENTITY Wopf "𝕎" ><!--/Bbb W, open face W --> +<!ENTITY Xopf "𝕏" ><!--/Bbb X, open face X --> +<!ENTITY Yopf "𝕐" ><!--/Bbb Y, open face Y --> +<!ENTITY Zopf "𝕑" ><!--/Bbb Z, open face Z --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isomscr.ent b/docs/docbook/xslt/db2latex/mathml/ent/isomscr.ent new file mode 100644 index 0000000000..a1bb39c36c --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isomscr.ent @@ -0,0 +1,79 @@ + +<!-- + File isomscr.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY ascr "𝒶" ><!--/scr a, script letter a --> +<!ENTITY Ascr "𝒜" ><!--/scr A, script letter A --> +<!ENTITY bscr "𝒷" ><!--/scr b, script letter b --> +<!ENTITY Bscr "𝒝" ><!--/scr B, script letter B --> +<!ENTITY cscr "𝒸" ><!--/scr c, script letter c --> +<!ENTITY Cscr "𝒞" ><!--/scr C, script letter C --> +<!ENTITY dscr "𝒹" ><!--/scr d, script letter d --> +<!ENTITY Dscr "𝒟" ><!--/scr D, script letter D --> +<!ENTITY escr "𝒺" ><!--/scr e, script letter e --> +<!ENTITY Escr "𝒠" ><!--/scr E, script letter E --> +<!ENTITY fscr "𝒻" ><!--/scr f, script letter f --> +<!ENTITY Fscr "𝒡" ><!--/scr F, script letter F --> +<!ENTITY gscr "𝒼" ><!--/scr g, script letter g --> +<!ENTITY Gscr "𝒢" ><!--/scr G, script letter G --> +<!ENTITY hscr "𝒽" ><!--/scr h, script letter h --> +<!ENTITY Hscr "𝒣" ><!--/scr H, script letter H --> +<!ENTITY iscr "𝒾" ><!--/scr i, script letter i --> +<!ENTITY Iscr "𝒤" ><!--/scr I, script letter I --> +<!ENTITY jscr "𝒿" ><!--/scr j, script letter j --> +<!ENTITY Jscr "𝒥" ><!--/scr J, script letter J --> +<!ENTITY kscr "𝓀" ><!--/scr k, script letter k --> +<!ENTITY Kscr "𝒦" ><!--/scr K, script letter K --> +<!ENTITY lscr "𝓁" ><!--/scr l, script letter l --> +<!ENTITY Lscr "𝒧" ><!--/scr L, script letter L --> +<!ENTITY mscr "𝓂" ><!--/scr m, script letter m --> +<!ENTITY Mscr "𝒨" ><!--/scr M, script letter M --> +<!ENTITY nscr "𝓃" ><!--/scr n, script letter n --> +<!ENTITY Nscr "𝒩" ><!--/scr N, script letter N --> +<!ENTITY oscr "𝓄" ><!--/scr o, script letter o --> +<!ENTITY Oscr "𝒪" ><!--/scr O, script letter O --> +<!ENTITY pscr "𝓅" ><!--/scr p, script letter p --> +<!ENTITY Pscr "𝒫" ><!--/scr P, script letter P --> +<!ENTITY qscr "𝓆" ><!--/scr q, script letter q --> +<!ENTITY Qscr "𝒬" ><!--/scr Q, script letter Q --> +<!ENTITY rscr "𝓇" ><!--/scr r, script letter r --> +<!ENTITY Rscr "𝒭" ><!--/scr R, script letter R --> +<!ENTITY sscr "𝓈" ><!--/scr s, script letter s --> +<!ENTITY Sscr "𝒮" ><!--/scr S, script letter S --> +<!ENTITY tscr "𝓉" ><!--/scr t, script letter t --> +<!ENTITY Tscr "𝒯" ><!--/scr T, script letter T --> +<!ENTITY uscr "𝓊" ><!--/scr u, script letter u --> +<!ENTITY Uscr "𝒰" ><!--/scr U, script letter U --> +<!ENTITY vscr "𝓋" ><!--/scr v, script letter v --> +<!ENTITY Vscr "𝒱" ><!--/scr V, script letter V --> +<!ENTITY wscr "𝓌" ><!--/scr w, script letter w --> +<!ENTITY Wscr "𝒲" ><!--/scr W, script letter W --> +<!ENTITY xscr "𝓍" ><!--/scr x, script letter x --> +<!ENTITY Xscr "𝒳" ><!--/scr X, script letter X --> +<!ENTITY yscr "𝓎" ><!--/scr y, script letter y --> +<!ENTITY Yscr "𝒴" ><!--/scr Y, script letter Y --> +<!ENTITY zscr "𝓏" ><!--/scr z, script letter z --> +<!ENTITY Zscr "𝒵" ><!--/scr Z, script letter Z --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isonum.ent b/docs/docbook/xslt/db2latex/mathml/ent/isonum.ent new file mode 100644 index 0000000000..e5a7002fb4 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isonum.ent @@ -0,0 +1,103 @@ + +<!-- + File isonum.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY amp "&&" ><!--=ampersand --> +<!ENTITY apos "'" ><!--=apostrophe --> +<!ENTITY ast "*" ><!--/ast B: =asterisk --> +<!ENTITY brvbar "¦" ><!--=broken (vertical) bar --> +<!ENTITY bsol "\" ><!--/backslash =reverse solidus --> +<!ENTITY cent "¢" ><!--=cent sign --> +<!ENTITY colon ":" ><!--/colon P: --> +<!ENTITY comma "," ><!--P: =comma --> +<!ENTITY commat "@" ><!--=commercial at --> +<!ENTITY copy "©" ><!--=copyright sign --> +<!ENTITY curren "¤" ><!--=general currency sign --> +<!ENTITY darr "↓" ><!--/downarrow A: =downward arrow --> +<!ENTITY deg "°" ><!--=degree sign --> +<!ENTITY divide "÷" ><!--/div B: =divide sign --> +<!ENTITY dollar "$" ><!--=dollar sign --> +<!ENTITY equals "=" ><!--=equals sign R: --> +<!ENTITY excl "!" ><!--=exclamation mark --> +<!ENTITY frac12 "½" ><!--=fraction one-half --> +<!ENTITY frac14 "¼" ><!--=fraction one-quarter --> +<!ENTITY frac18 "⅛" ><!--=fraction one-eighth --> +<!ENTITY frac34 "¾" ><!--=fraction three-quarters --> +<!ENTITY frac38 "⅜" ><!--=fraction three-eighths --> +<!ENTITY frac58 "⅝" ><!--=fraction five-eighths --> +<!ENTITY frac78 "⅞" ><!--=fraction seven-eighths --> +<!ENTITY gt ">" ><!--=greater-than sign R: --> +<!ENTITY half "½" ><!--=fraction one-half --> +<!ENTITY horbar "―" ><!--=horizontal bar --> +<!ENTITY hyphen "‐" ><!--=hyphen --> +<!ENTITY iexcl "¡" ><!--=inverted exclamation mark --> +<!ENTITY iquest "¿" ><!--=inverted question mark --> +<!ENTITY laquo "«" ><!--=angle quotation mark, left --> +<!ENTITY larr "←" ><!--/leftarrow /gets A: =leftward arrow --> +<!ENTITY lcub "{" ><!--/lbrace O: =left curly bracket --> +<!ENTITY ldquo "“" ><!--=double quotation mark, left --> +<!ENTITY lowbar "_" ><!--=low line --> +<!ENTITY lpar "(" ><!--O: =left parenthesis --> +<!ENTITY lsqb "[" ><!--/lbrack O: =left square bracket --> +<!ENTITY lsquo "‘" ><!--=single quotation mark, left --> +<!ENTITY lt "&<" ><!--=less-than sign R: --> +<!ENTITY micro "µ" ><!--=micro sign --> +<!ENTITY middot "·" ><!--/centerdot B: =middle dot --> +<!ENTITY nbsp " " ><!--=no break (required) space --> +<!ENTITY not "¬" ><!--/neg /lnot =not sign --> +<!ENTITY num "#" ><!--=number sign --> +<!ENTITY ohm "Ω" ><!--=ohm sign --> +<!ENTITY ordf "ª" ><!--=ordinal indicator, feminine --> +<!ENTITY ordm "º" ><!--=ordinal indicator, masculine --> +<!ENTITY para "¶" ><!--=pilcrow (paragraph sign) --> +<!ENTITY percnt "%" ><!--=percent sign --> +<!ENTITY period "." ><!--=full stop, period --> +<!ENTITY plus "+" ><!--=plus sign B: --> +<!ENTITY plusmn "±" ><!--/pm B: =plus-or-minus sign --> +<!ENTITY pound "£" ><!--=pound sign --> +<!ENTITY quest "?" ><!--=question mark --> +<!ENTITY quot """ ><!--=quotation mark --> +<!ENTITY raquo "»" ><!--=angle quotation mark, right --> +<!ENTITY rarr "→" ><!--/rightarrow /to A: =rightward arrow --> +<!ENTITY rcub "}" ><!--/rbrace C: =right curly bracket --> +<!ENTITY rdquo "”" ><!--=double quotation mark, right --> +<!ENTITY reg "®" ><!--/circledR =registered sign --> +<!ENTITY rpar ")" ><!--C: =right parenthesis --> +<!ENTITY rsqb "]" ><!--/rbrack C: =right square bracket --> +<!ENTITY rsquo "’" ><!--=single quotation mark, right --> +<!ENTITY sect "§" ><!--=section sign --> +<!ENTITY semi ";" ><!--=semicolon P: --> +<!ENTITY shy "­" ><!--=soft hyphen --> +<!ENTITY sol "/" ><!--=solidus --> +<!ENTITY sung "♪" ><!--=music note (sung text sign) --> +<!ENTITY sup1 "¹" ><!--=superscript one --> +<!ENTITY sup2 "²" ><!--=superscript two --> +<!ENTITY sup3 "³" ><!--=superscript three --> +<!ENTITY times "×" ><!--/times B: =multiply sign --> +<!ENTITY trade "™" ><!--=trade mark sign --> +<!ENTITY uarr "↑" ><!--/uparrow A: =upward arrow --> +<!ENTITY verbar "|" ><!--/vert =vertical bar --> +<!ENTITY yen "¥" ><!--/yen =yen sign --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isopub.ent b/docs/docbook/xslt/db2latex/mathml/ent/isopub.ent new file mode 100644 index 0000000000..5591fc390e --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isopub.ent @@ -0,0 +1,111 @@ + +<!-- + File isopub.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1986 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY blank "␣" ><!--=significant blank symbol --> +<!ENTITY blk12 "▒" ><!--=50% shaded block --> +<!ENTITY blk14 "░" ><!--=25% shaded block --> +<!ENTITY blk34 "▓" ><!--=75% shaded block --> +<!ENTITY block "█" ><!--=full block --> +<!ENTITY bull "•" ><!--/bullet B: =round bullet, filled --> +<!ENTITY caret "⁁" ><!--=caret (insertion mark) --> +<!ENTITY check "✓" ><!--/checkmark =tick, check mark --> +<!ENTITY cir "○" ><!--/circ B: =circle, open --> +<!ENTITY clubs "♣" ><!--/clubsuit =club suit symbol --> +<!ENTITY copysr "℗" ><!--=sound recording copyright sign --> +<!ENTITY cross "✗" ><!--=ballot cross --> +<!ENTITY dagger "†" ><!--/dagger B: =dagger --> +<!ENTITY Dagger "‡" ><!--/ddagger B: =double dagger --> +<!ENTITY dash "‐" ><!--=hyphen (true graphic) --> +<!ENTITY diams "♦" ><!--/diamondsuit =diamond suit symbol --> +<!ENTITY dlcrop "⌍" ><!--downward left crop mark --> +<!ENTITY drcrop "⌌" ><!--downward right crop mark --> +<!ENTITY dtri "▿" ><!--/triangledown =down triangle, open --> +<!ENTITY dtrif "▾" ><!--/blacktriangledown =dn tri, filled --> +<!ENTITY emsp " " ><!--=em space --> +<!ENTITY emsp13 " " ><!--=1/3-em space --> +<!ENTITY emsp14 " " ><!--=1/4-em space --> +<!ENTITY ensp " " ><!--=en space (1/2-em) --> +<!ENTITY female "♀" ><!--=female symbol --> +<!ENTITY ffilig "ffi" ><!--small ffi ligature --> +<!ENTITY fflig "ff" ><!--small ff ligature --> +<!ENTITY ffllig "ffl" ><!--small ffl ligature --> +<!ENTITY filig "fi" ><!--small fi ligature --> +<!ENTITY flat "♭" ><!--/flat =musical flat --> +<!ENTITY fllig "fl" ><!--small fl ligature --> +<!ENTITY frac13 "⅓" ><!--=fraction one-third --> +<!ENTITY frac15 "⅕" ><!--=fraction one-fifth --> +<!ENTITY frac16 "⅙" ><!--=fraction one-sixth --> +<!ENTITY frac23 "⅔" ><!--=fraction two-thirds --> +<!ENTITY frac25 "⅖" ><!--=fraction two-fifths --> +<!ENTITY frac35 "⅗" ><!--=fraction three-fifths --> +<!ENTITY frac45 "⅘" ><!--=fraction four-fifths --> +<!ENTITY frac56 "⅚" ><!--=fraction five-sixths --> +<!ENTITY hairsp " " ><!--=hair space --> +<!ENTITY hearts "♡" ><!--/heartsuit =heart suit symbol --> +<!ENTITY hellip "…" ><!--=ellipsis (horizontal) --> +<!ENTITY hybull "⁃" ><!--rectangle, filled (hyphen bullet) --> +<!ENTITY incare "℅" ><!--=in-care-of symbol --> +<!ENTITY ldquor "„" ><!--=rising dbl quote, left (low) --> +<!ENTITY lhblk "▄" ><!--=lower half block --> +<!ENTITY loz "◊" ><!--/lozenge - lozenge or total mark --> +<!ENTITY lozf "⧫" ><!--/blacklozenge - lozenge, filled --> +<!ENTITY lsquor "‚" ><!--=rising single quote, left (low) --> +<!ENTITY ltri "◃" ><!--/triangleleft B: l triangle, open --> +<!ENTITY ltrif "◂" ><!--/blacktriangleleft R: =l tri, filled --> +<!ENTITY male "♂" ><!--=male symbol --> +<!ENTITY malt "✠" ><!--/maltese =maltese cross --> +<!ENTITY marker "▮" ><!--=histogram marker --> +<!ENTITY mdash "—" ><!--=em dash --> +<!ENTITY mldr "…" ><!--em leader --> +<!ENTITY natur "♮" ><!--/natural - music natural --> +<!ENTITY ndash "–" ><!--=en dash --> +<!ENTITY nldr "‥" ><!--=double baseline dot (en leader) --> +<!ENTITY numsp " " ><!--=digit space (width of a number) --> +<!ENTITY phone "☎" ><!--=telephone symbol --> +<!ENTITY puncsp " " ><!--=punctuation space (width of comma) --> +<!ENTITY rdquor "”" ><!--rising dbl quote, right (high) --> +<!ENTITY rect "▭" ><!--=rectangle, open --> +<!ENTITY rsquor "’" ><!--rising single quote, right (high) --> +<!ENTITY rtri "▹" ><!--/triangleright B: r triangle, open --> +<!ENTITY rtrif "▸" ><!--/blacktriangleright R: =r tri, filled --> +<!ENTITY rx "℞" ><!--pharmaceutical prescription (Rx) --> +<!ENTITY sext "✶" ><!--sextile (6-pointed star) --> +<!ENTITY sharp "♯" ><!--/sharp =musical sharp --> +<!ENTITY spades "♠" ><!--/spadesuit =spades suit symbol --> +<!ENTITY squ "□" ><!--=square, open --> +<!ENTITY squf "▪" ><!--/blacksquare =sq bullet, filled --> +<!ENTITY star "⋆" ><!--=star, open --> +<!ENTITY starf "★" ><!--/bigstar - star, filled --> +<!ENTITY target "⌖" ><!--register mark or target --> +<!ENTITY telrec "⌕" ><!--=telephone recorder symbol --> +<!ENTITY thinsp " " ><!--=thin space (1/6-em) --> +<!ENTITY uhblk "▀" ><!--=upper half block --> +<!ENTITY ulcrop "⌏" ><!--upward left crop mark --> +<!ENTITY urcrop "⌎" ><!--upward right crop mark --> +<!ENTITY utri "▵" ><!--/triangle =up triangle, open --> +<!ENTITY utrif "▴" ><!--/blacktriangle =up tri, filled --> +<!ENTITY vellip "⋮" ><!--vertical ellipsis --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/isotech.ent b/docs/docbook/xslt/db2latex/mathml/ent/isotech.ent new file mode 100644 index 0000000000..dc1fc01354 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/isotech.ent @@ -0,0 +1,183 @@ + +<!-- + File isotech.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + + Entity names in this file are derived from files carrying the + following notice: + + (C) International Organization for Standardization 1991 + Permission to copy in any form is granted for use with + conforming SGML systems and applications as defined in + ISO 8879, provided this notice is included in all copies. + +--> + +<!ENTITY acd "∿" ><!--ac current --> +<!ENTITY aleph "ℵ" ><!--/aleph aleph, Hebrew --> +<!ENTITY and "∧" ><!--/wedge /land B: logical and --> +<!ENTITY And "⩓" ><!--dbl logical and --> +<!ENTITY andand "⩕" ><!--two logical and --> +<!ENTITY andd "⩜" ><!--and, horizontal dash --> +<!ENTITY andslope "⩘" ><!--sloping large and --> +<!ENTITY andv "⩚" ><!--and with middle stem --> +<!ENTITY angrt "∟" ><!--right (90 degree) angle --> +<!ENTITY angsph "∢" ><!--/sphericalangle angle-spherical --> +<!ENTITY angst "Å" ><!--Angstrom capital A, ring --> +<!ENTITY ap "≈" ><!--/approx R: approximate --> +<!ENTITY apacir "⩯" ><!--approximate, circumflex accent --> +<!ENTITY awconint "∳" ><!--contour integral, anti-clockwise --> +<!ENTITY awint "⨑" ><!--anti clock-wise integration --> +<!ENTITY becaus "∵" ><!--/because R: because --> +<!ENTITY bernou "ℬ" ><!--Bernoulli function (script capital B) --> +<!ENTITY bne "=⃥" ><!--reverse not equal --> +<!ENTITY bnequiv "≡⃥" ><!--reverse not equivalent --> +<!ENTITY bnot "⌐" ><!--reverse not --> +<!ENTITY bNot "⫭" ><!--reverse not with two horizontal strokes --> +<!ENTITY bottom "⊥" ><!--/bot bottom --> +<!ENTITY cap "∩" ><!--/cap B: intersection --> +<!ENTITY Cconint "∰" ><!--triple contour integral operator --> +<!ENTITY cirfnint "⨐" ><!--circulation function --> +<!ENTITY compfn "∘" ><!--/circ B: composite function (small circle) --> +<!ENTITY cong "≅" ><!--/cong R: congruent with --> +<!ENTITY conint "∮" ><!--/oint L: contour integral operator --> +<!ENTITY Conint "∯" ><!--double contour integral operator --> +<!ENTITY ctdot "⋯" ><!--/cdots, three dots, centered --> +<!ENTITY cup "∪" ><!--/cup B: union or logical sum --> +<!ENTITY cwconint "∲" ><!--contour integral, clockwise --> +<!ENTITY cwint "∱" ><!--clockwise integral --> +<!ENTITY cylcty "⌭" ><!--cylindricity --> +<!ENTITY disin "⋲" ><!--set membership, long horizontal stroke --> +<!ENTITY Dot "¨" ><!--dieresis or umlaut mark --> +<!ENTITY DotDot "⃜" ><!--four dots above --> +<!ENTITY dsol "⁒" ><!--solidus, bar above --> +<!ENTITY dtdot "⋱" ><!--/ddots, three dots, descending --> +<!ENTITY dwangle "⦦" ><!--large downward pointing angle --> +<!ENTITY epar "⋕" ><!--parallel, equal; equal or parallel --> +<!ENTITY eparsl "⧣" ><!--parallel, slanted, equal; homothetically congruent to --> +<!ENTITY equiv "≡" ><!--/equiv R: identical with --> +<!ENTITY eqvparsl "⧥" ><!--equivalent, equal; congruent and parallel --> +<!ENTITY exist "∃" ><!--/exists at least one exists --> +<!ENTITY fnof "ƒ" ><!--function of (italic small f) --> +<!ENTITY forall "∀" ><!--/forall for all --> +<!ENTITY fpartint "⨍" ><!--finite part integral --> +<!ENTITY ge "≥" ><!--/geq /ge R: greater-than-or-equal --> +<!ENTITY hamilt "ℋ" ><!--Hamiltonian (script capital H) --> +<!ENTITY iff "⇔" ><!--/iff if and only if --> +<!ENTITY iinfin "⧜" ><!--infinity sign, incomplete --> +<!ENTITY imped "𝕃" ><!--impedance --> +<!ENTITY infin "∞" ><!--/infty infinity --> +<!ENTITY int "∫" ><!--/int L: integral operator --> +<!ENTITY Int "∬" ><!--double integral operator --> +<!ENTITY intlarhk "⨗" ><!--integral, left arrow with hook --> +<!ENTITY isin "∈" ><!--/in R: set membership --> +<!ENTITY isindot "⋵" ><!--set membership, dot above --> +<!ENTITY isinE "⋹" ><!--set membership, two horizontal strokes --> +<!ENTITY isins "⋴" ><!--set membership, vertical bar on horizontal stroke --> +<!ENTITY isinsv "⋳" ><!--large set membership, vertical bar on horizontal stroke --> +<!ENTITY isinv "∈" ><!--set membership, variant --> +<!ENTITY lagran "ℒ" ><!--Lagrangian (script capital L) --> +<!ENTITY lang "〈" ><!--/langle O: left angle bracket --> +<!ENTITY Lang "《" ><!--left angle bracket, double --> +<!ENTITY lArr "⇐" ><!--/Leftarrow A: is implied by --> +<!ENTITY lbbrk "〔" ><!--left broken bracket --> +<!ENTITY le "≤" ><!--/leq /le R: less-than-or-equal --> +<!ENTITY loang "〘" ><!--left open angular bracket --> +<!ENTITY lobrk "〚" ><!--left open bracket --> +<!ENTITY lopar "⦅" ><!--left open parenthesis --> +<!ENTITY lowast "∗" ><!--low asterisk --> +<!ENTITY minus "−" ><!--B: minus sign --> +<!ENTITY mnplus "∓" ><!--/mp B: minus-or-plus sign --> +<!ENTITY nabla "∇" ><!--/nabla del, Hamilton operator --> +<!ENTITY ne "≠" ><!--/ne /neq R: not equal --> +<!ENTITY nedot "≠⁣" ><!--not equal, dot --> +<!ENTITY nhpar "⫲" ><!--not, horizontal, parallel --> +<!ENTITY ni "∋" ><!--/ni /owns R: contains --> +<!ENTITY nis "⋼" ><!--contains, vertical bar on horizontal stroke --> +<!ENTITY nisd "⋺" ><!--contains, long horizontal stroke --> +<!ENTITY niv "∋" ><!--contains, variant --> +<!ENTITY Not "⫬" ><!--not with two horizontal strokes --> +<!ENTITY notin "∉" ><!--/notin N: negated set membership --> +<!ENTITY notindot "⋶⁣" ><!--negated set membership, dot above --> +<!ENTITY notinva "∉̸" ><!--negated set membership, variant --> +<!ENTITY notinvb "⋷" ><!--negated set membership, variant --> +<!ENTITY notinvc "⋶" ><!--negated set membership, variant --> +<!ENTITY notni "∌" ><!--negated contains --> +<!ENTITY notniva "∌" ><!--negated contains, variant --> +<!ENTITY notnivb "⋾" ><!--contains, variant --> +<!ENTITY notnivc "⋽" ><!--contains, variant --> +<!ENTITY nparsl "∥⁣⃥" ><!--not parallel, slanted --> +<!ENTITY npart "∂̸" ><!--not partial differential --> +<!ENTITY npolint "⨔" ><!--line integration, not including the pole --> +<!ENTITY nvinfin "⧞" ><!--not, vert, infinity --> +<!ENTITY olcross "⦻" ><!--circle, cross --> +<!ENTITY or "∨" ><!--/vee /lor B: logical or --> +<!ENTITY Or "⩔" ><!--dbl logical or --> +<!ENTITY ord "⩝" ><!--or, horizontal dash --> +<!ENTITY order "ℴ" ><!--order of (script small o) --> +<!ENTITY oror "⩖" ><!--two logical or --> +<!ENTITY orslope "⩗" ><!--sloping large or --> +<!ENTITY orv "⩛" ><!--or with middle stem --> +<!ENTITY par "∥" ><!--/parallel R: parallel --> +<!ENTITY parsl "∥⁣" ><!--parallel, slanted --> +<!ENTITY part "∂" ><!--/partial partial differential --> +<!ENTITY permil "‰" ><!--per thousand --> +<!ENTITY perp "⊥" ><!--/perp R: perpendicular --> +<!ENTITY pertenk "‱" ><!--per 10 thousand --> +<!ENTITY phmmat "ℳ" ><!--physics M-matrix (script capital M) --> +<!ENTITY pointint "⨕" ><!--integral around a point operator --> +<!ENTITY prime "′" ><!--/prime prime or minute --> +<!ENTITY Prime "″" ><!--double prime or second --> +<!ENTITY profalar "⌮" ><!--all-around profile --> +<!ENTITY profline "⌒" ><!--profile of a line --> +<!ENTITY profsurf "⌓" ><!--profile of a surface --> +<!ENTITY prop "∝" ><!--/propto R: is proportional to --> +<!ENTITY qint "⨌" ><!--/iiiint quadruple integral operator --> +<!ENTITY qprime "⁗" ><!--quadruple prime --> +<!ENTITY quatint "⨖" ><!--quaternion integral operator --> +<!ENTITY radic "√" ><!--/surd radical --> +<!ENTITY rang "〉" ><!--/rangle C: right angle bracket --> +<!ENTITY Rang "》" ><!--right angle bracket, double --> +<!ENTITY rArr "⇒" ><!--/Rightarrow A: implies --> +<!ENTITY rbbrk "〕" ><!--right broken bracket --> +<!ENTITY roang "〙" ><!--right open angular bracket --> +<!ENTITY robrk "〛" ><!--right open bracket --> +<!ENTITY ropar "⦆" ><!--right open parenthesis --> +<!ENTITY rppolint "⨒" ><!--line integration, rectangular path around pole --> +<!ENTITY scpolint "⨓" ><!--line integration, semi-circular path around pole --> +<!ENTITY sim "∼" ><!--/sim R: similar --> +<!ENTITY simdot "⩪" ><!--similar, dot --> +<!ENTITY sime "≃" ><!--/simeq R: similar, equals --> +<!ENTITY smeparsl "⧤" ><!--similar, parallel, slanted, equal --> +<!ENTITY square "□" ><!--/square, square --> +<!ENTITY squarf "▪" ><!--/blacksquare, square, filled --> +<!ENTITY sub "⊂" ><!--/subset R: subset or is implied by --> +<!ENTITY sube "⊆" ><!--/subseteq R: subset, equals --> +<!ENTITY sup "⊃" ><!--/supset R: superset or implies --> +<!ENTITY supe "⊇" ><!--/supseteq R: superset, equals --> +<!ENTITY tdot "⃛" ><!--three dots above --> +<!ENTITY there4 "∴" ><!--/therefore R: therefore --> +<!ENTITY tint "∭" ><!--/iiint triple integral operator --> +<!ENTITY top "⊤" ><!--/top top --> +<!ENTITY topbot "⌶" ><!--top and bottom --> +<!ENTITY topcir "⫱" ><!--top, circle below --> +<!ENTITY tprime "‴" ><!--triple prime --> +<!ENTITY utdot "⋰" ><!--three dots, ascending --> +<!ENTITY uwangle "⦧" ><!--large upward pointing angle --> +<!ENTITY vangrt "⊾" ><!--right angle, variant --> +<!ENTITY veeeq "≚" ><!--logical or, equals --> +<!ENTITY Verbar "‖" ><!--/Vert dbl vertical bar --> +<!ENTITY wedgeq "≙" ><!--/wedgeq R: corresponds to (wedge, equals) --> +<!ENTITY xnis "⋻" ><!--large contains, vertical bar on horizontal stroke --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/mmlalias.ent b/docs/docbook/xslt/db2latex/mathml/ent/mmlalias.ent new file mode 100644 index 0000000000..f5901b3846 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/mmlalias.ent @@ -0,0 +1,529 @@ + +<!-- + File mmlalias.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + +--> + +<!ENTITY angle "∠" ><!--alias ISOAMSO ang --> +<!ENTITY approx "≈" ><!--alias ISOTECH ap --> +<!ENTITY approxeq "≊" ><!--alias ISOAMSR ape --> +<!ENTITY backcong "≌" ><!--alias ISOAMSR bcong --> +<!ENTITY backepsilon "ℼ" ><!--alias ISOAMSR bepsi --> +<!ENTITY backprime "‵" ><!--alias ISOAMSO bprime --> +<!ENTITY backsim "∽" ><!--alias ISOAMSR bsim --> +<!ENTITY backsimeq "⋍" ><!--alias ISOAMSR bsime --> +<!ENTITY Backslash "∖" ><!--alias ISOAMSB setmn --> +<!ENTITY barwedge "⊼" ><!--alias ISOAMSB barwed --> +<!ENTITY because "∵" ><!--alias ISOTECH becaus --> +<!ENTITY Because "∵" ><!--alias ISOTECH becaus --> +<!ENTITY Bernoullis "ℬ" ><!--alias ISOTECH bernou --> +<!ENTITY between "≬" ><!--alias ISOAMSR twixt --> +<!ENTITY bigcap "⋂" ><!--alias ISOAMSB xcap --> +<!ENTITY bigcirc "◯" ><!--alias ISOAMSB xcirc --> +<!ENTITY bigcup "⋃" ><!--alias ISOAMSB xcup --> +<!ENTITY bigodot "⊙" ><!--alias ISOAMSB xodot --> +<!ENTITY bigoplus "⊕" ><!--alias ISOAMSB xoplus --> +<!ENTITY bigotimes "⊗" ><!--alias ISOAMSB xotime --> +<!ENTITY bigsqcup "⊔" ><!--alias ISOAMSB xsqcup --> +<!ENTITY bigstar "★" ><!--ISOPUB starf --> +<!ENTITY bigtriangledown "▽" ><!--alias ISOAMSB xdtri --> +<!ENTITY bigtriangleup "△" ><!--alias ISOAMSB xutri --> +<!ENTITY biguplus "⊎" ><!--alias ISOAMSB xuplus --> +<!ENTITY bigvee "⋁" ><!--alias ISOAMSB xvee --> +<!ENTITY bigwedge "⋀" ><!--alias ISOAMSB xwedge --> +<!ENTITY bkarow "⤍" ><!--alias ISOAMSA rbarr --> +<!ENTITY blacklozenge "⧫" ><!--alias ISOPUB lozf --> +<!ENTITY blacksquare "▪" ><!--ISOTECH squarf --> +<!ENTITY blacktriangle "▴" ><!--alias ISOPUB utrif --> +<!ENTITY blacktriangledown "▾" ><!--alias ISOPUB dtrif --> +<!ENTITY blacktriangleleft "◂" ><!--alias ISOPUB ltrif --> +<!ENTITY blacktriangleright "▸" ><!--alias ISOPUB rtrif --> +<!ENTITY bot "⊥" ><!--alias ISOTECH bottom --> +<!ENTITY boxminus "⊟" ><!--alias ISOAMSB minusb --> +<!ENTITY boxplus "⊞" ><!--alias ISOAMSB plusb --> +<!ENTITY boxtimes "⊠" ><!--alias ISOAMSB timesb --> +<!ENTITY Breve "˘" ><!--alias ISODIA breve --> +<!ENTITY bullet "•" ><!--alias ISOPUB bull --> +<!ENTITY bumpeq "≏" ><!--alias ISOAMSR bumpe --> +<!ENTITY Bumpeq "≎" ><!--alias ISOAMSR bump --> +<!ENTITY Cedilla "¸" ><!--alias ISODIA cedil --> +<!ENTITY centerdot "·" ><!--alias ISONUM middot --> +<!ENTITY CenterDot "·" ><!--alias ISONUM middot --> +<!ENTITY checkmark "✓" ><!--alias ISOPUB check --> +<!ENTITY circeq "≗" ><!--alias ISOAMSR cire --> +<!ENTITY circlearrowleft "↺" ><!--alias ISOAMSA olarr --> +<!ENTITY circlearrowright "↻" ><!--alias ISOAMSA orarr --> +<!ENTITY circledast "⊛" ><!--alias ISOAMSB oast --> +<!ENTITY circledcirc "⊚" ><!--alias ISOAMSB ocir --> +<!ENTITY circleddash "⊝" ><!--alias ISOAMSB odash --> +<!ENTITY CircleDot "⊙" ><!--alias ISOAMSB odot --> +<!ENTITY circledR "®" ><!--alias ISONUM reg --> +<!ENTITY circledS "Ⓢ" ><!--alias ISOAMSO oS --> +<!ENTITY CircleMinus "⊖" ><!--alias ISOAMSB ominus --> +<!ENTITY CirclePlus "⊕" ><!--alias ISOAMSB oplus --> +<!ENTITY CircleTimes "⊗" ><!--alias ISOAMSB otimes --> +<!ENTITY ClockwiseContourIntegral "∲" ><!--alias ISOTECH cwconint --> +<!ENTITY CloseCurlyDoubleQuote "”" ><!--alias ISONUM rdquo --> +<!ENTITY CloseCurlyQuote "’" ><!--alias ISONUM rsquo --> +<!ENTITY clubsuit "♣" ><!--ISOPUB clubs --> +<!ENTITY coloneq "≔" ><!--alias ISOAMSR colone --> +<!ENTITY complement "∁" ><!--alias ISOAMSO comp --> +<!ENTITY Congruent "≡" ><!--alias ISOTECH equiv --> +<!ENTITY ContourIntegral "∮" ><!--alias ISOTECH conint --> +<!ENTITY Coproduct "∐" ><!--alias ISOAMSB coprod --> +<!ENTITY CounterClockwiseContourIntegral "∳" ><!--alias ISOTECH awconint --> +<!ENTITY CupCap "≍" ><!--alias ISOAMSR asymp --> +<!ENTITY curlyeqprec "⋞" ><!--alias ISOAMSR cuepr --> +<!ENTITY curlyeqsucc "⋟" ><!--alias ISOAMSR cuesc --> +<!ENTITY curlyvee "⋎" ><!--alias ISOAMSB cuvee --> +<!ENTITY curlywedge "⋏" ><!--alias ISOAMSB cuwed --> +<!ENTITY curvearrowleft "↶" ><!--alias ISOAMSA cularr --> +<!ENTITY curvearrowright "↷" ><!--alias ISOAMSA curarr --> +<!ENTITY dbkarow "⤏" ><!--alias ISOAMSA rBarr --> +<!ENTITY ddagger "‡" ><!--alias ISOPUB Dagger --> +<!ENTITY ddotseq "⩷" ><!--alias ISOAMSR eDDot --> +<!ENTITY Del "∇" ><!--alias ISOTECH nabla --> +<!ENTITY DiacriticalAcute "´" ><!--alias ISODIA acute --> +<!ENTITY DiacriticalDot "˙" ><!--alias ISODIA dot --> +<!ENTITY DiacriticalDoubleAcute "˝" ><!--alias ISODIA dblac --> +<!ENTITY DiacriticalGrave "`" ><!--alias ISODIA grave --> +<!ENTITY DiacriticalTilde "˜" ><!--alias ISODIA tilde --> +<!ENTITY diamond "⋄" ><!--alias ISOAMSB diam --> +<!ENTITY Diamond "⋄" ><!--alias ISOAMSB diam --> +<!ENTITY diamondsuit "♦" ><!--ISOPUB diams --> +<!ENTITY digamma "Ϝ" ><!--alias ISOGRK3 gammad --> +<!ENTITY div "÷" ><!--alias ISONUM divide --> +<!ENTITY divideontimes "⋇" ><!--alias ISOAMSB divonx --> +<!ENTITY doteq "≐" ><!--alias ISOAMSR esdot --> +<!ENTITY doteqdot "≑" ><!--alias ISOAMSR eDot --> +<!ENTITY DotEqual "≐" ><!--alias ISOAMSR esdot --> +<!ENTITY dotminus "∸" ><!--alias ISOAMSB minusd --> +<!ENTITY dotplus "∔" ><!--alias ISOAMSB plusdo --> +<!ENTITY dotsquare "⊡" ><!--alias ISOAMSB sdotb --> +<!ENTITY doublebarwedge "⌆" ><!--alias ISOAMSB Barwed --> +<!ENTITY DoubleContourIntegral "∯" ><!--alias ISOTECH Conint --> +<!ENTITY DoubleDot "¨" ><!--alias ISODIA die --> +<!ENTITY DoubleDownArrow "⇓" ><!--alias ISOAMSA dArr --> +<!ENTITY DoubleLeftArrow "⇐" ><!--alias ISOTECH lArr --> +<!ENTITY DoubleLeftRightArrow "⇔" ><!--alias ISOAMSA hArr --> +<!ENTITY DoubleLeftTee "⫤" ><!--alias for ⫤ --> +<!ENTITY DoubleLongLeftArrow "⇐" ><!--alias ISOAMSA xlArr --> +<!ENTITY DoubleLongLeftRightArrow "⇔" ><!--alias ISOAMSA xhArr --> +<!ENTITY DoubleLongRightArrow "⇒" ><!--alias ISOAMSA xrArr --> +<!ENTITY DoubleRightArrow "⇒" ><!--alias ISOTECH rArr --> +<!ENTITY DoubleRightTee "⊨" ><!--alias ISOAMSR vDash --> +<!ENTITY DoubleUpArrow "⇑" ><!--alias ISOAMSA uArr --> +<!ENTITY DoubleUpDownArrow "⇕" ><!--alias ISOAMSA vArr --> +<!ENTITY DoubleVerticalBar "∥" ><!--alias ISOTECH par --> +<!ENTITY downarrow "↓" ><!--alias ISONUM darr --> +<!ENTITY Downarrow "⇓" ><!--alias ISOAMSA dArr --> +<!ENTITY DownArrow "↓" ><!--alias ISONUM darr --> +<!ENTITY DownArrowUpArrow "⇵" ><!--alias ISOAMSA duarr --> +<!ENTITY downdownarrows "⇊" ><!--alias ISOAMSA ddarr --> +<!ENTITY downharpoonleft "⇃" ><!--alias ISOAMSA dharl --> +<!ENTITY downharpoonright "⇂" ><!--alias ISOAMSA dharr --> +<!ENTITY DownLeftVector "↽" ><!--alias ISOAMSA lhard --> +<!ENTITY DownRightVector "⇁" ><!--alias ISOAMSA rhard --> +<!ENTITY DownTee "⊤" ><!--alias ISOTECH top --> +<!ENTITY drbkarow "⤐" ><!--alias ISOAMSA RBarr --> +<!ENTITY Element "∈" ><!--alias ISOTECH isinv --> +<!ENTITY emptyset "∅⁣" ><!--alias ISOAMSO empty --> +<!ENTITY eqcirc "≖" ><!--alias ISOAMSR ecir --> +<!ENTITY eqcolon "≕" ><!--alias ISOAMSR ecolon --> +<!ENTITY eqsim "≂" ><!--alias ISOAMSR esim --> +<!ENTITY eqslantgtr "⋝" ><!--alias ISOAMSR egs --> +<!ENTITY eqslantless "⋜" ><!--alias ISOAMSR els --> +<!ENTITY EqualTilde "≂" ><!--alias ISOAMSR esim --> +<!ENTITY Equilibrium "⇌" ><!--alias ISOAMSA rlhar --> +<!ENTITY Exists "∃" ><!--alias ISOTECH exist --> +<!ENTITY fallingdotseq "≒" ><!--alias ISOAMSR efDot --> +<!ENTITY ForAll "∀" ><!--alias ISOTECH forall --> +<!ENTITY geq "≥" ><!--alias ISOTECH ge --> +<!ENTITY geqq "≧" ><!--alias ISOAMSR gE --> +<!ENTITY geqslant "⩾" ><!--alias ISOAMSR ges --> +<!ENTITY gg "≫" ><!--alias ISOAMSR Gt --> +<!ENTITY ggg "⋙" ><!--alias ISOAMSR Gg --> +<!ENTITY gnapprox "⪊" ><!--alias ISOAMSN gnap --> +<!ENTITY gneq "≩" ><!--alias ISOAMSN gne --> +<!ENTITY gneqq "≩" ><!--alias ISOAMSN gnE --> +<!ENTITY GreaterEqual "≥" ><!--alias ISOTECH ge --> +<!ENTITY GreaterEqualLess "⋛" ><!--alias ISOAMSR gel --> +<!ENTITY GreaterFullEqual "≧" ><!--alias ISOAMSR gE --> +<!ENTITY GreaterLess "≷" ><!--alias ISOAMSR gl --> +<!ENTITY GreaterSlantEqual "⩾" ><!--alias ISOAMSR ges --> +<!ENTITY GreaterTilde "≳" ><!--alias ISOAMSR gsim --> +<!ENTITY gtrapprox "≳" ><!--alias ISOAMSR gap --> +<!ENTITY gtrdot "⋗" ><!--alias ISOAMSR gtdot --> +<!ENTITY gtreqless "⋛" ><!--alias ISOAMSR gel --> +<!ENTITY gtreqqless "⋛" ><!--alias ISOAMSR gEl --> +<!ENTITY gtrless "≷" ><!--alias ISOAMSR gl --> +<!ENTITY gtrsim "≳" ><!--alias ISOAMSR gsim --> +<!ENTITY gvertneqq "≩̸" ><!--alias ISOAMSN gvnE --> +<!ENTITY Hacek "ˇ" ><!--alias ISODIA caron --> +<!ENTITY Hat "̂" ><!--circumflex accent (circ in ISODIA) --> +<!ENTITY hbar "ℏ" ><!--alias ISOAMSO plank --> +<!ENTITY heartsuit "♡" ><!--ISOPUB hearts --> +<!ENTITY hksearow "⤥" ><!--alias ISOAMSA searhk --> +<!ENTITY hkswarow "⤦" ><!--alias ISOAMSA swarhk --> +<!ENTITY hookleftarrow "↩" ><!--alias ISOAMSA larrhk --> +<!ENTITY hookrightarrow "↪" ><!--alias ISOAMSA rarrhk --> +<!ENTITY hslash "ℏ" ><!--alias ISOAMSO plankv --> +<!ENTITY HumpDownHump "≎" ><!--alias ISOAMSR bump --> +<!ENTITY HumpEqual "≏" ><!--alias ISOAMSR bumpe --> +<!ENTITY iiiint "⨌" ><!--alias ISOTECH qint --> +<!ENTITY iiint "∭" ><!--alias ISOTECH tint --> +<!ENTITY Im "ℑ" ><!--alias ISOAMSO image --> +<!ENTITY imagpart "ℑ" ><!--alias ISOAMSO image --> +<!ENTITY Implies "⇒" ><!--alias ISOTECH rArr --> +<!ENTITY in "∈" ><!--ISOTECH isin --> +<!ENTITY Integral "∫" ><!--alias ISOTECH int --> +<!ENTITY intercal "⊺" ><!--alias ISOAMSB intcal --> +<!ENTITY Intersection "⋂" ><!--alias ISOAMSB xcap --> +<!ENTITY intprod "⨼" ><!--alias ISOAMSB iprod --> +<!ENTITY langle "〈" ><!--alias ISOTECH lang --> +<!ENTITY lbrace "{" ><!--alias ISONUM lcub --> +<!ENTITY lbrack "[" ><!--alias ISONUM lsqb --> +<!ENTITY LeftAngleBracket "〈" ><!--alias ISOTECH lang --> +<!ENTITY leftarrow "←" ><!--alias ISONUM larr --> +<!ENTITY Leftarrow "⇐" ><!--alias ISOTECH lArr --> +<!ENTITY LeftArrow "←" ><!--alias ISONUM larr --> +<!ENTITY LeftArrowRightArrow "⇆" ><!--alias ISOAMSA lrarr --> +<!ENTITY leftarrowtail "↢" ><!--alias ISOAMSA larrtl --> +<!ENTITY LeftCeiling "⌈" ><!--alias ISOAMSC lceil --> +<!ENTITY LeftDoubleBracket "〚" ><!--left double bracket delimiter --> +<!ENTITY LeftDownVector "⇃" ><!--alias ISOAMSA dharl --> +<!ENTITY LeftFloor "⌊" ><!--alias ISOAMSC lfloor --> +<!ENTITY leftharpoondown "↽" ><!--alias ISOAMSA lhard --> +<!ENTITY leftharpoonup "↼" ><!--alias ISOAMSA lharu --> +<!ENTITY leftleftarrows "⇇" ><!--alias ISOAMSA llarr --> +<!ENTITY leftrightarrow "↔" ><!--alias ISOAMSA harr --> +<!ENTITY Leftrightarrow "⇔" ><!--alias ISOAMSA hArr --> +<!ENTITY LeftRightArrow "↔" ><!--alias ISOAMSA harr --> +<!ENTITY leftrightarrows "⇆" ><!--alias ISOAMSA lrarr --> +<!ENTITY leftrightharpoons "⇋" ><!--alias ISOAMSA lrhar --> +<!ENTITY leftrightsquigarrow "↭" ><!--alias ISOAMSA harrw --> +<!ENTITY LeftTee "⊣" ><!--alias ISOAMSR dashv --> +<!ENTITY leftthreetimes "⋋" ><!--alias ISOAMSB lthree --> +<!ENTITY LeftTriangle "⊲" ><!--alias ISOAMSR vltri --> +<!ENTITY LeftTriangleEqual "⊴" ><!--alias ISOAMSR ltrie --> +<!ENTITY LeftUpVector "↿" ><!--alias ISOAMSA uharl --> +<!ENTITY LeftVector "↼" ><!--alias ISOAMSA lharu --> +<!ENTITY leq "≤" ><!--alias ISOTECH le --> +<!ENTITY leqq "≦" ><!--alias ISOAMSR lE --> +<!ENTITY leqslant "⩽" ><!--alias ISOAMSR les --> +<!ENTITY lessapprox "≲" ><!--alias ISOAMSR lap --> +<!ENTITY lessdot "⋖" ><!--alias ISOAMSR ltdot --> +<!ENTITY lesseqgtr "⋚" ><!--alias ISOAMSR leg --> +<!ENTITY lesseqqgtr "⋚" ><!--alias ISOAMSR lEg --> +<!ENTITY LessEqualGreater "⋚" ><!--alias ISOAMSR leg --> +<!ENTITY LessFullEqual "≦" ><!--alias ISOAMSR lE --> +<!ENTITY LessGreater "≶" ><!--alias ISOAMSR lg --> +<!ENTITY lessgtr "≶" ><!--alias ISOAMSR lg --> +<!ENTITY lesssim "≲" ><!--alias ISOAMSR lsim --> +<!ENTITY LessSlantEqual "⩽" ><!--alias ISOAMSR les --> +<!ENTITY LessTilde "≲" ><!--alias ISOAMSR lsim --> +<!ENTITY ll "≪" ><!--alias ISOAMSR Lt --> +<!ENTITY llcorner "⌞" ><!--alias ISOAMSC dlcorn --> +<!ENTITY Lleftarrow "⇚" ><!--alias ISOAMSA lAarr --> +<!ENTITY lmoustache "⦘" ><!--alias ISOAMSC lmoust --> +<!ENTITY lnapprox "⪉" ><!--alias ISOAMSN lnap --> +<!ENTITY lneq "≨" ><!--alias ISOAMSN lne --> +<!ENTITY lneqq "≨" ><!--alias ISOAMSN lnE --> +<!ENTITY longleftarrow "←" ><!--alias ISOAMSA xlarr --> +<!ENTITY Longleftarrow "⇐" ><!--alias ISOAMSA xlArr --> +<!ENTITY LongLeftArrow "←" ><!--alias ISOAMSA xlarr --> +<!ENTITY longleftrightarrow "↔" ><!--alias ISOAMSA xharr --> +<!ENTITY Longleftrightarrow "⇔" ><!--alias ISOAMSA xhArr --> +<!ENTITY LongLeftRightArrow "↔" ><!--alias ISOAMSA xharr --> +<!ENTITY longmapsto "↦" ><!--alias ISOAMSA xmap --> +<!ENTITY longrightarrow "→" ><!--alias ISOAMSA xrarr --> +<!ENTITY Longrightarrow "⇒" ><!--alias ISOAMSA xrArr --> +<!ENTITY LongRightArrow "→" ><!--alias ISOAMSA xrarr --> +<!ENTITY looparrowleft "↫" ><!--alias ISOAMSA larrlp --> +<!ENTITY looparrowright "↬" ><!--alias ISOAMSA rarrlp --> +<!ENTITY LowerLeftArrow "↙" ><!--alias ISOAMSA swarr --> +<!ENTITY LowerRightArrow "↘" ><!--alias ISOAMSA searr --> +<!ENTITY lozenge "◊" ><!--alias ISOPUB loz --> +<!ENTITY lrcorner "⌟" ><!--alias ISOAMSC drcorn --> +<!ENTITY Lsh "↰" ><!--alias ISOAMSA lsh --> +<!ENTITY lvertneqq "≨̸" ><!--alias ISOAMSN lvnE --> +<!ENTITY maltese "✠" ><!--alias ISOPUB malt --> +<!ENTITY mapsto "↦" ><!--alias ISOAMSA map --> +<!ENTITY measuredangle "∡" ><!--alias ISOAMSO angmsd --> +<!ENTITY MinusPlus "∓" ><!--alias ISOTECH mnplus --> +<!ENTITY mp "∓" ><!--alias ISOTECH mnplus --> +<!ENTITY multimap "⊸" ><!--alias ISOAMSA mumap --> +<!ENTITY napprox "≉" ><!--alias ISOAMSN nap --> +<!ENTITY natural "♮" ><!--alias ISOPUB natur --> +<!ENTITY nearrow "↗" ><!--alias ISOAMSA nearr --> +<!ENTITY NestedGreaterGreater "≫" ><!--alias ISOAMSR Gt --> +<!ENTITY NestedLessLess "≪" ><!--alias ISOAMSR Lt --> +<!ENTITY nexists "∄" ><!--alias ISOAMSO nexist --> +<!ENTITY ngeq "≱⃥" ><!--alias ISOAMSN nge --> +<!ENTITY ngeqq "≱" ><!--alias ISOAMSN ngE --> +<!ENTITY ngeqslant "≱" ><!--alias ISOAMSN nges --> +<!ENTITY ngtr "≯" ><!--alias ISOAMSN ngt --> +<!ENTITY nleftarrow "↚" ><!--alias ISOAMSA nlarr --> +<!ENTITY nLeftarrow "⇍" ><!--alias ISOAMSA nlArr --> +<!ENTITY nleftrightarrow "↮" ><!--alias ISOAMSA nharr --> +<!ENTITY nLeftrightarrow "⇎" ><!--alias ISOAMSA nhArr --> +<!ENTITY nleq "≰⃥" ><!--alias ISOAMSN nle --> +<!ENTITY nleqq "≰" ><!--alias ISOAMSN nlE --> +<!ENTITY nleqslant "≰" ><!--alias ISOAMSN nles --> +<!ENTITY nless "≮" ><!--alias ISOAMSN nlt --> +<!ENTITY NotCongruent "≢" ><!--alias ISOAMSN nequiv --> +<!ENTITY NotDoubleVerticalBar "∦" ><!--alias ISOAMSN npar --> +<!ENTITY NotElement "∉" ><!--alias ISOTECH notin --> +<!ENTITY NotEqual "≠" ><!--alias ISOTECH ne --> +<!ENTITY NotExists "∄" ><!--alias ISOAMSO nexist --> +<!ENTITY NotGreater "≯" ><!--alias ISOAMSN ngt --> +<!ENTITY NotGreaterEqual "≱⃥" ><!--alias ISOAMSN nge --> +<!ENTITY NotGreaterFullEqual "≰" ><!--alias ISOAMSN nlE --> +<!ENTITY NotGreaterGreater "≫̸⁣" ><!--alias ISOAMSN nGtv --> +<!ENTITY NotGreaterLess "≹" ><!--alias ISOAMSN ntvgl --> +<!ENTITY NotGreaterSlantEqual "≱" ><!--alias ISOAMSN nges --> +<!ENTITY NotGreaterTilde "≵" ><!--alias ISOAMSN ngsim --> +<!ENTITY NotLeftTriangle "⋪" ><!--alias ISOAMSN nltri --> +<!ENTITY NotLeftTriangleEqual "⋬" ><!--alias ISOAMSN nltrie --> +<!ENTITY NotLess "≮" ><!--alias ISOAMSN nlt --> +<!ENTITY NotLessEqual "≰⃥" ><!--alias ISOAMSN nle --> +<!ENTITY NotLessGreater "≸" ><!--alias ISOAMSN ntvlg --> +<!ENTITY NotLessLess "≪̸⁣" ><!--alias ISOAMSN nLtv --> +<!ENTITY NotLessSlantEqual "≰" ><!--alias ISOAMSN nles --> +<!ENTITY NotLessTilde "≴" ><!--alias ISOAMSN nlsim --> +<!ENTITY NotPrecedes "⊀" ><!--alias ISOAMSN npr --> +<!ENTITY NotPrecedesEqual "⪯̸" ><!--alias ISOAMSN npre --> +<!ENTITY NotPrecedesSlantEqual "⋠" ><!--alias ISOAMSN nprcue --> +<!ENTITY NotReverseElement "∌" ><!--alias ISOTECH notniva --> +<!ENTITY NotRightTriangle "⋫" ><!--alias ISOAMSN nrtri --> +<!ENTITY NotRightTriangleEqual "⋭" ><!--alias ISOAMSN nrtrie --> +<!ENTITY NotSquareSubsetEqual "⋢" ><!--alias ISOAMSN nsqsube --> +<!ENTITY NotSquareSupersetEqual "⋣" ><!--alias ISOAMSN nsqsupe --> +<!ENTITY NotSubset "⊄" ><!--alias ISOAMSN vnsub --> +<!ENTITY NotSubsetEqual "⊈" ><!--alias ISOAMSN nsube --> +<!ENTITY NotSucceeds "⊁" ><!--alias ISOAMSN nsc --> +<!ENTITY NotSucceedsEqual "⪰̸" ><!--alias ISOAMSN nsce --> +<!ENTITY NotSucceedsSlantEqual "⋡" ><!--alias ISOAMSN nsccue --> +<!ENTITY NotSuperset "⊅" ><!--alias ISOAMSN vnsup --> +<!ENTITY NotSupersetEqual "⊉" ><!--alias ISOAMSN nsupe --> +<!ENTITY NotTilde "≁" ><!--alias ISOAMSN nsim --> +<!ENTITY NotTildeEqual "≄" ><!--alias ISOAMSN nsime --> +<!ENTITY NotTildeFullEqual "≇" ><!--alias ISOAMSN ncong --> +<!ENTITY NotTildeTilde "≉" ><!--alias ISOAMSN nap --> +<!ENTITY NotVerticalBar "∤" ><!--alias ISOAMSN nmid --> +<!ENTITY nparallel "∦" ><!--alias ISOAMSN npar --> +<!ENTITY nprec "⊀" ><!--alias ISOAMSN npr --> +<!ENTITY npreceq "⪯̸" ><!--alias ISOAMSN npre --> +<!ENTITY nrightarrow "↛" ><!--alias ISOAMSA nrarr --> +<!ENTITY nRightarrow "⇏" ><!--alias ISOAMSA nrArr --> +<!ENTITY nshortmid "∤⁣" ><!--alias ISOAMSN nsmid --> +<!ENTITY nshortparallel "∦⁣" ><!--alias ISOAMSN nspar --> +<!ENTITY nsimeq "≄" ><!--alias ISOAMSN nsime --> +<!ENTITY nsubset "⊄" ><!--alias ISOAMSN vnsub --> +<!ENTITY nsubseteq "⊈" ><!--alias ISOAMSN nsube --> +<!ENTITY nsubseteqq "⊈" ><!--alias ISOAMSN nsubE --> +<!ENTITY nsucc "⊁" ><!--alias ISOAMSN nsc --> +<!ENTITY nsucceq "⪰̸" ><!--alias ISOAMSN nsce --> +<!ENTITY nsupset "⊅" ><!--alias ISOAMSN vnsup --> +<!ENTITY nsupseteq "⊉" ><!--alias ISOAMSN nsupe --> +<!ENTITY nsupseteqq "⊉" ><!--alias ISOAMSN nsupE --> +<!ENTITY ntriangleleft "⋪" ><!--alias ISOAMSN nltri --> +<!ENTITY ntrianglelefteq "⋬" ><!--alias ISOAMSN nltrie --> +<!ENTITY ntriangleright "⋫" ><!--alias ISOAMSN nrtri --> +<!ENTITY ntrianglerighteq "⋭" ><!--alias ISOAMSN nrtrie --> +<!ENTITY nwarrow "↖" ><!--alias ISOAMSA nwarr --> +<!ENTITY oint "∮" ><!--alias ISOTECH conint --> +<!ENTITY OpenCurlyDoubleQuote "“" ><!--alias ISONUM ldquo --> +<!ENTITY OpenCurlyQuote "‘" ><!--alias ISONUM lsquo --> +<!ENTITY orderof "ℴ" ><!--alias ISOTECH order --> +<!ENTITY parallel "∥" ><!--alias ISOTECH par --> +<!ENTITY PartialD "∂" ><!--alias ISOTECH part --> +<!ENTITY pitchfork "⋔" ><!--alias ISOAMSR fork --> +<!ENTITY PlusMinus "±" ><!--alias ISONUM plusmn --> +<!ENTITY pm "±" ><!--alias ISONUM plusmn --> +<!ENTITY prec "≺" ><!--alias ISOAMSR pr --> +<!ENTITY precapprox "≾" ><!--alias ISOAMSR prap --> +<!ENTITY preccurlyeq "≼" ><!--alias ISOAMSR prcue --> +<!ENTITY Precedes "≺" ><!--alias ISOAMSR pr --> +<!ENTITY PrecedesEqual "⪯" ><!--alias ISOAMSR pre --> +<!ENTITY PrecedesSlantEqual "≼" ><!--alias ISOAMSR prcue --> +<!ENTITY PrecedesTilde "≾" ><!--alias ISOAMSR prsim --> +<!ENTITY preceq "⪯" ><!--alias ISOAMSR pre --> +<!ENTITY precnapprox "⋨" ><!--alias ISOAMSN prnap --> +<!ENTITY precneqq "⪵" ><!--alias ISOAMSN prnE --> +<!ENTITY precnsim "⋨" ><!--alias ISOAMSN prnsim --> +<!ENTITY precsim "≾" ><!--alias ISOAMSR prsim --> +<!ENTITY Proportion "∷" ><!--alias ISOAMSR Colon --> +<!ENTITY Proportional "∝" ><!--alias ISOTECH prop --> +<!ENTITY propto "∝" ><!--alias ISOTECH prop --> +<!ENTITY questeq "≟" ><!--alias ISOAMSR equest --> +<!ENTITY rangle "〉" ><!--alias ISOTECH rang --> +<!ENTITY rbrace "}" ><!--alias ISONUM rcub --> +<!ENTITY rbrack "]" ><!--alias ISONUM rsqb --> +<!ENTITY Re "ℜ" ><!--alias ISOAMSO real --> +<!ENTITY realpart "ℜ" ><!--alias ISOAMSO real --> +<!ENTITY ReverseElement "∋" ><!--alias ISOTECH niv --> +<!ENTITY ReverseEquilibrium "⇋" ><!--alias ISOAMSA lrhar --> +<!ENTITY ReverseUpEquilibrium "⥯" ><!--alias ISOAMSA duhar --> +<!ENTITY RightAngleBracket "〉" ><!--alias ISOTECH rang --> +<!ENTITY rightarrow "→" ><!--alias ISONUM rarr --> +<!ENTITY Rightarrow "⇒" ><!--alias ISOTECH rArr --> +<!ENTITY RightArrow "→" ><!--alias ISONUM rarr --> +<!ENTITY RightArrowLeftArrow "⇄" ><!--alias ISOAMSA rlarr --> +<!ENTITY rightarrowtail "↣" ><!--alias ISOAMSA rarrtl --> +<!ENTITY RightCeiling "⌉" ><!--alias ISOAMSC rceil --> +<!ENTITY RightDoubleBracket "〛" ><!--right double bracket delimiter --> +<!ENTITY RightDownVector "⇂" ><!--alias ISOAMSA dharr --> +<!ENTITY RightFloor "⌋" ><!--alias ISOAMSC rfloor --> +<!ENTITY rightharpoondown "⇁" ><!--alias ISOAMSA rhard --> +<!ENTITY rightharpoonup "⇀" ><!--alias ISOAMSA rharu --> +<!ENTITY rightleftarrows "⇄" ><!--alias ISOAMSA rlarr --> +<!ENTITY rightleftharpoons "⇌" ><!--alias ISOAMSA rlhar --> +<!ENTITY rightrightarrows "⇉" ><!--alias ISOAMSA rrarr --> +<!ENTITY rightsquigarrow "⇝" ><!--alias ISOAMSA rarrw --> +<!ENTITY RightTee "⊢" ><!--alias ISOAMSR vdash --> +<!ENTITY RightTeeArrow "↦" ><!--alias ISOAMSA map --> +<!ENTITY rightthreetimes "⋌" ><!--alias ISOAMSB rthree --> +<!ENTITY RightTriangle "⊳" ><!--alias ISOAMSR vrtri --> +<!ENTITY RightTriangleEqual "⊵" ><!--alias ISOAMSR rtrie --> +<!ENTITY RightUpVector "↾" ><!--alias ISOAMSA uharr --> +<!ENTITY RightVector "⇀" ><!--alias ISOAMSA rharu --> +<!ENTITY risingdotseq "≓" ><!--alias ISOAMSR erDot --> +<!ENTITY rmoustache "⦗" ><!--alias ISOAMSC rmoust --> +<!ENTITY Rrightarrow "⇛" ><!--alias ISOAMSA rAarr --> +<!ENTITY Rsh "↱" ><!--alias ISOAMSA rsh --> +<!ENTITY searrow "↘" ><!--alias ISOAMSA searr --> +<!ENTITY setminus "∖" ><!--alias ISOAMSB setmn --> +<!ENTITY ShortLeftArrow "←⁣" ><!--alias ISOAMSA slarr --> +<!ENTITY shortmid "∣⁣" ><!--alias ISOAMSR smid --> +<!ENTITY shortparallel "∥⁣" ><!--alias ISOAMSR spar --> +<!ENTITY ShortRightArrow "→⁣" ><!--alias ISOAMSA srarr --> +<!ENTITY simeq "≃" ><!--alias ISOTECH sime --> +<!ENTITY SmallCircle "∘" ><!--alias ISOTECH compfn --> +<!ENTITY smallsetminus "∖" ><!--alias ISOAMSB ssetmn --> +<!ENTITY spadesuit "♠" ><!--ISOPUB spades --> +<!ENTITY Sqrt "√" ><!--alias ISOTECH radic --> +<!ENTITY sqsubset "⊏" ><!--alias ISOAMSR sqsub --> +<!ENTITY sqsubseteq "⊑" ><!--alias ISOAMSR sqsube --> +<!ENTITY sqsupset "⊐" ><!--alias ISOAMSR sqsup --> +<!ENTITY sqsupseteq "⊒" ><!--alias ISOAMSR sqsupe --> +<!ENTITY Square "□" ><!--alias for square --> +<!ENTITY SquareIntersection "⊓" ><!--alias ISOAMSB sqcap --> +<!ENTITY SquareSubset "⊏" ><!--alias ISOAMSR sqsub --> +<!ENTITY SquareSubsetEqual "⊑" ><!--alias ISOAMSR sqsube --> +<!ENTITY SquareSuperset "⊐" ><!--alias ISOAMSR sqsup --> +<!ENTITY SquareSupersetEqual "⊒" ><!--alias ISOAMSR sqsupe --> +<!ENTITY SquareUnion "⊔" ><!--alias ISOAMSB sqcup --> +<!ENTITY Star "⋆" ><!--alias ISOAMSB sstarf --> +<!ENTITY straightepsilon "ε" ><!--alias ISOGRK3 epsi --> +<!ENTITY straightphi "φ" ><!--alias ISOGRK3 phi --> +<!ENTITY subset "⊂" ><!--alias ISOTECH sub --> +<!ENTITY Subset "⋐" ><!--alias ISOAMSR Sub --> +<!ENTITY subseteq "⊆" ><!--alias ISOTECH sube --> +<!ENTITY subseteqq "⊆" ><!--alias ISOAMSR subE --> +<!ENTITY SubsetEqual "⊆" ><!--alias ISOTECH sube --> +<!ENTITY subsetneq "⊊" ><!--alias ISOAMSN subne --> +<!ENTITY subsetneqq "⊊" ><!--alias ISOAMSN subnE --> +<!ENTITY succ "≻" ><!--alias ISOAMSR sc --> +<!ENTITY succapprox "≿" ><!--alias ISOAMSR scap --> +<!ENTITY succcurlyeq "≽" ><!--alias ISOAMSR sccue --> +<!ENTITY Succeeds "≻" ><!--alias ISOAMSR sc --> +<!ENTITY SucceedsEqual "≽" ><!--alias ISOAMSR sce --> +<!ENTITY SucceedsSlantEqual "≽" ><!--alias ISOAMSR sccue --> +<!ENTITY SucceedsTilde "≿" ><!--alias ISOAMSR scsim --> +<!ENTITY succeq "≽" ><!--alias ISOAMSR sce --> +<!ENTITY succnapprox "⋩" ><!--alias ISOAMSN scnap --> +<!ENTITY succneqq "⪶" ><!--alias ISOAMSN scnE --> +<!ENTITY succnsim "⋩" ><!--alias ISOAMSN scnsim --> +<!ENTITY succsim "≿" ><!--alias ISOAMSR scsim --> +<!ENTITY SuchThat "∋" ><!--ISOTECH ni --> +<!ENTITY Sum "∑" ><!--alias ISOAMSB sum --> +<!ENTITY Superset "⊃" ><!--alias ISOTECH sup --> +<!ENTITY SupersetEqual "⊇" ><!--alias ISOTECH supe --> +<!ENTITY supset "⊃" ><!--alias ISOTECH sup --> +<!ENTITY Supset "⋑" ><!--alias ISOAMSR Sup --> +<!ENTITY supseteq "⊇" ><!--alias ISOTECH supe --> +<!ENTITY supseteqq "⊇" ><!--alias ISOAMSR supE --> +<!ENTITY supsetneq "⊋" ><!--alias ISOAMSN supne --> +<!ENTITY supsetneqq "⊋" ><!--alias ISOAMSN supnE --> +<!ENTITY swarrow "↙" ><!--alias ISOAMSA swarr --> +<!ENTITY therefore "∴" ><!--alias ISOTECH there4 --> +<!ENTITY Therefore "∴" ><!--alias ISOTECH there4 --> +<!ENTITY thickapprox "≈⁣" ><!--ISOAMSR thkap --> +<!ENTITY thicksim "∼" ><!--ISOAMSR thksim --> +<!ENTITY ThinSpace " " ><!--space of width 3/18 em alias ISOPUB thinsp --> +<!ENTITY Tilde "∼" ><!--alias ISOTECH sim --> +<!ENTITY TildeEqual "≃" ><!--alias ISOTECH sime --> +<!ENTITY TildeFullEqual "≅" ><!--alias ISOTECH cong --> +<!ENTITY TildeTilde "≈" ><!--alias ISOTECH ap --> +<!ENTITY toea "⤨" ><!--alias ISOAMSA nesear --> +<!ENTITY tosa "⤩" ><!--alias ISOAMSA seswar --> +<!ENTITY triangle "▵" ><!--alias ISOPUB utri --> +<!ENTITY triangledown "▿" ><!--alias ISOPUB dtri --> +<!ENTITY triangleleft "◃" ><!--alias ISOPUB ltri --> +<!ENTITY trianglelefteq "⊴" ><!--alias ISOAMSR ltrie --> +<!ENTITY triangleq "≜" ><!--alias ISOAMSR trie --> +<!ENTITY triangleright "▹" ><!--alias ISOPUB rtri --> +<!ENTITY trianglerighteq "⊵" ><!--alias ISOAMSR rtrie --> +<!ENTITY TripleDot "⃛" ><!--alias ISOTECH tdot --> +<!ENTITY twoheadleftarrow "↞" ><!--alias ISOAMSA Larr --> +<!ENTITY twoheadrightarrow "↠" ><!--alias ISOAMSA Rarr --> +<!ENTITY ulcorner "⌜" ><!--alias ISOAMSC ulcorn --> +<!ENTITY Union "⋃" ><!--alias ISOAMSB xcup --> +<!ENTITY UnionPlus "⊎" ><!--alias ISOAMSB uplus --> +<!ENTITY uparrow "↑" ><!--alias ISONUM uarr --> +<!ENTITY Uparrow "⇑" ><!--alias ISOAMSA uArr --> +<!ENTITY UpArrow "↑" ><!--alias ISONUM uarr --> +<!ENTITY UpArrowDownArrow "⇅" ><!--alias ISOAMSA udarr --> +<!ENTITY updownarrow "↕" ><!--alias ISOAMSA varr --> +<!ENTITY Updownarrow "⇕" ><!--alias ISOAMSA vArr --> +<!ENTITY UpDownArrow "↕" ><!--alias ISOAMSA varr --> +<!ENTITY UpEquilibrium "⥮" ><!--alias ISOAMSA udhar --> +<!ENTITY upharpoonleft "↿" ><!--alias ISOAMSA uharl --> +<!ENTITY upharpoonright "↾" ><!--alias ISOAMSA uharr --> +<!ENTITY UpperLeftArrow "↖" ><!--alias ISOAMSA nwarr --> +<!ENTITY UpperRightArrow "↗" ><!--alias ISOAMSA nearr --> +<!ENTITY upsilon "υ" ><!--alias ISOGRK3 upsi --> +<!ENTITY Upsilon "ϒ" ><!--alias ISOGRK3 Upsi --> +<!ENTITY UpTee "⊥" ><!--alias ISOTECH perp --> +<!ENTITY upuparrows "⇈" ><!--alias ISOAMSA uuarr --> +<!ENTITY urcorner "⌝" ><!--alias ISOAMSC urcorn --> +<!ENTITY varepsilon "ɛ" ><!--alias ISOGRK3 epsiv --> +<!ENTITY varkappa "ϰ" ><!--alias ISOGRK3 kappav --> +<!ENTITY varnothing "∅" ><!--alias ISOAMSO emptyv --> +<!ENTITY varphi "ϕ" ><!--alias ISOGRK3 phiv --> +<!ENTITY varpi "ϖ" ><!--alias ISOGRK3 piv --> +<!ENTITY varpropto "∝" ><!--alias ISOAMSR vprop --> +<!ENTITY varrho "ϱ" ><!--alias ISOGRK3 rhov --> +<!ENTITY varsigma "ς" ><!--alias ISOGRK3 sigmav --> +<!ENTITY varsubsetneq "⊊⁣" ><!--alias ISOAMSN vsubne --> +<!ENTITY varsubsetneqq "⊊⁣" ><!--alias ISOAMSN vsubnE --> +<!ENTITY varsupsetneq "⊋⁣" ><!--alias ISOAMSN vsupne --> +<!ENTITY varsupsetneqq "⊋⁣" ><!--alias ISOAMSN vsupnE --> +<!ENTITY vartheta "ϑ" ><!--alias ISOGRK3 thetav --> +<!ENTITY vartriangleleft "⊲" ><!--alias ISOAMSR vltri --> +<!ENTITY vartriangleright "⊳" ><!--alias ISOAMSR vrtri --> +<!ENTITY vee "∨" ><!--alias ISOTECH or --> +<!ENTITY Vee "⋁" ><!--alias ISOAMSB xvee --> +<!ENTITY vert "|" ><!--alias ISONUM verbar --> +<!ENTITY Vert "‖" ><!--alias ISOTECH Verbar --> +<!ENTITY VerticalBar "∣" ><!--alias ISOAMSR mid --> +<!ENTITY VerticalTilde "≀" ><!--alias ISOAMSB wreath --> +<!ENTITY VeryThinSpace " " ><!--space of width 1/18 em alias ISOPUB hairsp --> +<!ENTITY wedge "∧" ><!--alias ISOTECH and --> +<!ENTITY Wedge "⋀" ><!--alias ISOAMSB xwedge --> +<!ENTITY wp "℘" ><!--alias ISOAMSO weierp --> +<!ENTITY wr "≀" ><!--alias ISOAMSB wreath --> diff --git a/docs/docbook/xslt/db2latex/mathml/ent/mmlextra.ent b/docs/docbook/xslt/db2latex/mathml/ent/mmlextra.ent new file mode 100644 index 0000000000..e76de448cc --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/ent/mmlextra.ent @@ -0,0 +1,134 @@ + +<!-- + File mmlextra.ent produced by the XSL script mmldtd.xsl + from input data in unicode.xml. + + Please report any errors to + David Carlisle <davidc@nag.co.uk>. + + The numeric character values assigned to each entity + (should) match either official Unicode assignments + or assignments provisionally allocated by the + Unicode Consortium based on the characters in the `STIX' + propsal for mathematics. Note that these assignments + have not been ratified by the corresponding ISO + committee and thus should be considered liable to + change. + +--> + +<!ENTITY af "⁡" ><!--short form of ⁡ --> +<!ENTITY ApplyFunction "⁡" ><!--character showing function application in presentation tagging --> +<!ENTITY Assign "≔" ><!--assignment operator --> +<!ENTITY CapitalDifferentialD "ⅅ" ><!--D for use in differentials, e.g., within integrals --> +<!ENTITY Cayleys "ℭ" ><!--the non-associative ring of octonions or Cayley numbers --> +<!ENTITY complexes "ℂ" ><!--the field of complex numbers --> +<!ENTITY Cross "⨯" ><!--cross or vector product --> +<!ENTITY dd "ⅆ" ><!--short form of ⅆ --> +<!ENTITY DD "ⅅ" ><!--short form of CapitalDifferentialD --> +<!ENTITY DifferentialD "ⅆ" ><!--d for use in differentials, e.g., within integrals --> +<!ENTITY DownArrowBar "⤓" ><!--down arrow to bar --> +<!ENTITY DownBreve "̑" ><!--breve, inverted (non-spacing) --> +<!ENTITY DownLeftRightVector "⥐" ><!--left-down-right-down harpoon --> +<!ENTITY DownLeftTeeVector "⥞" ><!--left-down harpoon from bar --> +<!ENTITY DownLeftVectorBar "⥖" ><!--left-down harpoon to bar --> +<!ENTITY DownRightTeeVector "⥟" ><!--right-down harpoon from bar --> +<!ENTITY DownRightVectorBar "⥗" ><!--right-down harpoon to bar --> +<!ENTITY DownTeeArrow "↧" ><!--alias for mapstodown --> +<!ENTITY ee "ⅇ" ><!--short form of ⅇ --> +<!ENTITY EmptySmallSquare "◽" ><!--empty small square --> +<!ENTITY EmptyVerySmallSquare "◽" ><!--empty small square --> +<!ENTITY Equal "⩵" ><!--two consecutive equal signs --> +<!ENTITY expectation "ℰ" ><!--expectation (operator) --> +<!ENTITY exponentiale "ℯ" ><!--base of the Napierian logarithms --> +<!ENTITY ExponentialE "ⅇ" ><!--e use for the exponential base of the natural logarithms --> +<!ENTITY FilledSmallSquare "◾" ><!--filled small square --> +<!ENTITY FilledVerySmallSquare "◾" ><!--filled very small square --> +<!ENTITY Fouriertrf "ℱ" ><!--Fourier transform --> +<!ENTITY GreaterGreater "⪢" ><!--alias for GT --> +<!ENTITY HilbertSpace "ℋ" ><!--Hilbert space --> +<!ENTITY HorizontalLine "─" ><!--short horizontal line --> +<!ENTITY ic "​" ><!--short form of ⁣ --> +<!ENTITY ii "ⅈ" ><!--short form of ⅈ --> +<!ENTITY ImaginaryI "ⅈ" ><!--i for use as a square root of -1 --> +<!ENTITY imagline "ℐ" ><!--the geometric imaginary line --> +<!ENTITY integers "ℤ" ><!--the ring of integers --> +<!ENTITY InvisibleComma "​" ><!--used as a separator, e.g., in indices --> +<!ENTITY InvisibleTimes "⁢" ><!--marks multiplication when it is understood without a mark --> +<!ENTITY it "⁢" ><!--short form of ⁢ --> +<!ENTITY Laplacetrf "ℒ" ><!--Laplace transform --> +<!ENTITY larrb "⇤" ><!--leftwards arrow to bar --> +<!ENTITY LeftArrowBar "⇤" ><!--alias for larrb --> +<!ENTITY LeftDownTeeVector "⥡" ><!--down-left harpoon from bar --> +<!ENTITY LeftDownVectorBar "⥙" ><!--down-left harpoon to bar --> +<!ENTITY LeftRightVector "⥎" ><!--left-up-right-up harpoon --> +<!ENTITY LeftTeeArrow "↤" ><!--alias for mapstoleft --> +<!ENTITY LeftTeeVector "⥚" ><!--left-up harpoon from bar --> +<!ENTITY LeftTriangleBar "⧏" ><!--not left triangle, vertical bar --> +<!ENTITY LeftUpDownVector "⥑" ><!--up-left-down-left harpoon --> +<!ENTITY LeftUpTeeVector "⥠" ><!--up-left harpoon from bar --> +<!ENTITY LeftUpVectorBar "⥘" ><!--up-left harpoon to bar --> +<!ENTITY LeftVectorBar "⥒" ><!--left-up harpoon to bar --> +<!ENTITY LessLess "⪡" ><!--alias for Lt --> +<!ENTITY mapstodown "↧" ><!--downwards arrow from bar --> +<!ENTITY mapstoleft "↤" ><!--leftwards arrow from bar --> +<!ENTITY mapstoup "↥" ><!--upwards arrow from bar --> +<!ENTITY Mellintrf "ℳ" ><!--Mellin transform --> +<!ENTITY naturals "ℕ" ><!--the semi-ring of natural numbers --> +<!ENTITY nbump "≎̸" ><!--not bumpy equals --> +<!ENTITY nbumpe "≏̸" ><!--not bumpy single equals --> +<!ENTITY NegativeMediumSpace " ⁣" ><!--space of width -4/18 em --> +<!ENTITY NegativeThickSpace " ⁣" ><!--space of width -5/18 em --> +<!ENTITY NegativeThinSpace " ⁣" ><!--space of width -3/18 em --> +<!ENTITY NegativeVeryThinSpace " ⁣" ><!--space of width -1/18 em --> +<!ENTITY nesim "≂̸" ><!--not equal or similar --> +<!ENTITY NewLine "
" ><!--force a line break; line feed --> +<!ENTITY NoBreak "" ><!--never break line here --> +<!ENTITY NotCupCap "≭" ><!--alias for &nasymp; --> +<!ENTITY NotEqualTilde "≂̸" ><!--alias for ≂̸ --> +<!ENTITY NotHumpDownHump "≎̸" ><!--alias for ≎̸ --> +<!ENTITY NotHumpEqual "≏̸" ><!--alias for ≏̸ --> +<!ENTITY NotLeftTriangleBar "⧏̸" ><!--not left triangle, vertical bar --> +<!ENTITY NotNestedGreaterGreater "⒢̸" ><!--not double greater-than sign --> +<!ENTITY NotNestedLessLess "⒡̸" ><!--not double less-than sign --> +<!ENTITY NotRightTriangleBar "⧐̸" ><!--not vertical bar, right triangle --> +<!ENTITY NotSquareSubset "⊏̸" ><!--square not subset --> +<!ENTITY NotSquareSuperset "⊐̸" ><!--negated set-like partial order operator --> +<!ENTITY NotSucceedsTilde "≿̸" ><!--not succeeds or similar --> +<!ENTITY OverBar "¯" ><!--over bar --> +<!ENTITY OverBrace "︷" ><!--over brace --> +<!ENTITY OverBracket "⎴" ><!--over bracket --> +<!ENTITY OverParenthesis "︵" ><!--over parenthesis --> +<!ENTITY planckh "ℎ" ><!--the ring (skew field) of quaternions --> +<!ENTITY Poincareplane "ℌ" ><!--the Poincare upper half-plane --> +<!ENTITY primes "ℙ" ><!--the prime natural numbers --> +<!ENTITY Product "∏" ><!--alias for &prod --> +<!ENTITY quaternions "ℍ" ><!--the ring (skew field) of quaternions --> +<!ENTITY rarrb "⇥" ><!--leftwards arrow to bar --> +<!ENTITY rationals "ℚ" ><!--the field of rational numbers --> +<!ENTITY realine "ℛ" ><!--the geometric real line --> +<!ENTITY reals "ℝ" ><!--the field of real numbers --> +<!ENTITY RightArrowBar "⇥" ><!--alias for rarrb --> +<!ENTITY RightDownTeeVector "⥝" ><!--down-right harpoon from bar --> +<!ENTITY RightDownVectorBar "⥕" ><!--down-right harpoon to bar --> +<!ENTITY RightTeeVector "⥛" ><!--right-up harpoon from bar --> +<!ENTITY RightTriangleBar "⧐" ><!--vertical bar, right triangle --> +<!ENTITY RightUpDownVector "⥏" ><!--up-right-down-right harpoon --> +<!ENTITY RightUpTeeVector "⥜" ><!--up-right harpoon from bar --> +<!ENTITY RightUpVectorBar "⥔" ><!--up-right harpoon to bar --> +<!ENTITY RightVectorBar "⥓" ><!--up-right harpoon to bar --> +<!ENTITY RoundImplies "⥰" ><!--round implies --> +<!ENTITY RuleDelayed "⧴" ><!--rule-delayed (colon right arrow) --> +<!ENTITY ShortDownArrow "⌄⁣" ><!--short down arrow --> +<!ENTITY ShortUpArrow "⌃⁣" ><!--short up arrow --> +<!ENTITY Tab "	" ><!--tabulator stop; horizontal tabulation --> +<!ENTITY ThickSpace " " ><!--space of width 5/18 em --> +<!ENTITY UnderBar "̲" ><!--combining low line --> +<!ENTITY UnderBrace "︸" ><!--under brace --> +<!ENTITY UnderBracket "⎵" ><!--under bracket --> +<!ENTITY UpArrowBar "⤒" ><!--up arrow to bar --> +<!ENTITY UpTeeArrow "↥" ><!--Alias mapstoup --> +<!ENTITY VerticalLine "❘" ><!--short vertical line --> +<!ENTITY VerticalSeparator "❘" ><!--vertical separating operator --> +<!ENTITY zeetrf "ℨ" ><!--zee transform --> +<!ENTITY ZeroWidthSpace "​" ><!--zero width space --> diff --git a/docs/docbook/xslt/db2latex/mathml/latex.entities.dtd b/docs/docbook/xslt/db2latex/mathml/latex.entities.dtd new file mode 100644 index 0000000000..7ec703e2c7 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/latex.entities.dtd @@ -0,0 +1,7 @@ +<!ELEMENT character (#PCDATA)> + +<!ATTLIST character +entity CDATA #REQUIRED +arguments CDATA #IMPLIED +> + diff --git a/docs/docbook/xslt/db2latex/mathml/latex.entities.xml b/docs/docbook/xslt/db2latex/mathml/latex.entities.xml new file mode 100644 index 0000000000..e5290aba10 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/latex.entities.xml @@ -0,0 +1,12 @@ +<?xml version='1.0'?> +<!DOCTYPE latex SYSTEM "latex.entities.dtd" []> + +<latex> + <character entity="δ">\delta</character> + <character entity="κ">\kappa</character> + <character entity="π">\pi</character> + <character entity="−">-</character> + <character entity="β">\beta</character> + <character entity="̂">\sphat</character><!-- superscript=""--> + <character entity="̂" arguments="1">\hat</character> +</latex> diff --git a/docs/docbook/xslt/db2latex/mathml/mathml.content.constsymb.mod.xsl b/docs/docbook/xslt/db2latex/mathml/mathml.content.constsymb.mod.xsl new file mode 100644 index 0000000000..1317c483a7 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/mathml.content.constsymb.mod.xsl @@ -0,0 +1,101 @@ +<?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet +[ + <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent"> %mmlalias; + <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent"> %mmlextra; +]> +<!--############################################################################# + | $Id: mathml.content.constsymb.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: MathML content markup, constants and symbols, 4.4.12. + | MathML namespace used -> mml + + ############################################################################## --> + +<xsl:stylesheet version='1.0' + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML"> + +<!-- integer numbers --> +<xsl:template match="mml:integers"> + <xsl:text>\bbold Z </xsl:text> +</xsl:template> + +<!-- real numbers --> +<xsl:template match="mml:reals"> + <xsl:text>\bbold R </xsl:text> +</xsl:template> + +<!-- rational numbers --> +<xsl:template match="mml:rationals"> + <xsl:text>\bbold Q </xsl:text> +</xsl:template> + +<!-- natural numbers --> +<xsl:template match="mml:naturalnumbers"> + <xsl:text>\bbold N </xsl:text> +</xsl:template> + +<!-- complex numbers --> +<xsl:template match="mml:complexes"> + <xsl:text>\bbold C </xsl:text> +</xsl:template> + +<!-- prime numbers --> +<xsl:template match="mml:primes"> + <xsl:text>\bbold P </xsl:text> + <mi><xsl:text disable-output-escaping='yes'>&#x1D547;</xsl:text></mi> <!-- open face P --> <!-- UNICODE char does not work --> +</xsl:template> + + + + + + + +<!-- exponential base --> +<xsl:template match="mml:exponentiale"> + <xsl:text>\textrm{e} </xsl:text> +</xsl:template> + +<!-- square root of -1 --> +<xsl:template match="mml:imaginaryi"> + <xsl:text>\textrm{i} </xsl:text> +</xsl:template> + +<xsl:template match="mml:notanumber"> + <xsl:text>\NaN </xsl:text> +</xsl:template> + +<!-- logical constant for truth --> +<xsl:template match="mml:true"> + <xsl:text>true</xsl:text> +</xsl:template> + +<!-- logical constant for falsehood --> +<xsl:template match="mml:false"> + <xsl:text>false</xsl:text> +</xsl:template> + +<!-- empty set --> +<xsl:template match="mml:emptyset"> + <xsl:text>\empty</xsl:text> +</xsl:template> + +<!-- ratio of a circle's circumference to its diameter --> +<xsl:template match="mml:pi"> + <xsl:text>\pi</xsl:text> +</xsl:template> + +<!-- Euler's constant --> +<xsl:template match="mml:eulergamma"> + <xsl:text>\Gamma</xsl:text> +</xsl:template> + +<!-- Infinity --> +<xsl:template match="mml:infinity"> + <xsl:text>\infty</xsl:text> +</xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/mathml/mathml.content.functions.mod.xsl b/docs/docbook/xslt/db2latex/mathml/mathml.content.functions.mod.xsl new file mode 100644 index 0000000000..a317fc018b --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/mathml.content.functions.mod.xsl @@ -0,0 +1,725 @@ +<?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet +[ + <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent"> %mmlalias; + <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent"> %mmlextra; +]> +<!--############################################################################# + | $Id: mathml.content.functions.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: MathML content markup. + | Note: these elements are not part of the DocBook DTD. I have extended + | the docbook DTD in order to support this tags, so that's why I have these + | templates here. + | + | MathML namespace used -> mml + + ############################################################################## --> + +<xsl:stylesheet version='1.0' + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML"> + +<xsl:template match="mml:fn"> +</xsl:template> + +<!-- +<xsl:template match="mml:apply/lowlimit"> +<xsl:variable name="first" select="../child::*[1]"/> +</xsl:template> + +<xsl:template match="mml:apply/uplimit"> +<xsl:variable name="first" select="../child::*[1]"/> +</xsl:template> + +<xsl:template match="mml:apply/degree"> +<xsl:variable name="first" select="../child::*[1]"/> +</xsl:template> +--> + + +<!-- conditions --> +<!-- no support for deprecated reln--> +<xsl:template match="mml:condition"> + <xsl:text>{</xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text> +</xsl:template> + + + + + + +<!--UNARY + unary arithmetic exp, factorial, minus, abs, conjugate, arg, real, imaginary + unary logical not + unary functional inverse, ident + unary elementary classical + functions sin, cos, tan, sec, csc, cot, sinh, cosh, tanh, sech, csch, coth, arcsin, + arccos, arctan, arccosh, arccot, arccoth, arccsc, arccsch, arcsec, arcsech, arcsinh, + arctanh, exp, ln, log + unary linear algebra determinant, transpose + unary calculus and vector calculus + divergence, grad, curl, laplacian + unary set-theoretic card +--> + +<!-- BINARY + binary arithmetic quotient, divide, minus, power, rem + binary logical implies, equivalent, approx + binary set operators setdiff + binary linear algebra vectorproduct, scalarproduct, outerproduct +--> + +<!-- N-ARY and OTHER + n-ary statistical mean, sdev, variance, median, mode + n-ary logical and, or, xor + n-ary linear algebra selector + n-ary set operator union, intersect + n-ary functional fn, compose + integral, sum, product operators int, sum, product + differential operator diff, partialdiff + quantifier forall, exists +--> +<!-- Get the first child (operator), and check if its name is a fn , or operator--> +<!-- Is the operator taking qualifiers? --> +<!-- Operators : int, sum, product, root, diff, partialdiff, limit, log, moment, min, max, forall, exists --> +<!-- Qualifiers : lowlimit, uplimit, bvar, degree, logbase, interval, condition --> + + +<!-- apply/apply --> +<xsl:template match="mml:apply[mml:apply]"> <!-- when the function itself is defined by other functions: (F+G)(x) --> + <xsl:choose> + <xsl:when test="count(child::*)>=2"> + <xsl:text>{</xsl:text><xsl:apply-templates select="child::*[position()=1]"/><xsl:text>}</xsl:text> + <xsl:text>{</xsl:text><xsl:apply-templates select="child::*[position()!=1]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> <!-- apply only contains apply, no operand--> + <xsl:text>{</xsl:text><xsl:apply-templates select="child::*"/><xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + + +<!-- force function or operator MathML 1.0 deprecated--> +<!-- partial support for func/operators defined using presentation markup--> +<xsl:template match="mml:apply[mml:fn]"> +<mrow> +<xsl:choose> +<xsl:when test="*[position()=1 and self::mml:fn]/mml:mo/mml:mchar/@name='PlusMinus'"> + <!--if operator is infix (we assume this to be the default when we have mchars(for instance PlusMinus); perhaps we should test further the name attribute)--> + <xsl:choose> + <xsl:when test="count(child::*)>=3"> + <mrow> + <xsl:for-each select="child::*[position()!=last() and position()!=1]"> + <xsl:apply-templates select="."/><xsl:copy-of select="preceding-sibling::mml:fn/*"/> + </xsl:for-each> + <xsl:apply-templates select="child::*[position()!=1 and position()=last()]"/> + </mrow> + </xsl:when> + <xsl:when test="count(child::*)=2"> + <mrow><xsl:copy-of select="child::mml:fn[position()=1]/*"/><xsl:apply-templates select="child::*[position()=2]"/></mrow> + </xsl:when> + <xsl:otherwise> <!-- apply only contains fn, no operand--> + <mrow><xsl:apply-templates select="child::mml:fn/*"/></mrow> + </xsl:otherwise> + </xsl:choose> +</xsl:when> +<xsl:otherwise> <!-- if operator is prefix (common case)--> + <xsl:choose> + <xsl:when test="name(mml:fn/*[position()=1])='apply'"> <!-- fn definition is complex, surround with brackets, but only one child--> + <mfenced separators=""><mrow><xsl:apply-templates select="mml:fn/*"/></mrow></mfenced> + </xsl:when> + <xsl:otherwise> + <mi><xsl:apply-templates select="mml:fn/*"/></mi> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="count(*)>1"> <!-- if no operands, don't put empty parentheses--> + <mo><mchar name="ApplyFunction"/></mo> + <mfenced> + <xsl:apply-templates select="*[position()!=1]"/> + </mfenced> + </xsl:if> +</xsl:otherwise> +</xsl:choose> +</mrow> +</xsl:template> + + + + +<!-- quotient --> +<xsl:template match="mml:apply[mml:quotient]"> + <mrow> <!-- the third notation uses UNICODE chars x0230A and x0230B --> + <mo>integer part of</mo> + <mrow> + <xsl:choose> <!-- surround with brackets if operands are composed--> + <xsl:when test="child::*[position()=2] and name()='mml:apply'"> + <mfenced separators=""><xsl:apply-templates select="*[position()=2]"/></mfenced> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="*[position()=2]"/> + </xsl:otherwise> + </xsl:choose> + <mo>/</mo> + <xsl:choose> + <xsl:when test="child::*[position()=3] and name()='mml:apply'"> + <mfenced separators=""><xsl:apply-templates select="*[position()=3]"/></mfenced> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="*[position()=3]"/> + </xsl:otherwise> + </xsl:choose> + </mrow> + </mrow> +</xsl:template> + + +<!-- factorial --> +<xsl:template match="mml:apply[mml:factorial]"> + <xsl:text>{</xsl:text> + <xsl:choose> + <xsl:when test="name(*[position()=2])='mml:apply'"> + <xsl:text>{</xsl:text><xsl:apply-templates select="*[position()=2]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="*[position()=2]"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>!(fact)</xsl:text> + <xsl:text>}</xsl:text> +</xsl:template> + + +<!-- divide --> +<xsl:template match="mml:apply[mml:divide]"> + <xsl:text>{ \frac</xsl:text> + <xsl:text>{ </xsl:text> + <xsl:apply-templates select="child::*[position()=2]"/> + <xsl:text>}</xsl:text> + <xsl:text>{ </xsl:text> + <xsl:apply-templates select="child::*[position()=3]"/> + <xsl:text>}</xsl:text> + <xsl:text>}</xsl:text> +</xsl:template> + + +<!-- APPLY CONTAINING MAX --> +<xsl:template match="mml:apply/mml:max"/> +<xsl:template match="mml:apply[mml:max]"> + <xsl:text>{</xsl:text> + <xsl:choose> + <xsl:when test="mml:bvar"> <!-- if there are bvars--> + <xsl:text>\max_{</xsl:text> + <!-- Select every bvar except the last one (position() only counts bvars, not the other siblings)--> + <xsl:for-each select="mml:bvar[position()!=last()]"> + <xsl:apply-templates select="."/><xsl:text>,</xsl:text> + </xsl:for-each> + <xsl:apply-templates select="mml:bvar[position()=last()]"/> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> <!-- No bvars, no underscore... --> + <xsl:text>\max</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:text>\left\{</xsl:text> + <xsl:for-each select="child::*[name()!='mml:condition' and name()!='mml:bvar' and name()!='mml:max' and position()!=last()]"> + <xsl:apply-templates select="."/><xsl:text>,</xsl:text> + <xsl:message>RCAS: MathML mml:apply[mml:min] Applying templates to <xsl:copy-of select="name(.)"/></xsl:message> + </xsl:for-each> + <xsl:apply-templates select="child::*[name()!='mml:condition' and name()!='mml:bvar' and name()!='mml:max' and position()=last()]"/> + <!-- If there is a condition, do not close... --> + <xsl:if test="mml:condition"> + <xsl:text>|</xsl:text><xsl:apply-templates select="mml:condition"/> + </xsl:if> + <xsl:text>\right\}</xsl:text> + <xsl:text>}</xsl:text> +</xsl:template> + + +<!-- APPLY CONTAINING MIN --> +<xsl:template match="mml:apply/mml:min"/> +<xsl:template match="mml:apply[mml:min]"> + <xsl:text>{</xsl:text> + <xsl:choose> + <xsl:when test="mml:bvar"> <!-- if there are bvars--> + <xsl:text>\min_{</xsl:text> + <!-- Select every bvar except the last one (position() only counts bvars, not the other siblings)--> + <xsl:for-each select="mml:bvar[position()!=last()]"> + <xsl:apply-templates select="."/><xsl:text>,</xsl:text> + </xsl:for-each> + <xsl:apply-templates select="mml:bvar[position()=last()]"/> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> <!-- No bvars, no underscore... --> + <xsl:text>\min</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:text>\left\{</xsl:text> + <xsl:for-each select="child::*[name()!='mml:condition' and name()!='mml:bvar' and name()!='mml:min' and position()!=last()]"> + <xsl:message>RCAS: MathML mml:apply[mml:min] Applying templates to <xsl:copy-of select="name(.)"/></xsl:message> + <xsl:apply-templates select="."/> + <xsl:text>,</xsl:text> + </xsl:for-each> + <xsl:apply-templates select="child::*[name()!='mml:condition' and name()!='mml:bvar' and name()!='mml:min' and position()=last()]"/> + <!-- If there is a condition, do not close... --> + <xsl:if test="mml:condition"> + <xsl:text>|</xsl:text><xsl:apply-templates select="mml:condition"/> + </xsl:if> + <xsl:text>\right\}</xsl:text> + <xsl:text>}</xsl:text> +</xsl:template> + + + + + + + + +<!-- APPLY CONTAINING substraction(minus) --> +<!-- unary or binary operator --> +<xsl:template match="mml:apply[mml:minus]"> +<xsl:text>{</xsl:text> +<xsl:choose> <!-- binary --> + <xsl:when test="count(child::*)=3"> + <xsl:apply-templates select="child::*[position()=2]"/> + <xsl:text>-</xsl:text> + <xsl:choose> + <xsl:when test="((name(*[position()=3])='mml:ci' or name(*[position()=3])='mml:cn') and contains(*[position()=3]/text(),'-')) or (name(*[position()=3])='mml:apply')"> + <xsl:text>\left(</xsl:text> <xsl:apply-templates select="*[position()=3]"/><xsl:text>\right)</xsl:text> + <!-- surround negative or complex things with brackets --> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="*[position()=3]"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> <!-- unary --> + <xsl:text>-</xsl:text> + <xsl:choose> + <xsl:when test= + "((name(*[position()=2])='mml:ci' or name(*[position()=2])='mml:cn') and contains(*[position()=2]/text(),'-')) or (name(*[position()=2])='mml:apply')"> + <xsl:text>\left(</xsl:text> + <xsl:apply-templates select="child::*[position()=last()]"/> + <xsl:text>\right)</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="child::*[position()=last()]"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> +</xsl:choose> +<xsl:text>}</xsl:text> +</xsl:template> + + +<!-- addition --> +<xsl:template match="mml:apply[mml:plus]"> + <xsl:choose> + <xsl:when test="count(child::*)>=3"> + <mrow> + <xsl:choose> + <xsl:when test="((name(*[position()=2])='mml:ci' or name(*[position()=2])='mml:cn') and contains(*[position()=2]/text(),'-')) or (*[position()=2 and self::mml:apply and child::mml:minus])"> + <mfenced separators=""><xsl:apply-templates select="*[position()=2]"/></mfenced> <!-- surround negative things with brackets --> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="*[position()=2]"/> + </xsl:otherwise> + </xsl:choose> + <xsl:for-each select="child::*[position()!=1 and position()!=2]"> + <xsl:choose> + <xsl:when test="((name(.)='mml:ci' or name(.)='mml:cn') and contains(./text(),'-')) or (self::mml:apply and child::mml:minus)"> <!-- surround negative things with brackets --> + <mo>+</mo><mfenced separators=""><xsl:apply-templates select="."/></mfenced> + </xsl:when> + <xsl:otherwise> + <mo>+</mo><xsl:apply-templates select="."/> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + </mrow> + </xsl:when> + <xsl:when test="count(child::*)=2"> + <mrow> + <mo>+</mo><xsl:apply-templates select="child::*[position()=2]"/> + </mrow> + </xsl:when> + <xsl:otherwise> + <mo>+</mo> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- power --> +<xsl:template match="mml:apply[mml:power]"> + <xsl:text> {</xsl:text> + <xsl:choose> + <xsl:when test="name(*[position()=2])='mml:apply'"> + <xsl:text>\left(</xsl:text> + <xsl:apply-templates select="child::*[position()=2]"/> + <xsl:text>\rigth)</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="child::*[position()=2]"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}^{</xsl:text> + <xsl:apply-templates select="child::*[position()=3]"/> + <xsl:text>} </xsl:text> +</xsl:template> + +<!-- remainder --> +<xsl:template match="mml:apply[mml:rem]"> + <mrow> + <xsl:choose> <!-- surround with brackets if operands are composed--> + <xsl:when test="name(*[position()=2])='mml:apply'"> + <mfenced separators=""><xsl:apply-templates select="*[position()=2]"/></mfenced> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="*[position()=2]"/> + </xsl:otherwise> + </xsl:choose> + <mo>mod</mo> + <xsl:choose> + <xsl:when test="name(*[position()=3])='mml:apply'"> + <mfenced separators=""><xsl:apply-templates select="*[position()=3]"/></mfenced> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="*[position()=3]"/> + </xsl:otherwise> + </xsl:choose> + </mrow> +</xsl:template> + +<!-- multiplication --> +<xsl:template match="mml:apply[mml:times]"> +<xsl:choose> +<xsl:when test="count(child::*)>=3"> + <mrow> + <xsl:for-each select="child::*[position()!=last() and position()!=1]"> + <xsl:choose> + <xsl:when test="mml:plus"> <!--add brackets around + children for priority purpose--> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced><mo><mchar name="InvisibleTimes"/></mo> + </xsl:when> + <xsl:when test="mml:minus"> <!--add brackets around - children for priority purpose--> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced><mo><mchar name="InvisibleTimes"/></mo> + </xsl:when> + <xsl:when test="(name(.)='mml:ci' or name(.)='mml:cn') and contains(text(),'-')"> <!-- have to do it using contains because starts-with doesn't seem to work well in XT--> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced><mo><mchar name="InvisibleTimes"/></mo> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="."/><mo><mchar name="InvisibleTimes"/></mo> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + <xsl:for-each select="child::*[position()=last()]"> + <xsl:choose> + <xsl:when test="mml:plus"> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced> + </xsl:when> + <xsl:when test="mml:minus"> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced> + </xsl:when> + <xsl:when test="(name(.)='mml:ci' or name(.)='mml:cn') and contains(text(),'-')"> <!-- have to do it using contains because starts-with doesn't seem to work well in XT--> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="."/> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + </mrow> +</xsl:when> +<xsl:when test="count(child::*)=2"> <!-- unary --> + <mrow> + <mo><mchar name="InvisibleTimes"/></mo> + <xsl:choose> + <xsl:when test="mml:plus"> + <mfenced separators=""><xsl:apply-templates select="*[position()=2]"/></mfenced> + </xsl:when> + <xsl:when test="mml:minus"> + <mfenced separators=""><xsl:apply-templates select="*[position()=2]"/></mfenced> + </xsl:when> + <xsl:when test="(*[position()=2 and self::mml:ci] or *[position()=2 and self::mml:cn]) and contains(*[position()=2]/text(),'-')"> + <mfenced separators=""><xsl:apply-templates select="*[position()=2]"/></mfenced> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="*[position()=2]"/> + </xsl:otherwise> + </xsl:choose> + </mrow> +</xsl:when> +<xsl:otherwise> <!-- no operand --> + <mo><mchar name="InvisibleTimes"/></mo> +</xsl:otherwise> +</xsl:choose> +</xsl:template> + +<!-- root --> +<xsl:template match="mml:apply[mml:root]"> + <xsl:choose> + <xsl:when test="mml:degree"> + <xsl:choose> + <xsl:when test="mml:degree/mml:cn/text()='2'"> <!--if degree=2 display a standard square root--> + <msqrt> + <xsl:apply-templates select="child::*[position()=3]"/> + </msqrt> + </xsl:when> + <xsl:otherwise> + <mroot> + <xsl:apply-templates select="child::*[position()=3]"/> + <mrow><xsl:apply-templates select="mml:degree/*"/></mrow> + </mroot> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> <!-- no degree specified--> + <msqrt> + <xsl:apply-templates select="child::*[position()=2]"/> + </msqrt> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- greatest common divisor --> +<xsl:template match="mml:apply[mml:gcd]"> + <mrow> + <mi>gcd</mi><mo><mchar name="ApplyFunction"/></mo> + <mfenced> + <xsl:apply-templates select="child::*[position()!=1]"/> + </mfenced> + </mrow> +</xsl:template> + +<!-- AND --> +<xsl:template match="mml:apply[mml:and]"> +<mrow> + <xsl:choose> + <xsl:when test="count(*)>=3"> <!-- at least two operands (common case)--> + <xsl:for-each select="child::*[position()!=last() and position()!=1]"> + <xsl:choose> + <xsl:when test="mml:or"> <!--add brackets around OR children for priority purpose--> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced><mo><mchar name="And"/></mo> + </xsl:when> + <xsl:when test="mml:xor"> <!--add brackets around XOR children for priority purpose--> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced><mo><mchar name="And"/></mo> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="."/><mo><mchar name="And"/></mo> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + <xsl:for-each select="child::*[position()=last()]"> + <xsl:choose> + <xsl:when test="mml:or"> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced> + </xsl:when> + <xsl:when test="mml:xor"> + <mfenced separators=""><xsl:apply-templates select="."/></mfenced> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="."/> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + </xsl:when> + <xsl:when test="count(*)=2"> + <mo><mchar name="And"/></mo><xsl:apply-templates select="*[position()=last()]"/> + </xsl:when> + <xsl:otherwise> + <mo><mchar name="And"/></mo> + </xsl:otherwise> + </xsl:choose> +</mrow> +</xsl:template> + +<!-- OR --> +<xsl:template match="mml:apply[mml:or]"> +<mrow> + <xsl:choose> + <xsl:when test="count(*)>=3"> + <xsl:for-each select="child::*[position()!=last() and position()!=1]"> + <xsl:apply-templates select="."/><mo><mchar name="Or"/></mo> + </xsl:for-each> + <xsl:apply-templates select="child::*[position()=last()]"/> + </xsl:when> + <xsl:when test="count(*)=2"> + <mo><mchar name="Or"/></mo><xsl:apply-templates select="*[position()=last()]"/> + </xsl:when> + <xsl:otherwise> + <mo><mchar name="Or"/></mo> + </xsl:otherwise> + </xsl:choose> +</mrow> +</xsl:template> + +<!-- XOR --> +<xsl:template match="mml:apply[mml:xor]"> +<mrow> + <xsl:choose> + <xsl:when test="count(*)>=3"> + <xsl:for-each select="child::*[position()!=last() and position()!=1]"> + <xsl:apply-templates select="."/><mo>xor</mo> + </xsl:for-each> + <xsl:apply-templates select="child::*[position()=last()]"/> + </xsl:when> + <xsl:when test="count(*)=2"> + <mo>xor</mo><xsl:apply-templates select="*[position()=last()]"/> + </xsl:when> + <xsl:otherwise> + <mo>xor</mo> + </xsl:otherwise> + </xsl:choose> +</mrow> +</xsl:template> + +<!-- NOT --> +<xsl:template match="mml:apply[mml:not]"> + <mrow> + <mo><mchar name="Not"/></mo> + <xsl:choose> + <xsl:when test="child::mml:apply"><!--add brackets around OR,AND,XOR children for priority purpose--> + <mfenced separators=""> + <xsl:apply-templates select="child::*[position()=2]"/> + </mfenced> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="child::*[position()=2]"/> + </xsl:otherwise> + </xsl:choose> + </mrow> +</xsl:template> + +<!-- implies --> +<xsl:template match="mml:apply[mml:implies]"> + <mrow> + <xsl:apply-templates select="child::*[position()=2]"/> + <mo><mchar name="DoubleRightArrow"/></mo> + <xsl:apply-templates select="child::*[position()=3]"/> + </mrow> +</xsl:template> + +<xsl:template match="mml:reln[mml:implies]"> + <mrow> + <xsl:apply-templates select="child::*[position()=2]"/> + <mo><mchar name="DoubleRightArrow"/></mo> + <xsl:apply-templates select="child::*[position()=3]"/> + </mrow> +</xsl:template> + +<!-- for all--> +<xsl:template match="mml:apply[mml:forall]"> + <mrow> + <mo><mchar name="ForAll"/></mo> + <mrow> + <xsl:for-each select="mml:bvar[position()!=last()]"> + <xsl:apply-templates select="."/><mo>,</mo> + </xsl:for-each> + <xsl:apply-templates select="mml:bvar[position()=last()]"/> + </mrow> + <xsl:if test="mml:condition"> + <mrow><mo>,</mo><xsl:apply-templates select="mml:condition"/></mrow> + </xsl:if> + <xsl:choose> + <xsl:when test="mml:apply"> + <mo>:</mo><xsl:apply-templates select="mml:apply"/> + </xsl:when> + <xsl:when test="mml:reln"> + <mo>:</mo><xsl:apply-templates select="mml:reln"/> + </xsl:when> + </xsl:choose> + </mrow> +</xsl:template> + +<!-- in --> +<xsl:template match="mml:apply[mml:in]"> + <xsl:text>{</xsl:text> + <xsl:apply-templates select="child::*[position()=2]"/> + <xsl:text>\in</xsl:text> + <xsl:apply-templates select="child::*[position()=3]"/> + <xsl:text>}</xsl:text> +</xsl:template> + +<!-- notin --> +<xsl:template match="mml:apply[mml:notin]"> + <xsl:text>{</xsl:text> + <xsl:apply-templates select="child::*[position()=2]"/> + <xsl:text>\notin</xsl:text> + <xsl:apply-templates select="child::*[position()=3]"/> + <xsl:text>}</xsl:text> +</xsl:template> + +<!-- exist--> +<xsl:template match="mml:apply[mml:exists]"> + <mrow> + <mo><mchar name="Exists"/></mo> + <mrow> + <xsl:for-each select="mml:bvar[position()!=last()]"> + <xsl:apply-templates select="."/><mo>,</mo> + </xsl:for-each> + <xsl:apply-templates select="mml:bvar[position()=last()]"/> + </mrow> + <xsl:if test="mml:condition"> + <mrow><mo>,</mo><xsl:apply-templates select="mml:condition"/></mrow> + </xsl:if> + <xsl:choose> + <xsl:when test="mml:apply"> + <mo>:</mo><xsl:apply-templates select="mml:apply"/> + </xsl:when> + <xsl:when test="mml:reln"> + <mo>:</mo><xsl:apply-templates select="mml:reln"/> + </xsl:when> + </xsl:choose> + </mrow> +</xsl:template> + +<!-- absolute value --> +<xsl:template match="mml:apply[mml:abs]"> + <mrow><mo>|</mo><xsl:apply-templates select="child::*[position()=last()]"/><mo>|</mo></mrow> +</xsl:template> + +<!-- conjugate --> +<xsl:template match="mml:apply[mml:conjugate]"> + <mover> + <xsl:apply-templates select="child::*[position()=2]"/> + <mo><mchar name="ovbar"/></mo> <!-- does not work, UNICODE x0233D or perhaps OverBar--> + </mover> +</xsl:template> + +<!-- argument of complex number --> +<xsl:template match="mml:apply[mml:arg]"> + <mrow> + <mi>arg</mi><mo><mchar name="ApplyFunction"/></mo><mfenced separators=""><xsl:apply-templates select="child::*[position()=2]"/></mfenced> + </mrow> +</xsl:template> + +<!-- real part of complex number --> +<xsl:template match="mml:apply[mml:real]"> + <mrow> + <mi><xsl:text disable-output-escaping='yes'>&#x0211C;</xsl:text><!-- mchar Re or realpart should work--></mi> + <mo><mchar name="ApplyFunction"/></mo> + <mfenced separators=""><xsl:apply-templates select="child::*[position()=2]"/></mfenced> + </mrow> +</xsl:template> + +<!-- imaginary part of complex number --> +<xsl:template match="mml:apply[mml:imaginary]"> + <mrow> + <mi><xsl:text disable-output-escaping='yes'>&#x02111;</xsl:text><!-- mchar Im or impart should work--></mi> + <mo><mchar name="ApplyFunction"/></mo> + <mfenced separators=""><xsl:apply-templates select="child::*[position()=2]"/></mfenced> + </mrow> +</xsl:template> + +<!-- lowest common multiple --> +<xsl:template match="mml:apply[mml:lcm]"> + <mrow> + <mi>lcm</mi><mo><mchar name="ApplyFunction"/></mo> + <mfenced> + <xsl:apply-templates select="child::*[position()!=1]"/> + </mfenced> + </mrow> +</xsl:template> + + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/mathml/mathml.content.mod.xsl b/docs/docbook/xslt/db2latex/mathml/mathml.content.mod.xsl new file mode 100644 index 0000000000..ded65f4a9c --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/mathml.content.mod.xsl @@ -0,0 +1,99 @@ +<?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet +[ + <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent"> %mmlalias; + <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent"> %mmlextra; +]> +<!--############################################################################# + | $Id: mathml.content.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: MathML content markup. + | Note: these elements are not part of the DocBook DTD. I have extended + | the docbook DTD in order to support this tags, so that's why I have these + | templates here. + | + | MathML namespace used -> mml + + ############################################################################## --> + +<xsl:stylesheet version='1.0' + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML"> + +<xsl:template match="mml:semantics"> +</xsl:template> + + +<xsl:template match="mml:set|mml:list"> +</xsl:template> + + +<xsl:template match="mml:matrix"> +</xsl:template> + +<xsl:template match="mml:reln"> +</xsl:template> + +<xsl:template match="mml:lambda"> +</xsl:template> + + + + + + +<!-- Interval --> +<!-- att. closure : open, closed, open-closed, or closed-open, with a default value of closed. --> +<xsl:template match="mml:interval"> +<xsl:choose> + <xsl:when test="@closure = 'open'"> + <xsl:call-template name="interval.render"> + <xsl:with-param name="node" select="."/> + <xsl:with-param name="fst">\left( </xsl:with-param> + <xsl:with-param name="scd">\right) </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="@closure = 'open-closed'"> + <xsl:call-template name="interval.render"> + <xsl:with-param name="node" select="."/> + <xsl:with-param name="fst">\left( </xsl:with-param> + <xsl:with-param name="scd">\right] </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="@closure = 'closed-open'"> + <xsl:call-template name="interval.render"> + <xsl:with-param name="node" select="."/> + <xsl:with-param name="fst">\left[ </xsl:with-param> + <xsl:with-param name="scd">\right) </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="interval.render"> + <xsl:with-param name="node" select="."/> + <xsl:with-param name="fst">\left[ </xsl:with-param> + <xsl:with-param name="scd">\right] </xsl:with-param> + </xsl:call-template> + </xsl:otherwise> +</xsl:choose> +</xsl:template> + +<xsl:template name="interval.render"> +<xsl:param name="node"/> +<xsl:param name="fst"/> +<xsl:param name="scd"/> +<xsl:choose> + <!-- Two real numbers define the interval --> + <xsl:when test="count(child::*) = 2"> + <xsl:value-of select="$fst"/> + <xsl:apply-templates select="$node/child::*[1]"/> + <xsl:text> , </xsl:text> + <xsl:apply-templates select="$node/child::*[2]"/> + <xsl:value-of select="$scd"/> + </xsl:when> + <!-- A condition defines the interval --> + <xsl:otherwise> </xsl:otherwise> +</xsl:choose> +</xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/mathml/mathml.content.token.mod.xsl b/docs/docbook/xslt/db2latex/mathml/mathml.content.token.mod.xsl new file mode 100644 index 0000000000..cad72c5139 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/mathml.content.token.mod.xsl @@ -0,0 +1,232 @@ +<?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet +[ + <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent"> %mmlalias; + <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent"> %mmlextra; +]> +<!--############################################################################# + | $Id: mathml.content.token.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: MathML Content Markup, tokens (ci, cn, csymbol) + | MathML namespace used -> mml + + ############################################################################## --> + +<xsl:stylesheet version='1.0' + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML"> + +<xsl:strip-space elements="mml:math mml:mrow"/> + + +<!-- Content Number --> +<!-- support for bases and types--> +<xsl:template match="mml:cn"> + <xsl:text>{</xsl:text> + <xsl:text>{</xsl:text> + <xsl:choose> + <xsl:when test="./@type='complex-cartesian' or ./@type='complex'"> + <mn><xsl:value-of select="text()[position()=1]"/></mn> + <xsl:choose> + <xsl:when test="contains(text()[position()=2],'-')"> + <xsl:text>-</xsl:text><xsl:value-of select="substring-after(text()[position()=2],'-')"/> + <!-- substring-after does not seem to work well in XT : + if imaginary part is expressed with at least one space char + before the minus sign, then it does not work (we end up with + two minus sign since the one in the text is kept)--> + </xsl:when> + <xsl:otherwise> + <xsl:text>+</xsl:text> <xsl:value-of select="text()[position()=2]"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>\dot\textrm{i}</xsl:text> + </xsl:when> + <xsl:when test="./@type='complex-polar'"> + <xsl:text>\textrm{Polar}(</xsl:text><xsl:value-of select="text()[position()=1]"/><xsl:text>,</xsl:text> + <xsl:value-of select="text()[position()=2]"/> + <xsl:text>)</xsl:text> + </xsl:when> + <xsl:when test="./@type='rational'"> + <xsl:text>\frac{</xsl:text><xsl:value-of select="text()[position()=1]"/><xsl:text>}{</xsl:text> + <xsl:value-of select="text()[position()=2]"/> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="."/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}</xsl:text> + <xsl:if test="@base and @base!=10"> <!-- base specified and different from 10 ; if base = 10 we do not display it --> + <xsl:text>_{</xsl:text><xsl:value-of select="@base"/><xsl:text>}</xsl:text> + </xsl:if> + <xsl:text>}</xsl:text> +</xsl:template> + + + +<!-- Content Identifier --> +<!-- identifier --> +<!--support for presentation markup--> +<xsl:template match="mml:ci"> +<xsl:choose> +<xsl:when test="./@type='complex-cartesian' or ./@type='complex'"> + <xsl:choose> + <xsl:when test="count(*)>0"> <!--if identifier is composed of real+imag parts--> + <xsl:text>{</xsl:text> + <xsl:choose> + <xsl:when test="*[self::mml:mchar and position()=1]"> <!-- if real part is an mchar --> + <xsl:text>\textrm{</xsl:text><xsl:copy-of select="*[position()=1]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> <!-- if real part is simple text --> + <xsl:text>\textrm{</xsl:text><xsl:copy-of select="*[position()=1]"/><xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:choose> <!-- im part is negative--> + <xsl:when test="contains(text()[preceding-sibling::*[position()=1 and self::mml:sep]],'-')"> + <xsl:text>-\textrm{</xsl:text> + <xsl:choose> + <xsl:when test="mml:mchar[preceding-sibling::*[self::mml:sep]]"><!-- if im part is an mchar --> + <xsl:copy-of select="mml:mchar[preceding-sibling::*[self::mml:sep]]"/> + </xsl:when> + <xsl:otherwise><!-- if im part is simple text --> + <xsl:value-of select="substring-after(text()[preceding-sibling::*[position()=1 and self::mml:sep]],'-')"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}</xsl:text> + <xsl:text>\dot\textrm{i}</xsl:text> + </xsl:when> + <xsl:otherwise> <!-- im part is not negative--> + <xsl:text>+\textrm{</xsl:text> + <xsl:choose><!-- if im part is an mchar --> + <xsl:when test="mml:mchar[preceding-sibling::*[self::mml:sep]]"> + <xsl:copy-of select="mml:mchar[preceding-sibling::*[self::mml:sep]]"/> + </xsl:when> + <xsl:otherwise><!-- if im part is simple text --> + <xsl:value-of select="text()[preceding-sibling::*[position()=1 and self::mml:sep]]"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}</xsl:text> + <xsl:text>\dot\textrm{i}</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> <!-- if identifier is composed only of one text child--> + <xsl:text>\dot\textrm{</xsl:text><xsl:value-of select="."/><xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:when> +<xsl:when test="./@type='complex-polar'"> + <xsl:choose> + <xsl:when test="count(*)>0"> <!--if identifier is composed of real+imag parts--> + <xsl:text>{</xsl:text> + <mi>Polar</mi> + <mfenced><mi> + <xsl:value-of select="text()[following-sibling::*[self::mml:sep]]"/> + <xsl:if test="mml:mchar[following-sibling::*[self::mml:sep]]"> + <xsl:copy-of select="mml:mchar[following-sibling::*[self::mml:sep]]"/> + </xsl:if> + </mi> + <mi> + <xsl:value-of select="text()[preceding-sibling::*[self::mml:sep]]"/> + <xsl:if test="mml:mchar[preceding-sibling::*[self::mml:sep]]"> + <xsl:copy-of select="mml:mchar[preceding-sibling::*[self::mml:sep]]"/> + </xsl:if> + </mi></mfenced> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> <!-- if identifier is composed only of one text child--> + <mi><xsl:value-of select="."/></mi> + </xsl:otherwise> + </xsl:choose> +</xsl:when> +<xsl:when test="./@type='rational'"> + <xsl:choose> + <xsl:when test="count(*)>0"> <!--if identifier is composed of two parts--> + <xsl:text>{</xsl:text><mi> + <xsl:value-of select="text()[following-sibling::*[self::mml:sep]]"/> + <xsl:if test="mml:mchar[following-sibling::*[self::mml:sep]]"> + <xsl:copy-of select="mml:mchar[following-sibling::*[self::mml:sep]]"/> + </xsl:if> + </mi> + <mo>/</mo> + <mi> + <xsl:value-of select="text()[preceding-sibling::*[self::mml:sep]]"/> + <xsl:if test="mml:mchar[preceding-sibling::*[self::mml:sep]]"> + <xsl:copy-of select="mml:mchar[preceding-sibling::*[self::mml:sep]]"/> + </xsl:if> + </mi><xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> <!-- if identifier is composed only of one text child--> + <mi><xsl:value-of select="."/></mi> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:when test="./@type='vector'"> + <mi fontweight="bold"> + <xsl:value-of select="text()"/> + <xsl:if test="mml:mchar"> + <xsl:copy-of select="mml:mchar"/> + </xsl:if> + </mi> +</xsl:when> + <!-- type 'set' seems to be deprecated (use 4.4.12 instead); besides, there is no easy way to translate set identifiers to chars in ISOMOPF --> +<xsl:otherwise> <!-- no type attribute provided --> + <xsl:choose> + <xsl:when test="mml:mchar"> <!-- test if identifier is expressed using mchar nodes --> + <mi><xsl:value-of select="text()"/><xsl:copy-of select="mml:mchar"/></mi> + </xsl:when> + <xsl:when test="count(node()) != count(text())"> + <!--test if children are not all text nodes, meaning there is markup assumed + to be presentation markup (the case where there are mchar nodes has been tested just before)--> + <xsl:text>{</xsl:text><xsl:copy-of select="child::*"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> <!-- common case --> + <mi><xsl:value-of select="."/></mi> + </xsl:otherwise> + </xsl:choose> +</xsl:otherwise> +</xsl:choose> +</xsl:template> + + + + + + +<!-- externally defined symbols--> +<xsl:template match="mml:apply[mml:csymbol]"> + <xsl:text>{</xsl:text> + <xsl:apply-templates select="mml:csymbol[position()=1]"/> + <xsl:text>\left(</xsl:text> + <xsl:for-each select="child::*[position()!=1]"> + <xsl:apply-templates select="."/> + </xsl:for-each> + <xsl:text>\right)</xsl:text> + <xsl:text>}</xsl:text> +</xsl:template> + + +<xsl:template match="mml:csymbol"> +<xsl:choose> + <!--test if children are not all text nodes, meaning there is markup assumed to be presentation markup--> + <!--perhaps it would be sufficient to test if there is more than one node or text node--> + <xsl:when test="count(node()) != count(text())"> + <xsl:text>{</xsl:text> <xsl:copy-of select="child::*"/> <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\textrm{</xsl:text> <xsl:copy-of select="."/> <xsl:text>}</xsl:text> + </xsl:otherwise> +</xsl:choose> +</xsl:template> + +<xsl:template match="mml:mchar"> + <xsl:copy-of select="."/> +</xsl:template> +<!-- +<xsl:template match="mml:mtext"> + <xsl:copy-of select="."/> +</xsl:template> +--> +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/mathml/mathml.mod.xsl b/docs/docbook/xslt/db2latex/mathml/mathml.mod.xsl new file mode 100644 index 0000000000..c87b4ef7f6 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/mathml.mod.xsl @@ -0,0 +1,51 @@ +<?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet +[ + <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent"> %mmlalias; + <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent"> %mmlextra; +]> +<!--############################################################################# + | $Id: mathml.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: MathML presentation and content markup. + | Note: these elements are not part of the DocBook DTD. I have extended + | the docbook DTD in order to support this tags, so that's why I have these + | templates here. + | + | MathML namespace used -> mml + + ############################################################################## --> + +<xsl:stylesheet version='1.0' + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML"> + +<xsl:strip-space elements="mml:math mml:mrow"/> + + +<xsl:template match="mml:math"> + <xsl:text>
\begin{displaymath}
</xsl:text> + <xsl:apply-templates/> + <xsl:text>
\end{displaymath}
</xsl:text> +</xsl:template> + +<xsl:template match="mml:math[@mode='inline']"> + <xsl:text> \begin{math} </xsl:text> + <xsl:apply-templates/> + <xsl:text> \end{math} </xsl:text> +</xsl:template> + +<xsl:template match="mml:math[@mode='display']"> + <xsl:text>
\begin{displaymath}
</xsl:text> + <xsl:apply-templates/> + <xsl:text>
\end{displaymath}
</xsl:text> +</xsl:template> + + +<xsl:template match="p"> + <xsl:text>\section{</xsl:text> <xsl:value-of select="normalize-space(.)"/> <xsl:text>}
</xsl:text> +</xsl:template> + + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/mathml/mathml.presentation.mod.xsl b/docs/docbook/xslt/db2latex/mathml/mathml.presentation.mod.xsl new file mode 100644 index 0000000000..6e8bb83f30 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mathml/mathml.presentation.mod.xsl @@ -0,0 +1,493 @@ +<?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet +[ + <!ENTITY % mmlalias PUBLIC "MathML alias" "ent/mmlalias.ent"> %mmlalias; + <!ENTITY % mmlextra PUBLIC "MathML extra" "ent/mmlextra.ent"> %mmlextra; +]> +<!--############################################################################# + | $Id: mathml.presentation.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: MathML presentation markup. + | Note: these elements are not part of the DocBook DTD. I have extended + | the docbook DTD in order to support this tags, so that's why I have these + | templates here. + | + | MathML namespace used -> mml + + ############################################################################## --> + +<xsl:stylesheet version='1.0' + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns="http://www.w3.org/1998/Math/MathML"> + +<xsl:template match="mml:mrow"> + <xsl:text>{</xsl:text> <xsl:apply-templates/> <xsl:text>}</xsl:text> +</xsl:template> + +<xsl:variable name="latex.entities.xml" select="document('latex.entities.xml')"/> + + +<!-- TOKENS --> +<!-- Math Identifier --> +<xsl:template match="mml:mi"> + <xsl:variable name="fontstyle" select="@fontstyle"/> + <xsl:variable name="identifier" select="normalize-space(.)"/> + <xsl:variable name="equivalent"> + <xsl:if test="string-length($identifier)=1"> + <xsl:value-of select="$latex.entities.xml/latex/character[@entity=$identifier]"/> + </xsl:if> + </xsl:variable> + <xsl:choose> + <xsl:when test="$identifier='ⅇ'"> + <xsl:text>\textrm{e}</xsl:text> + </xsl:when> + <xsl:when test="$identifier='ⅈ'"> + <xsl:text>\textrm{i}</xsl:text> + </xsl:when> + <xsl:when test="$identifier='∞'"><!--/infty infinity --> + <xsl:text>\infty</xsl:text> + </xsl:when> + <!-- currently tries to map single-character identifiers only --> + <xsl:when test="$equivalent!=''"> + <xsl:text>{</xsl:text> + <xsl:copy-of select="$equivalent"/> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:if test="$fontstyle='normal' or string-length($identifier)>1"> + <xsl:text>\textrm</xsl:text> + </xsl:if> + <xsl:text>{</xsl:text> + <xsl:copy-of select="$identifier"/> + <xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- Math Number --> +<xsl:template match="mml:mn"> + <xsl:copy-of select="normalize-space(.)"/> +</xsl:template> + +<!-- Math Phantom --> +<xsl:template match="mml:mphantom"> + <xsl:apply-templates/> +</xsl:template> + +<!-- Empty unless $character is a single character --> +<xsl:template name="generate.equivalent"> + <xsl:param name="arguments" select="0"/> + <xsl:param name="character"/> + <xsl:if test="string-length($character)=1"> + <xsl:choose> + <xsl:when test="$arguments>0"> + <xsl:value-of select="$latex.entities.xml/latex/character[@entity=$character and @arguments=$arguments]"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$latex.entities.xml/latex/character[@entity=$character and @arguments='']"/> + </xsl:otherwise> + </xsl:choose> + </xsl:if> +</xsl:template> + +<!-- Math Operator --> +<xsl:template match="mml:mo"> + <xsl:variable name="operator" select="normalize-space(.)"/> + <xsl:variable name="equivalent"> + <xsl:call-template name="generate.equivalent"> + <xsl:with-param name="character" select="$operator"/> + </xsl:call-template> + </xsl:variable> + <xsl:choose> + <xsl:when test="$operator='⁡'"> + <xsl:text></xsl:text> + </xsl:when> + <xsl:when test="$operator='⁣'"> + <xsl:text>\thinspace</xsl:text> + </xsl:when> + <xsl:when test="$operator='⁢'"> + <xsl:text>\thinspace</xsl:text> + </xsl:when> + <xsl:when test="$operator='∫'"> + <xsl:text>\int</xsl:text> + </xsl:when> + <xsl:when test="$operator='∏'"> + <xsl:text>\prod</xsl:text> + </xsl:when> + <xsl:when test="$operator='∑'"> + <xsl:text>\sum</xsl:text> + </xsl:when> + <xsl:when test="$operator='^'"> + <xsl:text>\sphat</xsl:text> + </xsl:when> + <xsl:when test="$operator='→'"> + <xsl:text>\longrightarrow</xsl:text> + </xsl:when> + <xsl:when test="$operator='∈'"> + <xsl:text>\in</xsl:text> + </xsl:when> + <xsl:when test="$operator='∣'"> + <xsl:text>|</xsl:text> + </xsl:when> + <xsl:when test="$operator='ⅆ'"> + <xsl:text>\textrm{d}</xsl:text> + </xsl:when> + <xsl:when test="$operator='('"> + <xsl:text> {\left( </xsl:text> + </xsl:when> + <xsl:when test="$operator=')'"> + <xsl:text> \right)} </xsl:text> + </xsl:when> + <xsl:when test="$operator='{'"> + <xsl:text> {\left\{ </xsl:text> + </xsl:when> + <xsl:when test="$operator='}'"> + <xsl:text> \right\}} </xsl:text> + </xsl:when> + <xsl:when test="$operator='['"> + <xsl:text> {\left[ </xsl:text> + </xsl:when> + <xsl:when test="$operator=']'"> + <xsl:text> \right]} </xsl:text> + </xsl:when> + <xsl:when test="$operator='max'"> + <xsl:text> \max </xsl:text> + </xsl:when> + <xsl:when test="$operator='min'"> + <xsl:text> \min </xsl:text> + </xsl:when> + <xsl:when test="$operator='+' or $operator='-' or $operator='/' or $operator='*'"> + <xsl:value-of select="$operator"/> + </xsl:when> + <xsl:when test="$equivalent"> + <xsl:value-of select="$equivalent"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>\operatorname{</xsl:text> + <xsl:value-of select="$operator" /> + <xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<!-- Math String --> +<xsl:template match="mml:ms"> + <xsl:text>\textrm{</xsl:text> + <xsl:copy-of select="normalize-space(.)" /> + <xsl:text>}</xsl:text> +</xsl:template> + +<!-- Math Text --> +<xsl:template match="mml:mtext"> + <xsl:message>RCAS mtext, <xsl:copy-of select="."/> </xsl:message> + <xsl:text>\textrm{</xsl:text> + <xsl:copy-of select="." /> + <xsl:text>}</xsl:text> +</xsl:template> + +<!-- Math Space --> +<xsl:template match="mml:mspace"> + <xsl:if test="@width!='' and not(contains(@width,'%'))"> + <xsl:text>\textrm{\hspace{</xsl:text><!-- kludge! --> + <xsl:value-of select="@width"/> + <xsl:text>}}</xsl:text> + </xsl:if> + <xsl:if test="@height!='' or @depth!=''"> + <xsl:message>Warning: mspace support does not include height or depth.</xsl:message> + </xsl:if> +</xsl:template> + + + + + +<xsl:template match="mml:msup"> + <xsl:apply-templates select="*[1]"/> + <xsl:text>^{</xsl:text><xsl:apply-templates select="*[2]"/><xsl:text>}</xsl:text> +</xsl:template> + +<xsl:template match="mml:msub"> + <xsl:apply-templates select="*[1]"/> + <xsl:text>_{</xsl:text><xsl:apply-templates select="*[2]"/><xsl:text>}</xsl:text> +</xsl:template> + +<xsl:template match="mml:msubsup"> +<xsl:choose> + <xsl:when test="name(*[1])='mo'"> + <xsl:apply-templates select="*[1]"/> + <!-- sub --> + <xsl:text>_{</xsl:text><xsl:apply-templates select="*[2]"/><xsl:text>}</xsl:text> + <!-- super --> + <xsl:text>^{</xsl:text><xsl:apply-templates select="*[3]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <!-- base --> + <xsl:text>{</xsl:text><xsl:apply-templates select="*[1]"/><xsl:text>}</xsl:text> + <!-- sub --> + <xsl:text>_{</xsl:text><xsl:apply-templates select="*[2]"/><xsl:text>}</xsl:text> + <!-- super --> + <xsl:text>^{</xsl:text><xsl:apply-templates select="*[3]"/><xsl:text>}</xsl:text> + </xsl:otherwise> +</xsl:choose> +</xsl:template> + +<xsl:template match="mml:mmultiscripts"> +</xsl:template> + +<xsl:template match="mml:munder"> +<!-- +<xsl:choose> + <xsl:when test="*[2] = ̲"> + <xsl:text>\underline{</xsl:text><xsl:apply-templates select="*[1]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:when test="normalize-space(*[2]) = ︸"> + <xsl:text>\underbrace{</xsl:text><xsl:apply-templates select="*[1]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:when test="normalize-space(*[2]) = ⎵"> + <xsl:text>\underbrace{</xsl:text><xsl:apply-templates select="*[1]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\underset{</xsl:text> + <xsl:apply-templates select="*[2]"/> + <xsl:text>}{</xsl:text> + <xsl:apply-templates select="*[1]"/> + <xsl:text>}</xsl:text> +--> + <xsl:text>{</xsl:text> + <xsl:apply-templates select="*[1]"/> + <xsl:text>_{</xsl:text> + <xsl:apply-templates select="*[2]"/> + <xsl:text>}}</xsl:text> +<!-- + </xsl:otherwise> +</xsl:choose> +--> +</xsl:template> +<xsl:template match="mml:mover"> +<!--<xsl:choose> + <xsl:when test="normalize-space(*[2]) = ¯"> + <xsl:text>\overline{</xsl:text><xsl:apply-templates select="*[1]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:when test="normalize-space(*[2]) = ︷"> + <xsl:text>\overbrace{</xsl:text><xsl:apply-templates select="*[1]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:when test="normalize-space(*[2]) = ︵"> + <xsl:text>\widehat{</xsl:text><xsl:apply-templates select="*[1]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:when test="normalize-space(*[2]) = ⎴"> + <xsl:text>\widehat{</xsl:text><xsl:apply-templates select="*[1]"/><xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + </xsl:otherwise> +</xsl:choose>--> + <xsl:choose> + <xsl:when test="@accent='true' or ( local-name(*[2])='mo' and not(@accent='false'))"> + <xsl:variable name="equivalent"> + <xsl:call-template name="generate.equivalent"> + <xsl:with-param name="arguments" select="1"/> + <xsl:with-param name="character" select="normalize-space(*[2])"/> + </xsl:call-template> + </xsl:variable> + <xsl:choose> + <xsl:when test="$equivalent!=''"> + <xsl:text>{</xsl:text> + <xsl:value-of select="$equivalent"/> + <xsl:text>{</xsl:text> + <xsl:apply-templates select="*[1]"/> + <xsl:text>}}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>{</xsl:text> + <xsl:apply-templates select="*[1]"/> + <xsl:text>^{</xsl:text> + <xsl:apply-templates select="*[2]"/> + <xsl:text>}}</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:text>{</xsl:text> + <xsl:apply-templates select="*[1]"/> + <xsl:text>^{</xsl:text> + <xsl:apply-templates select="*[2]"/> + <xsl:text>}}</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + + + +<!-- Math UnderOver --> +<xsl:template match="mml:munderover"> + <xsl:text>{</xsl:text> + <xsl:apply-templates select="*[1]"/> + <xsl:text>_{</xsl:text> + <xsl:apply-templates select="*[2]"/> + <xsl:text>}</xsl:text> + <xsl:text>^{</xsl:text> + <xsl:apply-templates select="*[3]"/> + <xsl:text>}}</xsl:text> + <!-- + <xsl:text>\overset{</xsl:text> + <xsl:apply-templates select="*[3]"/> + <xsl:text>}{\underset{</xsl:text> + <xsl:apply-templates select="*[2]"/> + <xsl:text>}{</xsl:text> + <xsl:apply-templates select="*[1]"/> + <xsl:text>}}</xsl:text> + --> +</xsl:template> + + + +<!-- Math Fenced --> +<xsl:template match="mml:mfenced"> +<!-- get open,close, separators att --> + <xsl:choose> + <xsl:when test="@open='('"> + <xsl:text> {\left( </xsl:text> + </xsl:when> + <xsl:when test="@open='{'"> + <xsl:text> {\left\{ </xsl:text> + </xsl:when> + <xsl:when test="@open='['"> + <xsl:text> {\left[\, </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text> {\left( </xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:apply-templates select="*[1]"/> + <xsl:choose> + <xsl:when test="@close=')'"> + <xsl:text> \right)} </xsl:text> + </xsl:when> + <xsl:when test="@close='}'"> + <xsl:text> \right\}} </xsl:text> + </xsl:when> + <xsl:when test="@close=']'"> + <xsl:text> \,\right]} </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text> \right)} </xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + + + +<!-- Math frac --> +<xsl:template match="mml:mfrac"> +<xsl:choose> +<xsl:when test="@linethickness"> + <xsl:choose> + <xsl:when test="@linethickness='thin'"> + <xsl:text> \frac[1pt]{ </xsl:text> + </xsl:when> + <xsl:when test="@linethickness='medium'"> + <xsl:text> \frac[1.1pt]{ </xsl:text> + </xsl:when> + <xsl:when test="@linethickness='thick'"> + <xsl:text> \frac[1.2pt]{ </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text> \frac[</xsl:text><xsl:value-of select="@linethickness"/><xsl:text>]{ </xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:when> +<xsl:otherwise> + <xsl:text> \frac{ </xsl:text> +</xsl:otherwise> +</xsl:choose> +<!-- <xsl:value-of select="*[1]"/> --> +<xsl:apply-templates select="*[1]"/> +<xsl:text> }{ </xsl:text> +<!-- <xsl:value-of select="*[2]"/> --> +<xsl:apply-templates select="*[2]"/> +<xsl:text> }</xsl:text> +</xsl:template> + + +<!-- Math msqrt --> +<xsl:template match="mml:msqrt"> + <xsl:text> \sqrt{ </xsl:text> + <xsl:apply-templates/> + <xsl:text> }</xsl:text> +</xsl:template> + + +<!-- Math mroot --> +<xsl:template match="mml:mroot"> + <xsl:text> \sqrt[</xsl:text><xsl:apply-templates select="*[1]"/><xsl:text>]{</xsl:text> + <xsl:apply-templates select="*[2]"/><xsl:text> }</xsl:text> +</xsl:template> + + + +<xsl:template name="mtable.format.tabular"> + <xsl:param name="cols" select="1"/> + <xsl:param name="i" select="1"/> + <xsl:choose> + <!-- Out of the recursive iteration --> + <xsl:when test="$i > $cols"></xsl:when> + <!-- There are still columns to count --> + <xsl:otherwise> + <xsl:text>c</xsl:text> + <!-- Recursive for next column --> + <xsl:call-template name="mtable.format.tabular"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + + +<xsl:template match="mml:mtable"> +<xsl:variable name="rows" select="mml:mtr"/> +\begin{array}{<xsl:text></xsl:text> +<xsl:call-template name="mtable.format.tabular"><xsl:with-param name="cols" select="count($rows)"/></xsl:call-template> +<xsl:text>}\hline </xsl:text> + <xsl:apply-templates/> +<xsl:text>\end{array} </xsl:text> +</xsl:template> + +<xsl:template match="mml:mtr"> +<!-- Row starts here --> +<xsl:apply-templates/> +<!-- End Row here --> +</xsl:template> + +<xsl:template match="mml:mtd"> + <xsl:apply-templates/><xsl:text> & </xsl:text> +</xsl:template> + +<xsl:template match="mml:mtd[position()=last()]"> + <xsl:apply-templates/>\\ \hline +</xsl:template> + +<xsl:template match="mml:mtd[position()=last()]"> + <xsl:apply-templates/>\\ \hline +</xsl:template> + +<xsl:template match="mml:mphantom"> + <xsl:apply-templates mode="phantom"/> +</xsl:template> + +<xsl:template match="mml:mi" mode="phantom"> + <xsl:variable name="fontstyle" select="@fontstyle"/> + <xsl:variable name="identifier" select="normalize-space(.)"/> + <xsl:choose> + <xsl:when test="$identifier='ⅇ'"> + <xsl:text>\textrm{e}</xsl:text> + </xsl:when> + <xsl:when test="$identifier='ⅈ'"> + <xsl:text>\textrm{i}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\textrm{</xsl:text> <xsl:copy-of select="$identifier"/> <xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/mediaobject.mod.xsl b/docs/docbook/xslt/db2latex/mediaobject.mod.xsl new file mode 100644 index 0000000000..dc1685b480 --- /dev/null +++ b/docs/docbook/xslt/db2latex/mediaobject.mod.xsl @@ -0,0 +1,227 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: mediaobject.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: Manage Imageobject related tags. ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="mediaobject" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: mediaobject.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>MediaObjects <filename>mediaobject.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + <xsl:template match="videoobject"> + <xsl:apply-templates select="videodata"/> + </xsl:template> + <xsl:template match="audioobject"> + <xsl:apply-templates select="audiodata"/> + </xsl:template> + <xsl:template match="textobject"> + <!-- TODO if mixed in with imageobjects, use subfigure (if appropriate) --> + <xsl:apply-templates/> + </xsl:template> + + + <xsl:template match="mediaobject"> + <xsl:if test="local-name(preceding-sibling::*[1])!='mediaobject'"> + <xsl:text> </xsl:text> + </xsl:if> + <xsl:call-template name="mediacontent"/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="inlinemediaobject"> + <xsl:call-template name="mediacontent"/> + </xsl:template> + + <xsl:template name="mediacontent"> + <xsl:choose> + <xsl:when test="count(imageobject)<1"> + <xsl:apply-templates select="textobject[1]"/> + </xsl:when> + <xsl:when test="$use.role.for.mediaobject='1' and $preferred.mediaobject.role!='' and count(imageobject[@role='$preferred.mediaobject.role'])!=0"> + <xsl:apply-templates select="imageobject[@role=$preferred.mediaobject.role]"/> + </xsl:when> + <xsl:when test="$use.role.for.mediaobject='1' and count(imageobject[@role='latex'])!=0"> + <xsl:apply-templates select="imageobject[@role='latex']"/> + </xsl:when> + <xsl:when test="$use.role.for.mediaobject='1' and count(imageobject[@role='tex'])!=0"> + <xsl:apply-templates select="imageobject[@role='tex']"/> + </xsl:when> + <xsl:when test="$latex.graphics.formats!='' and count(imageobject/imagedata[@format!=''])!=0"> + <!-- this is not really the right method: formats to the left of $latex.graphics.formats + should be given higher 'priority' than those to the right in a command-separated list --> + <xsl:variable name="formats" select="concat(',',$latex.graphics.formats,',')"/> + <xsl:variable name="candidates" select="imageobject/imagedata[contains($formats,concat(',',@format,','))]"/> + <xsl:choose> + <xsl:when test="count($candidates)!=0"> + <xsl:apply-templates select="$candidates[1]"/> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="fallbacks" select="imageobject/imagedata[@format='']"/> + <xsl:choose> + <xsl:when test="count($fallbacks)!=0"> + <xsl:apply-templates select="$fallbacks[1]"/> + </xsl:when> + <xsl:when test="count(textobject)!=0"> + <xsl:apply-templates select="textobject[1]"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="imageobject[1]"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="imageobject[1]"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="imageobject"> + <xsl:apply-templates select="imagedata"/> + </xsl:template> + + + + + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="imagedata" xmlns=""> + <refpurpose>XSL template for images.</refpurpose> + <refdescription> + <para></para> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + <listitem><para>If both <literal>@width</literal> and <literal>@scale</literal> are given but <literal>@scalefit='0'</literal>, whitespace is added to the left and right in order to match the specified width.</para></listitem> + <listitem><para>If <literal>@width</literal> is given and either <literal>@scalefit=1</literal> or no <literal>@scale</literal> is given, then the image is scale to <literal>@width</literal>. Otherwise, <literal>@scale</literal> is used, if it is present.</para></listitem> + <listitem><para>If this is not the only <literal>imagedata</literal> within the figure, this will be rendered as a 'subfigure', including the <literal>caption</literal> of its enclosing <literal>mediaobject</literal>.</para></listitem> + </itemizedlist> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + <xsl:template match="imagedata"> + <xsl:variable name="filename" select="@fileref"/> + <xsl:variable name="ext"> + <xsl:call-template name="filename-extension"> + <xsl:with-param name="filename" select="$filename"/> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="imageobjectscnt" select="count(../../..//imageobject)"/> + <xsl:variable name="width"> + <xsl:choose> + <xsl:when test="contains(@width, '%') and substring-after(@width, '%')=''"> + <xsl:value-of select="number(substring-before(@width, '%')) div 100"/> + <xsl:text>\textwidth</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="@width"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:if test="$width!='' and (@scalefit='0' or count(@scale)>0)"> + <xsl:text>\makebox[</xsl:text><xsl:value-of select='$width' /><xsl:text>]</xsl:text> + </xsl:if> + <xsl:text>{</xsl:text> + <!-- TODO this logic actually needs to make decisions based on the ALLOWED imagedata, + not all the imagedata present in the source file. --> + <xsl:if test="$imageobjectscnt > 1 and $latex.use.subfigure='1' and count(ancestor::figure) > 0"> + <xsl:text>\subfigure[</xsl:text> + <xsl:if test="count(../../..//caption)>1"> + <xsl:value-of select="../../caption"/> + </xsl:if> + <xsl:text>]</xsl:text> + </xsl:if> + <xsl:text>{\includegraphics[</xsl:text> + <xsl:choose> + <xsl:when test="@scale"> + <xsl:text>scale=</xsl:text> + <xsl:value-of select="number(@scale) div 100"/> + </xsl:when> + <xsl:when test="$width!='' and @scalefit='1'"> + <xsl:text>width=</xsl:text><xsl:value-of select="normalize-space($width)"/> + </xsl:when> + <xsl:when test="@depth!='' and @scalefit='1'"> + <xsl:text>height=</xsl:text><xsl:value-of select="normalize-space(@depth)"/> + </xsl:when> + </xsl:choose> + <xsl:choose> + <xsl:when test="@format = 'PRN'"><xsl:text>,angle=270</xsl:text></xsl:when> + </xsl:choose> + <xsl:text>]{</xsl:text> + <xsl:choose><!-- package graphicx and DeclareGraphicExtensions will take care of this --> + <xsl:when test="$ext != ''"> + <xsl:value-of select="$filename"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$filename"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}}}</xsl:text> + </xsl:template> + + + + <xsl:template match="videodata"> + <xsl:variable name="filename"> + <xsl:call-template name="mediaobject.filename"><xsl:with-param name="object" select=".."/> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="alt"> + <xsl:apply-templates select="(../../textobject/phrase)[1]"/> + </xsl:variable> + </xsl:template> + + <xsl:template match="audiodata"> + <xsl:variable name="filename"> + <xsl:call-template name="mediaobject.filename"><xsl:with-param name="object" select=".."/> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="alt"> + <xsl:apply-templates select="(../../textobject/phrase)[1]"/> + </xsl:variable> + </xsl:template> + + + <xsl:template match="caption"> + <xsl:apply-templates/> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/msgset.mod.xsl b/docs/docbook/xslt/db2latex/msgset.mod.xsl new file mode 100644 index 0000000000..aef046f665 --- /dev/null +++ b/docs/docbook/xslt/db2latex/msgset.mod.xsl @@ -0,0 +1,78 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + <!--############################################################################# + | $Id: msgset.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: + + ############################################################################## --> + + + <xsl:template match="msgset"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="msgentry"> + <xsl:call-template name="block.object"/> + </xsl:template> + + <xsl:template match="simplemsgentry"> + <xsl:call-template name="block.object"/> + </xsl:template> + + <xsl:template match="msg"> + <xsl:call-template name="block.object"/> + </xsl:template> + + <xsl:template match="msgmain"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="msgmain/title"> + <b><xsl:apply-templates/></b> + </xsl:template> + + <xsl:template match="msgsub"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="msgsub/title"> + <b><xsl:apply-templates/></b> + </xsl:template> + + <xsl:template match="msgrel"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="msgrel/title"> + <b><xsl:apply-templates/></b> + </xsl:template> + + <xsl:template match="msgtext"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="msginfo"> + <xsl:call-template name="block.object"/> + </xsl:template> + + <xsl:template match="msglevel|msgorig|msgaud"> + <p> + <b> + <xsl:call-template name="gentext.element.name"/> + <xsl:text>: </xsl:text> + </b> + <xsl:apply-templates/> + </p> + </xsl:template> + + <xsl:template match="msgexplan"> + <xsl:call-template name="block.object"/> + </xsl:template> + + <xsl:template match="msgexplan/title"> + <xsl:apply-templates/> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/normalize-scape.mod.xsl b/docs/docbook/xslt/db2latex/normalize-scape.mod.xsl new file mode 100644 index 0000000000..15e2e94e25 --- /dev/null +++ b/docs/docbook/xslt/db2latex/normalize-scape.mod.xsl @@ -0,0 +1,401 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: normalize-scape.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: +| Escape LaTeX and normalize-space templates. +| < > # $ % & ~ _ ^ \ { } ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="normalize-scape" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: normalize-scape.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright><year>2000</year><year>2001</year><year>2002</year><year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Normalize and Scape strings.</title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template name="normalize-scape" xmlns=""> + <refpurpose> Abstract XSL template. </refpurpose> + <refdescription> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="text()"> + <xsl:call-template name="trim-outer"> + <xsl:with-param name="string"> + <xsl:choose> + <xsl:when test="ancestor::literal|ancestor::email|ancestor::sgmltag"> + <xsl:call-template name="scape-verbatim"> + <xsl:with-param name="string" select="."/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="scape"> + <xsl:with-param name="string" select="."/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template match="text()" mode="xref.text"> + <xsl:call-template name="trim-outer"> + <xsl:with-param name="string"> + <xsl:call-template name="scape"> + <xsl:with-param name="string" select="."/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template match="text()" mode="xref-to"> + <xsl:call-template name="trim-outer"> + <xsl:with-param name="string"> + <xsl:call-template name="scape"> + <xsl:with-param name="string" select="."/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template match="text()" mode="latex.verbatim"> + <!-- + <xsl:call-template name="trim-outer"> + <xsl:with-param name="string"> + --> + <xsl:value-of select="."/> + <!-- + </xsl:with-param> + </xsl:call-template> + --> + </xsl:template> + + <!-- this template is noly used by xref.mod.xsl and only when + $latex.hyphenation.tttricks != 1. --> + <xsl:template match="text()" mode="slash.hyphen"> + <xsl:call-template name="trim-outer"> + <xsl:with-param name="string"> + <xsl:call-template name="scape.slash.hyphen"> + <xsl:with-param name="string" select="." /> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template name="trim-outer"> + <xsl:param name="string"/> + <xsl:variable name="trimleft" select="position()=1"/> + <xsl:variable name="trimright" select="position()=last()"/> + <xsl:choose> + <xsl:when test="$trimleft and not($trimright)"> + <xsl:value-of select="substring-before(normalize-space(concat($string,'$$')),'$$')"/> + </xsl:when> + <xsl:when test="$trimright and not($trimleft)"> + <xsl:value-of select="substring-after(normalize-space(concat('$$',$string)),'$$')"/> + </xsl:when> + <xsl:when test="$trimleft and $trimright"> + <xsl:value-of select="normalize-space($string)"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$string"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template name="scape.slash.hyphen"> + <xsl:param name="string" /> + <xsl:choose> + <xsl:when test="contains($string,'://')"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">/\-</xsl:with-param> + <xsl:with-param name="from">/</xsl:with-param> + <xsl:with-param name="string"> + <xsl:value-of select="substring-before($string,'://')"/> + <xsl:value-of select="'://'"/> + <xsl:call-template name="scape"> + <xsl:with-param name="string" select="substring-after($string,'://')"/> + </xsl:call-template></xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">/\-</xsl:with-param> + <xsl:with-param name="from">/</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="scape"> + <xsl:with-param name="string" select="$string"/> + </xsl:call-template></xsl:with-param> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template name="normalize-scape" > + <xsl:param name="string"/> + <xsl:variable name="result"> + <xsl:call-template name="scape"><xsl:with-param name="string" select="$string"/></xsl:call-template> + </xsl:variable> + <xsl:value-of select="normalize-space($result)"/> + </xsl:template> + + + <xsl:template name="scape" > + <xsl:param name="string"/> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\textless{}</xsl:with-param> + <xsl:with-param name="from"><</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\textgreater{}</xsl:with-param> + <xsl:with-param name="from">></xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\textasciitilde{}</xsl:with-param> + <xsl:with-param name="from">~</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\^{}</xsl:with-param> + <xsl:with-param name="from">^</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\&</xsl:with-param> + <xsl:with-param name="from">&</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\#</xsl:with-param> + <xsl:with-param name="from">#</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\_</xsl:with-param> + <xsl:with-param name="from">_</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\$</xsl:with-param> + <xsl:with-param name="from">$</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\%</xsl:with-param> + <xsl:with-param name="from">%</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\{</xsl:with-param> + <xsl:with-param name="from">{</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\}</xsl:with-param> + <xsl:with-param name="from">}</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\textbackslash \ </xsl:with-param> + <xsl:with-param name="from">\textbackslash </xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\textbackslash </xsl:with-param> + <xsl:with-param name="from">\</xsl:with-param> + <xsl:with-param name="string" select="$string"></xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template name="scape-verbatim" > + <xsl:param name="string"/> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\textasciitilde{}</xsl:with-param> + <xsl:with-param name="from">~</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\^{}</xsl:with-param> + <xsl:with-param name="from">^</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\&</xsl:with-param> + <xsl:with-param name="from">&</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\#</xsl:with-param> + <xsl:with-param name="from">#</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\_</xsl:with-param> + <xsl:with-param name="from">_</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\$</xsl:with-param> + <xsl:with-param name="from">$</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\%</xsl:with-param> + <xsl:with-param name="from">%</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\docbooktolatexgobble\string\{</xsl:with-param> + <xsl:with-param name="from">{</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\docbooktolatexgobble\string\}</xsl:with-param> + <xsl:with-param name="from">}</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\docbooktolatexgobble\string\\</xsl:with-param> + <xsl:with-param name="from">\</xsl:with-param> + <xsl:with-param name="string" select="$string"/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template></xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template name="scape-href" > + <xsl:param name="string"/> + <!-- maybe we should warn when there are invalid characters --> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\&</xsl:with-param> + <xsl:with-param name="from">&</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\%</xsl:with-param> + <xsl:with-param name="from">%</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\{</xsl:with-param> + <xsl:with-param name="from">{</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\{</xsl:with-param> + <xsl:with-param name="from">{</xsl:with-param> + <xsl:with-param name="string"> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">\docbooktolatexgobble\string\\</xsl:with-param> + <xsl:with-param name="from">\</xsl:with-param> + <xsl:with-param name="string" select="$string"/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:template> + + <doc:template name="scape-optionalarg" xmlns=""> + <refpurpose> Escape the ] character in LaTeX optional arguments (experimental) </refpurpose> + <refdescription> + </refdescription> + </doc:template> + <xsl:template name="scape-optionalarg" > + <xsl:param name="string"/> + <xsl:call-template name="string-replace"> + <xsl:with-param name="to">{\rbrack}</xsl:with-param> + <xsl:with-param name="from">]</xsl:with-param> + <xsl:with-param name="string" select="$string"/> + </xsl:call-template> + </xsl:template> + + + + + <xsl:template name="string-replace"> + <xsl:param name="string"/> + <xsl:param name="from"/> + <xsl:param name="to"/> + + <xsl:choose> + <xsl:when test="contains($string, $from)"> + + <xsl:variable name="before" select="substring-before($string, $from)"/> + <xsl:variable name="after" select="substring-after($string, $from)"/> + <xsl:variable name="prefix" select="concat($before, $to)"/> + + <xsl:value-of select="$before"/> + <xsl:value-of select="$to"/> + <xsl:call-template name="string-replace"> + <xsl:with-param name="string" select="$after"/> + <xsl:with-param name="from" select="$from"/> + <xsl:with-param name="to" select="$to"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$string"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + <!-- + (c) David Carlisle + replace all occurences of the character(s) `from' + by the string `to' in the string `string'. + <xsl:template name="string-replace" > + <xsl:param name="string"/> + <xsl:param name="from"/> + <xsl:param name="to"/> + <xsl:choose> + <xsl:when test="contains($string,$from)"> + <xsl:value-of select="substring-before($string,$from)"/> + <xsl:value-of select="$to"/> + <xsl:call-template name="string-replace"> + <xsl:with-param name="string" select="substring-after($string,$from)"/> + <xsl:with-param name="from" select="$from"/> + <xsl:with-param name="to" select="$to"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$string"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + --> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/para.mod.xsl b/docs/docbook/xslt/db2latex/para.mod.xsl new file mode 100644 index 0000000000..64d6d8f01d --- /dev/null +++ b/docs/docbook/xslt/db2latex/para.mod.xsl @@ -0,0 +1,74 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: para.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="para" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: para.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Paragraphs <filename>para.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <xsl:template match="para"> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="simpara"> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="formalpara"> + <xsl:text> \textbf{</xsl:text> + <xsl:call-template name="normalize-scape"><xsl:with-param name="string" select="title"/></xsl:call-template> + <xsl:text>} </xsl:text> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="formalpara/title"/> + + <!--========================================================================== + | Especial Cases Do not add Linefeed + +============================================================================--> + + <xsl:template match="textobject/para"> <xsl:apply-templates/> </xsl:template> + <xsl:template match="step/para"> <xsl:apply-templates/> </xsl:template> + <xsl:template match="entry/para"> <xsl:apply-templates/> </xsl:template> + <xsl:template match="question/para"> <xsl:apply-templates/> </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/part-chap-app.mod.xsl b/docs/docbook/xslt/db2latex/part-chap-app.mod.xsl new file mode 100644 index 0000000000..376b2b82e6 --- /dev/null +++ b/docs/docbook/xslt/db2latex/part-chap-app.mod.xsl @@ -0,0 +1,139 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: part-chap-app.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: Part ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="part-chap-app" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: part-chap-app.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Parts, Chapters and Appendixes <filename>part-chap-app.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + + + <xsl:template match="part"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="part/docinfo"/> + <xsl:template match="part/title"/> + <xsl:template match="part/subtitle"/> + <xsl:template match="partintro"/> + <xsl:template match="partintro/title"/> + <xsl:template match="partintro/subtitle"/> + <xsl:template match="partintro/titleabbrev"/> + + + <!--############################################################################# + | $Id: part-chap-app.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: Chapter + + ############################################################################## --> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="chapter" xmlns=""> + <refpurpose> XSL template for Chapters.</refpurpose> + <refdescription> + <para> This is the main entry point for a <sgmltag class="start">chapter</sgmltag> subtree. + This template processes any chapter. Outputs <literal>\chapter{title}</literal>, calls + templates and apply-templates. Since chapters only apply in books, + some assumptions could be done in order to optimize the stylesheet behaviour.</para> + + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + <listitem><para> + EMPTY templates: chapter/title, + chapter/titleabbrev, + chapter/subtitle, + chapter/docinfo|chapterinfo.</para></listitem> + </itemizedlist> + </formalpara> + + <formalpara><title>Affected by</title> map. + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="chapter"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + <xsl:call-template name="map.end"/> + </xsl:template> + + <xsl:template match="chapter/title"/> + <xsl:template match="chapter/titleabbrev"/> + <xsl:template match="chapter/subtitle"/> + <xsl:template match="chapter/docinfo|chapterinfo"/> + + + <!--############################################################################# + | $Id: part-chap-app.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: + + ############################################################################## --> + + <xsl:template match="appendix"> + <xsl:if test="not (preceding-sibling::appendix)"> + <xsl:text> </xsl:text> + <xsl:choose> + <xsl:when test="local-name(..)='book' or local-name(..)='part'"> + <xsl:text>\newcommand{\dbappendix}[1]{\chapter{#1}}% </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\newcommand{\dbappendix}[1]{\section{#1}}% </xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword">appendixes</xsl:with-param> + </xsl:call-template> + </xsl:if> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + <xsl:call-template name="map.end"/> + </xsl:template> + + + <xsl:template match="appendix/title"/> + <xsl:template match="appendix/titleabbrev"/> + <xsl:template match="appendix/subtitle"/> + <xsl:template match="appendix/docinfo|appendixinfo"/> +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/pi.mod.xsl b/docs/docbook/xslt/db2latex/pi.mod.xsl new file mode 100644 index 0000000000..fe84aa446e --- /dev/null +++ b/docs/docbook/xslt/db2latex/pi.mod.xsl @@ -0,0 +1,184 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: pi.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="abstract" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: pi.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year><year>2002</year><year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Processing Instructions</title> + + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + <doc:template match="processing-instruction()" xmlns=""> + <refpurpose> Processing Instruction XSL template. </refpurpose> + <refdescription> + </refdescription> + </doc:template> + + + <xsl:template match="processing-instruction()"> + </xsl:template> + + <xsl:template match="processing-instruction('rcas')"> + <xsl:processing-instruction name="dbhtml"> + <xsl:value-of select="."/> + </xsl:processing-instruction> + </xsl:template> + + <xsl:template match="processing-instruction('db2latex')"> + </xsl:template> + + + + + <xsl:template name="process.cmdsynopsis.list"> + <xsl:param name="cmdsynopses"/><!-- empty node list by default --> + <xsl:param name="count" select="1"/> + + <xsl:choose> + <xsl:when test="$count>count($cmdsynopses)"></xsl:when> + <xsl:otherwise> + <xsl:variable name="cmdsyn" select="$cmdsynopses[$count]"/> + + <dt> + <a> + <xsl:attribute name="href"> + <xsl:call-template name="label.id"> + <xsl:with-param name="object" select="$cmdsyn"/> + </xsl:call-template> + </xsl:attribute> + + <xsl:choose> + <xsl:when test="$cmdsyn/@xreflabel"> + <xsl:call-template name="xref.xreflabel"> + <xsl:with-param name="target" select="$cmdsyn"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <!-- RCAS Fixme + <xsl:call-template name="xref.cmdsynopsis"> + <xsl:with-param name="target" select="$cmdsyn"/> + </xsl:call-template>--> + </xsl:otherwise> + </xsl:choose> + </a> + </dt> + + <xsl:call-template name="process.cmdsynopsis.list"> + <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/> + <xsl:with-param name="count" select="$count+1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="processing-instruction('dbcmdlist')"> + <xsl:variable name="cmdsynopses" select="..//cmdsynopsis"/> + + <xsl:if test="count($cmdsynopses)<1"> + <xsl:message><xsl:text>No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep?</xsl:text> + </xsl:message> + </xsl:if> + + <dl> + <xsl:call-template name="process.cmdsynopsis.list"> + <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/> + </xsl:call-template> + </dl> + </xsl:template> + + <!-- ==================================================================== --> + + <xsl:template name="process.funcsynopsis.list"> + <xsl:param name="funcsynopses"/><!-- empty node list by default --> + <xsl:param name="count" select="1"/> + + <xsl:choose> + <xsl:when test="$count>count($funcsynopses)"></xsl:when> + <xsl:otherwise> + <xsl:variable name="cmdsyn" select="$funcsynopses[$count]"/> + + <dt> + <a> + <xsl:attribute name="href"> + <xsl:call-template name="label.id"> + <xsl:with-param name="object" select="$cmdsyn"/> + </xsl:call-template> + </xsl:attribute> + + <xsl:choose> + <xsl:when test="$cmdsyn/@xreflabel"> + <xsl:call-template name="xref.xreflabel"> + <xsl:with-param name="target" select="$cmdsyn"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <!-- RCAS Fixme + <xsl:call-template name="xref.funcsynopsis"> + <xsl:with-param name="target" select="$cmdsyn"/> + </xsl:call-template> + --> + </xsl:otherwise> + </xsl:choose> + </a> + </dt> + + <xsl:call-template name="process.funcsynopsis.list"> + <xsl:with-param name="funcsynopses" select="$funcsynopses"/> + <xsl:with-param name="count" select="$count+1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="processing-instruction('dbfunclist')"> + <xsl:variable name="funcsynopses" select="..//funcsynopsis"/> + + <xsl:if test="count($funcsynopses)<1"> + <xsl:message><xsl:text>No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep?</xsl:text> + </xsl:message> + </xsl:if> + + <dl> + <xsl:call-template name="process.funcsynopsis.list"> + <xsl:with-param name="funcsynopses" select="$funcsynopses"/> + </xsl:call-template> + </dl> + </xsl:template> + + <!-- ==================================================================== --> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/preamble.mod.xsl b/docs/docbook/xslt/db2latex/preamble.mod.xsl new file mode 100644 index 0000000000..3e66f33c16 --- /dev/null +++ b/docs/docbook/xslt/db2latex/preamble.mod.xsl @@ -0,0 +1,813 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: preamble.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: Variables and templates to manage LaTeX preamble. ++ ############################################################################## --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <doc:reference id="preamble" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: preamble.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright><year>2000</year><year>2001</year><year>2002</year><year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Variables and Templates used in LaTeX Preamble Generation</title> + + <partintro> + <section><title>Introduction</title> + <para> This section described the variables and templates that are used in the generation of + the outtput LaTeX preamble. Basically, the LaTeX preamble depends on the XML document, that is, + on whether it is an article or a book.</para> + </section> + + <section><title>Flow</title> + <section><title>Articles</title> + <para></para> + </section> + <section><title>Books</title> + <para></para> + </section> + </section> + </partintro> + </doc:reference> + + + + <!--############################################################################# + | generate.latex.article.preamble and generate.latex.book.preamble + |- ############################################################################# + | Top-level named templates. + | LaTeX Preamble. + | + + ############################################################################## --> + + <!-- DOCUMENTATION --> + <doc:template name="generate.latex.article.preamble" xmlns=""> + <refpurpose> Top level template, called by article template, + responsible of generating the LaTeX preamble according to user + XSL variables and templates. + </refpurpose> + <refdescription> + <formalpara><title>Overview</title> + If the xsl:variable <literal>latex.override</literal> + is empty, the template outputs <literal>latex.article.preamblestart</literal> + and calls <literal>generate.latex.common.preamble</literal>. Otherwise, + it outputs the value of <literal>latex.override</literal> and + exists. + </formalpara> + </refdescription> + <refauthor>Ramon Casellas <email>casellas@aist.enst.fr</email></refauthor> + </doc:template> + + <!-- TEMPLATE --> + <xsl:template name="generate.latex.article.preamble"> + <xsl:choose> + <xsl:when test="$latex.override = ''"> + <xsl:value-of select="$latex.article.preamblestart"/> + <xsl:value-of select="$latex.article.preamble.pre"/> + <xsl:call-template name="label.id"/> + <xsl:call-template name="generate.latex.common.preamble"/> + <xsl:call-template name="generate.latex.essential.preamble"/> + <xsl:value-of select="$latex.article.preamble.post"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$latex.override"/> + <xsl:call-template name="generate.latex.essential.preamble"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <!-- DOCUMENTATION --> + <doc:template name="generate.latex.book.preamble" xmlns=""> + <refpurpose> Top level template, called by book template, + responsible of generating the LaTeX preamble according to user + XSL variables and templates. + </refpurpose> + <refdescription> + <formalpara><title>Overview</title> + If the xsl:variable <literal>latex.override</literal> + is empty, the template outputs <literal>latex.book.preamblestart</literal> + and calls <literal>generate.latex.common.preamble</literal>. Otherwise, + it outputs the value of <literal>latex.override</literal> and + exists. + </formalpara> + </refdescription> + <refauthor>Ramon Casellas <email>casellas@aist.enst.fr</email></refauthor> + </doc:template> + + <!-- TEMPLATE --> + <xsl:template name="generate.latex.book.preamble"> + <xsl:choose> + <xsl:when test="$latex.override = ''"> + <xsl:value-of select="$latex.book.preamblestart"/> + <xsl:value-of select="$latex.book.preamble.pre"/> + <xsl:call-template name="label.id"/> + <xsl:call-template name="generate.latex.common.preamble"/> + <xsl:call-template name="generate.latex.essential.preamble"/> + <xsl:value-of select="$latex.book.preamble.post"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$latex.override"/> + <xsl:call-template name="generate.latex.essential.preamble"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + + + <!--############################################################################# + | latex.article.preamblestart and latex.book.preamblestart + |- ############################################################################# + | + + ############################################################################## --> + + <doc:variable name="latex.article.preamblestart" xmlns=""> + <refpurpose> Generated Document class for articles. </refpurpose> + <refdescription> + </refdescription> + <refreturn> + <screen> + % -------------------------------------------- + % Autogenerated LaTeX file for articles + % -------------------------------------------- + \ifx\pdfoutput\undefined + \documentclass[spanish,french,english,a4paper,10pt,twoside,twocolumn]{article} + \else + \documentclass[pdftex,spanish,french,english,a4paper,10pt,twoside,twocolumn]{article} + \fi + </screen> + </refreturn> + </doc:variable> + + <xsl:variable name="latex.article.preamblestart"> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% Autogenerated LaTeX file for articles </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\ifx\pdfoutput\undefined </xsl:text> + <xsl:text>\documentclass[</xsl:text> + <xsl:value-of select='$latex.documentclass.common' /> + <xsl:text>,</xsl:text> + <xsl:value-of select='$latex.documentclass.article' /> + <xsl:text>,</xsl:text> + <xsl:value-of select='$latex.documentclass.pdftex' /> + <xsl:text>]{</xsl:text> + <xsl:choose> + <xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass" /></xsl:when> + <xsl:otherwise><xsl:text>article</xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:text>} </xsl:text> + <xsl:text>\else </xsl:text> + <xsl:text>\documentclass[pdftex,</xsl:text> + <xsl:value-of select='$latex.documentclass.common' /> + <xsl:text>,</xsl:text> + <xsl:value-of select='$latex.documentclass.article' /> + <xsl:text>,</xsl:text> + <xsl:value-of select='$latex.documentclass.dvips' /> + <xsl:text>]{</xsl:text> + <xsl:choose> + <xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass" /></xsl:when> + <xsl:otherwise><xsl:text>article</xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:text>} </xsl:text> + <xsl:text>\fi </xsl:text> + </xsl:variable> + + <doc:variable name="latex.book.preamblestart" xmlns=""> + <refpurpose>Generated Document class for books. </refpurpose> + <refdescription> + </refdescription> + <refreturn> + <screen> + % ------------------------------------------------------------ + % Autogenerated LaTeX file for books + % ------------------------------------------------------------ + \ifx\pdfoutput\undefined + \documentclass[spanish,french,english,a4paper,twoside,openright,10pt,final]{report} + \else + \documentclass[pdftex,spanish,french,english,a4paper,twoside,openright,10pt,final]{report} + \fi + </screen> + </refreturn> + </doc:variable> + + <xsl:variable name="latex.book.preamblestart"> + <xsl:text>% ------------------------------------------------------------ </xsl:text> + <xsl:text>% Autogenerated LaTeX file for books </xsl:text> + <xsl:text>% ------------------------------------------------------------ </xsl:text> + <xsl:text>\ifx\pdfoutput\undefined </xsl:text> + <xsl:text>\documentclass[</xsl:text> + <xsl:value-of select='$latex.documentclass.common' /> + <xsl:text>,</xsl:text> + <xsl:value-of select='$latex.documentclass.book' /> + <xsl:text>,</xsl:text> + <xsl:value-of select='$latex.documentclass.pdftex' /> + <xsl:text>]{</xsl:text> + <xsl:choose> + <xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass" /></xsl:when> + <xsl:otherwise><xsl:text>report</xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:text>} </xsl:text> + <xsl:text>\else </xsl:text> + <xsl:text>\documentclass[pdftex,</xsl:text> + <xsl:value-of select='$latex.documentclass.common' /> + <xsl:text>,</xsl:text> + <xsl:value-of select='$latex.documentclass.book' /> + <xsl:text>,</xsl:text> + <xsl:value-of select='$latex.documentclass.dvips' /> + <xsl:text>]{</xsl:text> + <xsl:choose> + <xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass" /></xsl:when> + <xsl:otherwise><xsl:text>report</xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:text>} </xsl:text> + <xsl:text>\fi </xsl:text> + </xsl:variable> + + <!--############################################################################# + | generate.latex.common.preamble + |- ############################################################################# + | + + ############################################################################## --> + + <doc:variable name="generate.latex.common.preamble" xmlns=""> + <refpurpose> Common LaTeX preamble shared by articles and books, and other + document classes. Most of the packages and package options are managed here </refpurpose> + <refdescription> + </refdescription> + <refreturn> + The LaTeX preamble, after the document class and before the <literal>\begin{document}</literal> + command. + </refreturn> + </doc:variable> + + + + <xsl:template name="generate.latex.common.preamble"> + <xsl:choose> + <xsl:when test="$latex.pdf.support=1"><xsl:value-of select="$latex.pdf.preamble"/></xsl:when> + <xsl:otherwise><xsl:text>\usepackage{graphicx} </xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:if test="local-name(.)='article'"> + <xsl:value-of select="$latex.article.varsets"/> + </xsl:if> + <xsl:if test="local-name(.)='book'"> + <xsl:value-of select="$latex.book.varsets"/> + </xsl:if> + <xsl:if test="$latex.use.fancyhdr=1"> + <xsl:text>\usepackage{fancyhdr} </xsl:text> + <xsl:call-template name="generate.latex.pagestyle"/> + <!-- + Add dollar... + <xsl:if test="latex.fancyhdr.lh !=''"><xsl:text>\lhead{</xsl:text><xsl:value-of select="$latex.fancyhdr.lh"/><xsl:text>} </xsl:text></xsl:if> + <xsl:if test="latex.fancyhdr.ch !=''"><xsl:text>\chead{</xsl:text><xsl:value-of select="$latex.fancyhdr.ch"/><xsl:text>} </xsl:text></xsl:if> + <xsl:if test="latex.fancyhdr.rh !=''"><xsl:text>\rhead{</xsl:text><xsl:value-of select="$latex.fancyhdr.rh"/><xsl:text>} </xsl:text></xsl:if> + <xsl:if test="latex.fancyhdr.lf !=''"><xsl:text>\lfoot{</xsl:text><xsl:value-of select="$latex.fancyhdr.lf"/><xsl:text>} </xsl:text></xsl:if> + <xsl:if test="latex.fancyhdr.cf !=''"><xsl:text>\cfoot{</xsl:text><xsl:value-of select="$latex.fancyhdr.cf"/><xsl:text>} </xsl:text></xsl:if> + <xsl:if test="latex.fancyhdr.rf !=''"><xsl:text>\rfoot{</xsl:text><xsl:value-of select="$latex.fancyhdr.rf"/><xsl:text>} </xsl:text></xsl:if> + --> + + <xsl:text>\renewcommand{\headrulewidth}{0.4pt} </xsl:text> + <xsl:text>\renewcommand{\footrulewidth}{0.4pt} </xsl:text> + </xsl:if> + + <xsl:text>% ---------------------- </xsl:text> + <xsl:text>% Most Common Packages </xsl:text> + <xsl:text>% ---------------------- </xsl:text> + <xsl:if test="$latex.use.makeidx=1"><xsl:text>\usepackage{makeidx} </xsl:text></xsl:if> + <xsl:text>\usepackage{varioref} </xsl:text> + <xsl:text>\usepackage{latexsym} </xsl:text> + <xsl:text>\usepackage{enumerate} </xsl:text> + <xsl:if test="$latex.use.fancybox=1"> + <!-- must be before \usepackage{fancyvrb} --> + <xsl:text>\usepackage{fancybox} </xsl:text> + </xsl:if> + <xsl:text>\usepackage{float} </xsl:text> + <xsl:text>\usepackage{ragged2e} </xsl:text> + <xsl:if test="$latex.babel.language!=''"> + <xsl:text>\usepackage[</xsl:text><xsl:value-of select="$latex.babel.language" /><xsl:text>]{babel} </xsl:text> + </xsl:if> + <xsl:if test="$latex.use.fancyvrb=1"> + <!-- must be after \usepackage{fancybox} --> + <xsl:text>\usepackage{fancyvrb} </xsl:text> + <xsl:text>\makeatletter\@namedef{FV@fontfamily@default}{\def\FV@FontScanPrep{}\def\FV@FontFamily{}}\makeatother </xsl:text> + <xsl:if test="$latex.fancyvrb.tabsize!=''"> + <xsl:text>\fvset{obeytabs=true,tabsize=</xsl:text> + <xsl:value-of select="$latex.fancyvrb.tabsize"/> + <xsl:text>} </xsl:text> + </xsl:if> + </xsl:if> + <xsl:if test="$latex.use.isolatin1=1"><xsl:text>\usepackage{isolatin1} </xsl:text></xsl:if> + <xsl:if test="$latex.use.parskip=1"><xsl:text>\usepackage{parskip} </xsl:text></xsl:if> + <xsl:if test="$latex.use.rotating=1"><xsl:text>\usepackage{rotating} </xsl:text></xsl:if> + <xsl:if test="$latex.use.subfigure=1"><xsl:text>\usepackage{subfigure} </xsl:text></xsl:if> + <xsl:if test="$latex.use.tabularx=1"><xsl:text>\usepackage{tabularx} </xsl:text></xsl:if> + <xsl:if test="$latex.use.umoline=1"><xsl:text>\usepackage{umoline} </xsl:text></xsl:if> + <xsl:if test="$latex.use.url=1"><xsl:text>\usepackage{url} </xsl:text></xsl:if> + + <!-- Configure document font. --> + <xsl:if test="$latex.document.font != 'default'"> + <xsl:text>% --------------- </xsl:text> + <xsl:text>% Document Font </xsl:text> + <xsl:text>% --------------- </xsl:text> + <xsl:text>\usepackage{</xsl:text><xsl:value-of select="$latex.document.font"/><xsl:text>} </xsl:text> + </xsl:if> + <!-- Support for keywords. --> + <xsl:text> \def\keywords{\vspace{-.3em} </xsl:text> + <xsl:text> \if@twocolumn </xsl:text> + <xsl:text> \small{\itshape </xsl:text> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">keywords</xsl:with-param> + </xsl:call-template> + <xsl:text> }\/\bfseries---$\!$% </xsl:text> + <xsl:text> \else </xsl:text> + <xsl:text> \begin{center}\small\bfseries </xsl:text> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">keywords</xsl:with-param> + </xsl:call-template> + <xsl:text> \end{center}\quotation\small </xsl:text> + <xsl:text> \fi} </xsl:text> + <xsl:text> \def\endkeywords{\vspace{0.6em}\par\if@twocolumn\else\endquotation\fi </xsl:text> + <xsl:text> \normalsize\rmfamily} </xsl:text> + + <xsl:if test="$latex.math.support=1"><xsl:value-of select="$latex.math.preamble"/></xsl:if> + <xsl:if test="$latex.use.hyperref=1"> + <xsl:call-template name="latex.hyperref.preamble"/> + </xsl:if> + <xsl:value-of select="$latex.admonition.environment"/> + <xsl:call-template name="latex.float.preamble"/> + <xsl:call-template name="latex.graphicext"/> + <xsl:choose> + <xsl:when test='$latex.caption.swapskip=1'> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% $latex.caption.swapskip enabled for $formal.title.placement support </xsl:text> + <xsl:text>\newlength{\docbooktolatextempskip} </xsl:text> + <xsl:text>\newcommand{\captionswapskip}{\setlength{\docbooktolatextempskip}{\abovecaptionskip}</xsl:text> + <xsl:text>\setlength{\abovecaptionskip}{\belowcaptionskip}</xsl:text> + <xsl:text>\setlength{\belowcaptionskip}{\docbooktolatextempskip}} </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\newcommand{\captionswapskip}{} </xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:if test='$latex.hyphenation.tttricks=1'> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% Better linebreaks </xsl:text> + <xsl:text>\newcommand{\docbookhyphenatedot}[1]{{\hyphenchar\font=`\.\relax #1\hyphenchar\font=`\-}} </xsl:text> + <xsl:text>\newcommand{\docbookhyphenatefilename}[1]{{\hyphenchar\font=`\.\relax #1\hyphenchar\font=`\-}} </xsl:text> + <xsl:text>\newcommand{\docbookhyphenateurl}[1]{{\hyphenchar\font=`\/\relax #1\hyphenchar\font=`\-}} </xsl:text> + </xsl:if> + </xsl:template> + + <doc:variable name="generate.latex.essential.preamble" xmlns=""> + <refpurpose> Unavoidable LaTeX preamble shared by articles and books </refpurpose> + <refdescription> + <para>Contains custom commands <emphasis>that you just can't get rid of!</emphasis></para> + </refdescription> + </doc:variable> + <xsl:template name="generate.latex.essential.preamble"> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\makeatletter </xsl:text> + <xsl:if test="$latex.use.hyperref!='1'"> + <xsl:text>\newcommand{\href}[1]{{}} </xsl:text> + <xsl:text>\newcommand{\hyperlink}[1]{{}} </xsl:text> + <xsl:text>\newcommand{\hypertarget}[2]{#2} </xsl:text> + </xsl:if> + <xsl:if test="$latex.use.ucs='1'"> + <xsl:text>\usepackage[</xsl:text> + <xsl:value-of select="$latex.ucs.options"/> + <xsl:text>]{ucs} </xsl:text> + </xsl:if> + <xsl:if test="$latex.entities='catcode'"> + <xsl:text>\catcode`\&=\active\def&{\@ifnextchar##{\@docbooktolatexunicode\@gobble}{\&}} </xsl:text> + <xsl:if test="$latex.use.ucs!='1'"> + <xsl:text><![CDATA[ +% A few example Unicode characters. +% For full support, use the unicode pacakge from Dominique Unruh/CTAN. +\newcommand{\unichar}[1]{% + \ifnum#1=8212---% + \else\&\##1;\fi% +} +]]></xsl:text> + </xsl:if> + <xsl:text>\def\@docbooktolatexunicode#1;{\edef\@dbtemp{#1}\unichar{\@dbtemp}} </xsl:text> + </xsl:if> + <xsl:if test="$latex.entities='unicode'"> + <xsl:text>\usepackage[utf8]{inputenc} </xsl:text> + </xsl:if> + <xsl:text><![CDATA[ +\def\docbooktolatexgobble{\expandafter\@gobble} +% Facilitate use of \cite with \label +\newcommand{\docbooktolatexbibaux}[2]{% + \protected@write\@auxout{}{\string\global\string\@namedef{docbooktolatexcite@#1}{#2}} +} +\newcommand{\docbooktolatexcite}[2]{% + \@ifundefined{docbooktolatexcite@#1}% + {\cite{#1}}% + {\def\@docbooktolatextemp{#2}\ifx\@docbooktolatextemp\@empty% + \cite{\@nameuse{docbooktolatexcite@#1}}% + \else\cite[#2]{\@nameuse{docbooktolatexcite@#1}}% + \fi% + }% +} +\newcommand{\docbooktolatexbackcite}[1]{% + \ifx\Hy@backout\@undefined\else% + \@ifundefined{docbooktolatexcite@#1}{% + % emit warning? + }{% + \ifBR@verbose% + \PackageInfo{backref}{back cite \string`#1\string' as \string`\@nameuse{docbooktolatexcite@#1}\string'}% + \fi% + \Hy@backout{\@nameuse{docbooktolatexcite@#1}}% + }% + \fi% +} +% -------------------------------------------- +% A way to honour <footnoteref>s +% Blame j-devenish (at) users.sourceforge.net +% In any other LaTeX context, this would probably go into a style file. +\newcommand{\docbooktolatexusefootnoteref}[1]{\@ifundefined{@fn@label@#1}% + {\hbox{\@textsuperscript{\normalfont ?}}% + \@latex@warning{Footnote label `#1' was not defined}}% + {\@nameuse{@fn@label@#1}}} +\newcommand{\docbooktolatexmakefootnoteref}[1]{% + \protected@write\@auxout{}% + {\global\string\@namedef{@fn@label@#1}{\@makefnmark}}% + \@namedef{@fn@label@#1}{\hbox{\@textsuperscript{\normalfont ?}}}% + } +% -------------------------------------------- +% Hacks for honouring row/entry/@align +% (\hspace not effective when in paragraph mode) +% Naming convention for these macros is: +% 'docbooktolatex' 'align' {alignment-type} {position-within-entry} +% where r = right, l = left, c = centre +\newcommand{\docbooktolatexalignrl}{\protect\ifvmode\raggedleft\else\hfill\fi} +\newcommand{\docbooktolatexalignrr}{\protect} +\newcommand{\docbooktolatexalignll}{\protect\ifvmode\raggedright\else\fi} +\newcommand{\docbooktolatexalignlr}{\protect\ifvmode\else\hspace*\fill\fi} +\newcommand{\docbooktolatexaligncl}{\protect\ifvmode\centering\else\hfill\fi} +\newcommand{\docbooktolatexaligncr}{\protect\ifvmode\else\hspace*\fill\fi} +\ifx\captionswapskip\@undefined\newcommand{\captionswapskip}{}\fi +\makeatother +]]></xsl:text> + </xsl:template> + + + + <!--############################################################################# + | Auxiliary templates and variables + |- ############################################################################# + | + + ############################################################################## --> + + <doc:template name="latex.float.preamble" xmlns=""> + <refpurpose> + </refpurpose> + <refdescription> + </refdescription> + </doc:template> + <xsl:template name="latex.float.preamble"> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% Commands to manage/style/create floats </xsl:text> + <xsl:text>% figures, tables, algorithms, examples, eqn </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text> \floatstyle{ruled} </xsl:text> + <xsl:text> \restylefloat{figure} </xsl:text> + <xsl:text> \floatstyle{ruled} </xsl:text> + <xsl:text> \restylefloat{table} </xsl:text> + <xsl:text> \floatstyle{ruled} </xsl:text> + <xsl:text> \newfloat{program}{ht}{lop}[section] </xsl:text> + <xsl:text> \floatstyle{ruled} </xsl:text> + <xsl:text> \newfloat{example}{ht}{loe}[section] </xsl:text> + <xsl:text> \floatname{example}{</xsl:text> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name">example</xsl:with-param> + </xsl:call-template> + <xsl:text>} </xsl:text> + <xsl:text> \floatstyle{ruled} </xsl:text> + <xsl:text> \newfloat{dbequation}{ht}{loe}[section] </xsl:text> + <xsl:text> \floatname{dbequation}{</xsl:text> + <xsl:call-template name="gentext.element.name"> + <xsl:with-param name="element.name">equation</xsl:with-param> + </xsl:call-template> + <xsl:text>} </xsl:text> + <xsl:text> \floatstyle{boxed} </xsl:text> + <xsl:text> \newfloat{algorithm}{ht}{loa}[section] </xsl:text> + <xsl:text> \floatname{algorithm}{Algorithm} </xsl:text> + </xsl:template> + + + + + <!-- DOCUMENTATION --> + <doc:variable name="latex.pdf.preamble" xmlns=""> + <refpurpose> + </refpurpose> + <refdescription> + <formalpara><title>Default Value:</title> + <screen> + \usepackage{ifthen} + % -------------------------------------------- + % Check for PDFLaTeX/LaTeX + % -------------------------------------------- + \newif\ifpdf + \ifx\pdfoutput\undefined + \pdffalse % we are not running PDFLaTeX + \else + \pdfoutput=1 % we are running PDFLaTeX + \pdftrue + \fi + % -------------------------------------------- + % Load graphicx package with pdf if needed + % -------------------------------------------- + \ifpdf + \usepackage[pdftex]{graphicx} + \pdfcompresslevel=9 + \else + \usepackage{graphicx} + \fi + </screen> + </formalpara> + </refdescription> + <refauthor>Ramon Casellas <email>casellas@aist.enst.fr</email></refauthor> + </doc:variable> + + <!-- VARIABLE --> + <xsl:variable name="latex.pdf.preamble"> + <xsl:text>\usepackage{ifthen} </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% Check for PDFLaTeX/LaTeX </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\newif\ifpdf </xsl:text> + <xsl:text>\ifx\pdfoutput\undefined </xsl:text> + <xsl:text>\pdffalse % we are not running PDFLaTeX </xsl:text> + <xsl:text>\else </xsl:text> + <xsl:text>\pdfoutput=1 % we are running PDFLaTeX </xsl:text> + <xsl:text>\pdftrue </xsl:text> + <xsl:text>\fi </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% Load graphicx package with pdf if needed </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\ifpdf </xsl:text> + <xsl:text>\usepackage[pdftex]{graphicx} </xsl:text> + <xsl:text>\pdfcompresslevel=9 </xsl:text> + <xsl:text>\else </xsl:text> + <xsl:text>\usepackage{graphicx} </xsl:text> + <xsl:text>\fi </xsl:text> + </xsl:variable> + + + + <!-- DOCUMENTATION --> + <doc:template name="latex.hyperref.preamble" xmlns=""> + <refpurpose> Manage the part of the preamble that handles the hyperref package.</refpurpose> + <refdescription> + <para> This template outputs the LaTeX code <literal>\usepackage[...]{hyperref}</literal> + in order to use hyperlinks, backrefs and other goodies. If PDF support is activated, + outputs laTeX code to detect whether the document is being compiled with + <filename>pdflatex</filename> or <filename>latex</filename> to supply the + right parameters (pdftex, dvips, etc). </para> + <formalpara><title>To Do</title> The package options should be optained + from XSL variables.</formalpara> + <formalpara><title>Default Value with PDF support</title> + <screen> + % -------------------------------------------- + % Load hyperref package with pdf if needed + % -------------------------------------------- + \ifpdf + \usepackage[pdftex,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage]{hyperref} + \else + \usepackage[dvips,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage]{hyperref} + \fi + % -------------------------------------------- + </screen> + </formalpara> + <formalpara><title>Default Value without PDF support</title> + <screen> + % -------------------------------------------- + % Load hyperref package + % -------------------------------------------- + \usepackage[dvips,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage]{hyperref} + </screen> + </formalpara> + </refdescription> + </doc:template> + <!-- TEMPLATE --> + <xsl:template name="latex.hyperref.preamble"> + <xsl:choose> + <xsl:when test="$latex.pdf.support=1"> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% Load hyperref package with pdf if needed </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\ifpdf </xsl:text> + <xsl:text>\usepackage[pdftex,</xsl:text> + <xsl:value-of select="$latex.hyperref.param.common" /> + <xsl:text>,</xsl:text> + <xsl:value-of select="$latex.hyperref.param.pdftex" /> + <xsl:text>]{hyperref} </xsl:text> + <xsl:text>\else </xsl:text> + <xsl:text>\usepackage[dvips,</xsl:text> + <xsl:value-of select="$latex.hyperref.param.common" /> + <xsl:text>,</xsl:text> + <xsl:value-of select="$latex.hyperref.param.dvips" /> + <xsl:text>]{hyperref} </xsl:text> + <xsl:text>\fi </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% Load hyperref package </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\usepackage[dvips,</xsl:text> + <xsl:value-of select="$latex.hyperref.param.common" /> + <xsl:text>,</xsl:text> + <xsl:value-of select="$latex.hyperref.param.dvips" /> + <xsl:text>]{hyperref} </xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + + + + + + + + + + <!--############################################################################# + | latex.math.preamble + |- ############################################################################# + | This "preamble chunk" declares usage of most common AMS packages. + | Defines new useful commands. + + ############################################################################## --> + + <!-- DOCUMENTATION --> + <doc:variable name="latex.math.preamble" xmlns=""> + <refpurpose> Manage the math related preamble</refpurpose> + <refdescription> + </refdescription> + </doc:variable> + + <!-- VARIABLE --> + <xsl:variable name="latex.math.preamble"> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% Math support </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\usepackage{amsmath,amsthm, amsfonts, amssymb, amsxtra,amsopn} </xsl:text> + <xsl:text>%\newtheorem{thm}{Theorem}[section] </xsl:text> + <xsl:text>%\newtheorem{cor}[section]{Corollary} </xsl:text> + <xsl:text>%\newtheorem{lem}[section]{Lemma} </xsl:text> + <xsl:text>%\newtheorem{defn}[section]{Definition} </xsl:text> + <xsl:text>%\newtheorem{prop}[section]{Proposition} </xsl:text> + <xsl:text>%\newtheorem{ax}{Axiom} </xsl:text> + <xsl:text>%\newtheorem{theorem}[section]{Theorem} </xsl:text> + <xsl:text>%\newtheorem{corollary}{Corollary} </xsl:text> + <xsl:text>%\newtheorem{lemma}{Lemma} </xsl:text> + <xsl:text>%\newtheorem{proposition}{Proposition} </xsl:text> + <xsl:text>%\theoremstyle{definition} </xsl:text> + <xsl:text>%\newtheorem{definition}{Definition} </xsl:text> + <xsl:text>%\theoremstyle{remark} </xsl:text> + <xsl:text>%\newtheorem{rem}{Remark} </xsl:text> + <xsl:text>%\newtheorem*{notation}{Notation} </xsl:text> + <xsl:text>%\newcommand{\ntt}{\normalfont\ttfamily} </xsl:text> + <xsl:text>%\newcommand{\thmref}[1]{Theorem~\ref{#1}} </xsl:text> + <xsl:text>%\newcommand{\secref}[1]{\S\ref{#1}} </xsl:text> + <xsl:text>%\newcommand{\lemref}[1]{Lemma~\ref{#1}} </xsl:text> + <xsl:text> \newcommand{\bysame}{\mbox{\rule{3em}{.4pt}}\,} </xsl:text> + <xsl:text> \newcommand{\A}{\mathcal{A}} </xsl:text> + <xsl:text> \newcommand{\B}{\mathcal{B}} </xsl:text> + <xsl:text> \newcommand{\XcY}{{(X,Y)}} </xsl:text> + <xsl:text> \newcommand{\SX}{{S_X}} </xsl:text> + <xsl:text> \newcommand{\SY}{{S_Y}} </xsl:text> + <xsl:text> \newcommand{\SXY}{{S_{X,Y}}} </xsl:text> + <xsl:text> \newcommand{\SXgYy}{{S_{X|Y}(y)}} </xsl:text> + <xsl:text> \newcommand{\Cw}[1]{{\hat C_#1(X|Y)}} </xsl:text> + <xsl:text> \newcommand{\G}{{G(X|Y)}} </xsl:text> + <xsl:text> \newcommand{\PY}{{P_{\mathcal{Y}}}} </xsl:text> + <xsl:text> \newcommand{\X}{\mathcal{X}} </xsl:text> + <xsl:text> \newcommand{\wt}{\widetilde} </xsl:text> + <xsl:text> \newcommand{\wh}{\widehat} </xsl:text> + <xsl:text> % -------------------------------------------- </xsl:text> + <xsl:text> %\DeclareMathOperator{\per}{per} </xsl:text> + <xsl:text> \DeclareMathOperator{\cov}{cov} </xsl:text> + <xsl:text> \DeclareMathOperator{\non}{non} </xsl:text> + <xsl:text> \DeclareMathOperator{\cf}{cf} </xsl:text> + <xsl:text> \DeclareMathOperator{\add}{add} </xsl:text> + <xsl:text> \DeclareMathOperator{\Cham}{Cham} </xsl:text> + <xsl:text> \DeclareMathOperator{\IM}{Im} </xsl:text> + <xsl:text> \DeclareMathOperator{\esssup}{ess\,sup} </xsl:text> + <xsl:text> \DeclareMathOperator{\meas}{meas} </xsl:text> + <xsl:text> \DeclareMathOperator{\seg}{seg} </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + </xsl:variable> + + + + +<!--############################################################################# +| latex.graphicext +|- ############################################################################# +| ++ ############################################################################## --> + +<doc:template name="latex.graphicext" xmlns=""> +<refpurpose> Declared graphic extensions </refpurpose> +<refdescription> +This template checks whether the user has overriden <command>grafic.default.extension</command> +Otherwise, declares .pdf, .png, .jpg if using pdflatex and .eps if using latex. +<programlisting><![CDATA[ +<xsl:template name="latex.graphicext"> +<xsl:choose> +<xsl:when test="$graphic.default.extension !=''"> + <xsl:text>\DeclareGraphicsExtensions{</xsl:text> + <xsl:if test="not(contains($graphic.default.extension,'.'))"> + <xsl:text>.</xsl:text> + </xsl:if> + <xsl:value-of select="$graphic.default.extension"/> + <xsl:text>} </xsl:text> +</xsl:when> +<xsl:otherwise> + <xsl:choose> + <xsl:when test="$latex.pdf.support=1"> + <xsl:text>\ifpdf </xsl:text> + <xsl:text>\DeclareGraphicsExtensions{.pdf,.png,.jpg} </xsl:text> + <xsl:text>\else </xsl:text> + <xsl:text>\DeclareGraphicsExtensions{.eps} </xsl:text> + <xsl:text>\fi </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\DeclareGraphicsExtensions{.eps} </xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:otherwise> +</xsl:choose> +</xsl:template> + + +]]></programlisting> +</refdescription> +<refreturn> +</refreturn> +</doc:template> + +<xsl:template name="latex.graphicext"> +<xsl:choose> +<xsl:when test="$graphic.default.extension !=''"> + <xsl:text>\DeclareGraphicsExtensions{</xsl:text> + <xsl:if test="not(contains($graphic.default.extension,'.'))"> + <xsl:text>.</xsl:text> + </xsl:if> + <xsl:value-of select="$graphic.default.extension"/> + <xsl:text>} </xsl:text> +</xsl:when> +<xsl:otherwise> + <xsl:choose> + <xsl:when test="$latex.pdf.support=1"> + <xsl:text>\ifpdf </xsl:text> + <xsl:text>\DeclareGraphicsExtensions{.pdf,.png,.jpg} </xsl:text> + <xsl:text>\else </xsl:text> + <xsl:text>\DeclareGraphicsExtensions{.eps} </xsl:text> + <xsl:text>\fi </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\DeclareGraphicsExtensions{.eps} </xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:otherwise> +</xsl:choose> +</xsl:template> + + <xsl:template name="generate.latex.cell.separator"> + <xsl:choose> + <xsl:when test="$latex.entities='catcode'"> + <xsl:text> \catcode`\&=4 &\catcode`\&=\active </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text> & </xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/preface.mod.xsl b/docs/docbook/xslt/db2latex/preface.mod.xsl new file mode 100644 index 0000000000..90d30f09cf --- /dev/null +++ b/docs/docbook/xslt/db2latex/preface.mod.xsl @@ -0,0 +1,112 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: preface.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="preface" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: preface.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Preface <filename>preface.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + +<!--############################################################################# + | Preface + +- ############################################################################# --> +<xsl:template match="preface"> +<xsl:text>\newpage </xsl:text> +<xsl:text>% ------------------------------------------------------------- </xsl:text> +<xsl:text>% Preface </xsl:text> +<xsl:text>% ------------------------------------------------------------- </xsl:text> +<xsl:text>\chapter*{</xsl:text> +<!-- Output preface title or generic text --> +<xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">preface</xsl:with-param> + </xsl:call-template> + </xsl:otherwise> +</xsl:choose> +<xsl:text>} </xsl:text> +<!-- done with title. Tag it. --> +<xsl:call-template name="label.id"/> +<!-- except title, titleabbrev and subtitle --> +<xsl:apply-templates select="*[name(.) != 'title' and name(.) != 'subtitle' and name(.) != 'titleabbrev']"/> +</xsl:template> + + +<!--############################################################################# + | Preface Title + +- ############################################################################# --> +<xsl:template match="preface/title"> +<xsl:apply-templates/> +</xsl:template> + + +<!--############################################################################# + | Other Preface Elements + +- ############################################################################# --> +<xsl:template match="preface/titleabbrev"/> +<xsl:template match="preface/subtitle"/> +<xsl:template match="preface/docinfo|prefaceinfo"/> + + +<xsl:template match="preface/sect1|preface/simplesect"> +<xsl:text> \section*{</xsl:text> +<xsl:apply-templates select="title"/> +<xsl:text>} </xsl:text> +<xsl:apply-templates select="*[name(.) != 'title']"/> +</xsl:template> + + +<xsl:template match="preface/sect1/sect2"> +<xsl:text> \subsection*{</xsl:text> +<xsl:apply-templates select="title"/> +<xsl:text>} </xsl:text> +<xsl:apply-templates select="*[name(.) != 'title']"/> +</xsl:template> + + +<xsl:template match="preface/sect1/sect2/sect3"> +<xsl:text> \subsubsection*{</xsl:text> +<xsl:apply-templates select="title"/> +<xsl:text>} </xsl:text> +<xsl:apply-templates select="*[name(.) != 'title']"/> +</xsl:template> + + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/procedure.mod.xsl b/docs/docbook/xslt/db2latex/procedure.mod.xsl new file mode 100644 index 0000000000..3fca796151 --- /dev/null +++ b/docs/docbook/xslt/db2latex/procedure.mod.xsl @@ -0,0 +1,165 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: procedure.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="procedure" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: procedure.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Procedures <filename>procedure.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + +<!--############################################################################# --> +<doc:template match="procedure" xmlns=""> +<refpurpose>Procedure XSL Template.</refpurpose> +<refdescription> +<para></para> +<programlisting><![CDATA[ +]]></programlisting> +</refdescription> +</doc:template> +<!--############################################################################# --> + +<xsl:template match="procedure"> + <xsl:variable name="placement"> + <xsl:call-template name="generate.formal.title.placement"> + <xsl:with-param name="object" select="local-name(.)" /> + </xsl:call-template> + </xsl:variable> + <xsl:choose> + <xsl:when test="$placement='before' or $placement=''"> + <xsl:apply-templates select="title" mode="procedure.title"/> + <xsl:text>\begin{enumerate} </xsl:text> + <xsl:apply-templates/> + <xsl:text>\end{enumerate} </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\begin{enumerate} </xsl:text> + <xsl:apply-templates/> + <xsl:text>\end{enumerate} </xsl:text> + <xsl:apply-templates select="title" mode="procedure.title"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + + +<xsl:template match="procedure/title"> +</xsl:template> + +<xsl:template match="procedure/title" mode="procedure.title"> + <xsl:text> {</xsl:text> + <xsl:value-of select="$latex.procedure.title.style"/> + <xsl:text>{</xsl:text> + <xsl:choose> + <xsl:when test="$latex.apply.title.templates=1"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="."/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}} </xsl:text> +</xsl:template> + + + + +<!--############################################################################# --> +<doc:template match="step" xmlns=""> +<refpurpose>Step XSL Template.</refpurpose> +<refdescription> +<para></para> +<programlisting><![CDATA[ +]]></programlisting> +</refdescription> +</doc:template> +<!--############################################################################# --> + + <xsl:template match="step"> + <xsl:choose> + <xsl:when test="title"> + <xsl:text> \item{{</xsl:text> + <xsl:value-of select="$latex.step.title.style"/> <!-- by default \sc --> + <xsl:text>{</xsl:text> + <xsl:apply-templates select="title"/> + <xsl:text>}} </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text> \item{</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:apply-templates select="*[not(self::title)]"/> + <xsl:text>} </xsl:text> + </xsl:template> + +<!-- step/title, just apply templates ########################################### --> + <xsl:template match="step/title"> + <xsl:apply-templates/> + </xsl:template> + + + + + + + + + +<!--############################################################################# --> +<doc:template match="substeps" xmlns=""> +<refpurpose>SubSteps XSL Template.</refpurpose> +<refdescription> +<para></para> +<programlisting><![CDATA[ +<xsl:template match="substeps"> + <xsl:text>\begin{enumerate} </xsl:text> + <xsl:apply-templates/> + <xsl:text>\end{enumerate} </xsl:text> +</xsl:template> +]]></programlisting> +</refdescription> +</doc:template> +<!--############################################################################# --> + +<xsl:template match="substeps"> + <xsl:text>\begin{enumerate} </xsl:text> + <xsl:apply-templates/> + <xsl:text>\end{enumerate} </xsl:text> +</xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/qandaset.mod.xsl b/docs/docbook/xslt/db2latex/qandaset.mod.xsl new file mode 100644 index 0000000000..c6363e4782 --- /dev/null +++ b/docs/docbook/xslt/db2latex/qandaset.mod.xsl @@ -0,0 +1,409 @@ +<?xml version="1.0"?> +<!--############################################################################# +| $Id: qandaset.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: +| Portions (c) Norman Walsh, official DocBook XSL stylesheets. +| See docbook.sf.net ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version="1.0"> + + +<!--############################################################################# --> +<!-- DOCUMENTATION --> + <doc:reference xmlns="" id="qandaset"> + <referenceinfo> + <releaseinfo role="meta"> $Id: qandaset.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>QandaSet <filename>qandaset.mod.xsl</filename></title> + <partintro> + <section> + <title>Introduction</title> + </section> + </partintro> + </doc:reference> + + + + +<!--############################################################################# +| qandaset +|- ############################################################################# +| ++ ############################################################################# --> + +<xsl:template match="qandaset"> + <!-- get all children that are not the following --> + <xsl:variable name="preamble" select="*[name(.) != 'title' + and name(.) != 'titleabbrev' + and name(.) != 'qandadiv' + and name(.) != 'qandaentry']"/> + <xsl:variable name="label-width"/> + <xsl:variable name="table-summary"/> + <xsl:variable name="cellpadding"/> + <xsl:variable name="cellspacing"/> + <xsl:variable name="toc"/> + <xsl:variable name="toc.params"/> + <xsl:variable name="qalevel"> + <xsl:call-template name="qanda.section.level"/> + </xsl:variable> + <xsl:text>% ------------------------------------------------------------- </xsl:text> + <xsl:text>% QandASet </xsl:text> + <xsl:text>% ------------------------------------------------------------- </xsl:text> + <xsl:choose> + <xsl:when test="ancestor::sect2"> + <xsl:text>\subsubsection*{</xsl:text> + </xsl:when> + <xsl:when test="ancestor::sect1"> + <xsl:text>\subsection*{</xsl:text> + </xsl:when> + <xsl:when test="ancestor::article | ancestor::appendix"> + <xsl:text>\section*{</xsl:text> + </xsl:when> + <xsl:when test="ancestor::book"> + <xsl:text>\chapter*{</xsl:text> + </xsl:when> + </xsl:choose> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>F.A.Q.</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:text>} </xsl:text> + <xsl:call-template name="label.id"/> + <xsl:text> </xsl:text> + + <!-- process toc --> + <xsl:if test="contains($toc.params, 'toc') and $toc != '0'"> + <xsl:call-template name="process.qanda.toc"/> + </xsl:if> + <!-- process preamble --> + <xsl:apply-templates select="$preamble"/> + <!-- process divs and entries --> + <xsl:apply-templates select="qandaentry|qandadiv"/> +</xsl:template> + + +<xsl:template match="qandaset/title"> +<xsl:apply-templates/> +</xsl:template> + + + + +<!--############################################################################# +| qandadiv +|- ############################################################################# +| ++ ############################################################################# --> + + +<xsl:template match="qandadiv"> + <!-- get the preamble --> + <xsl:variable name="preamble" select="*[name(.) != 'title' + and name(.) != 'titleabbrev' + and name(.) != 'qandadiv' + and name(.) != 'qandaentry']"/> + <xsl:variable name="qalevel"> + <xsl:call-template name="qandadiv.section.level"/> + </xsl:variable> + <!-- process the title if it exists --> + <xsl:text>% ----------- </xsl:text> + <xsl:text>% QandADiv </xsl:text> + <xsl:text>% ----------- </xsl:text> + <xsl:text>\noindent\begin{minipage}{\linewidth} </xsl:text> + <xsl:text>\vspace{0.25em}\hrule\vspace{0.25em} </xsl:text> + <xsl:choose> + <xsl:when test="ancestor::sect2"> + <xsl:text>\paragraph*{</xsl:text> + </xsl:when> + <xsl:when test="ancestor::sect1"> + <xsl:text>\subsubsection*{</xsl:text> + </xsl:when> + <xsl:when test="ancestor::article | ancestor::appendix"> + <xsl:text>\subsection*{</xsl:text> + </xsl:when> + <xsl:when test="ancestor::book"> + <xsl:text>\section*{</xsl:text> + </xsl:when> + </xsl:choose> + <xsl:choose> + <xsl:when test="title"> + <xsl:apply-templates select="title"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>F.A.Q. Part</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:text>}</xsl:text> + <xsl:call-template name="label.id"/> + <xsl:text> </xsl:text> + <xsl:text>\hrule\vspace{0.25em} </xsl:text> + <xsl:text>\end{minipage} </xsl:text> + +<!-- + <xsl:variable name="toc.params"> + </xsl:variable> + <xsl:if test="contains($toc.params, 'toc')"> + <xsl:call-template name="process.qanda.toc"/> + </xsl:if> + <xsl:if test="$preamble"> + <xsl:apply-templates select="$preamble"/> + </xsl:if> +--> +<!-- + <xsl:text>\begin{toc} </xsl:text> + <xsl:for-each select="qandaentry"> + <xsl:text>\tocref{</xsl:text> + <xsl:value-of select="@id"/> + <xsl:text>} </xsl:text> + </xsl:for-each> + <xsl:text>\end{toc} </xsl:text> +--> + +<!-- pseudo table of contents --> + <!-- + <xsl:choose> + <xsl:when test="title"> + <xsl:text>\caption{</xsl:text> + <xsl:apply-templates select="title"/> + <xsl:text>} </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\caption{</xsl:text> + <xsl:text>F.A.Q. Part</xsl:text> + <xsl:text>} </xsl:text> + </xsl:otherwise> + </xsl:choose> + --> + <xsl:for-each select="qandaentry"> + <xsl:text>\noindent{}</xsl:text> + <xsl:value-of select="position()"/> + <xsl:text>.~</xsl:text> + <xsl:apply-templates select="question"/> + <xsl:if test="position()!=last()"><xsl:text>\newline </xsl:text></xsl:if> + </xsl:for-each> + <xsl:text>\vspace{0.25em}\hrule </xsl:text> + + <xsl:for-each select="qandaentry"> + <xsl:text>\vspace{1em} </xsl:text> + <xsl:text>\noindent{}</xsl:text> + <xsl:value-of select="position()"/> + <xsl:text>.~</xsl:text> + <xsl:apply-templates select="question"/> + <xsl:text>\newline </xsl:text> + <xsl:apply-templates select="answer"/> + </xsl:for-each> +<!-- <xsl:apply-templates select="qandadiv|qandaentry"/> --> +<!-- <xsl:apply-templates/> --> + <xsl:text>\vspace{1em} </xsl:text> +</xsl:template> + + + + + + + + +<!--############################################################################# +| qandadiv/title +|- ############################################################################# +| ++ ############################################################################# --> + +<xsl:template match="qandadiv/title"> + <!-- <xsl:apply-templates select="parent::qandadiv" mode="label.markup"/> --> + <xsl:apply-templates/> +</xsl:template> + + + + +<!--############################################################################# +| question +|- ############################################################################# +| ++ ############################################################################# --> + +<xsl:template match="question"> +<!-- get the default label --> +<xsl:variable name="deflabel"> + <xsl:choose> + <xsl:when test="ancestor-or-self::*[@defaultlabel]"> + <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]/@defaultlabel"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="latex.qanda.defaultlabel"/> + </xsl:otherwise> + </xsl:choose> +</xsl:variable> +<!-- process the question itself +<xsl:apply-templates select="." mode="label.markup"/> +<xsl:choose> + <xsl:when test="$deflabel = 'none' and not(label)"> + <xsl:apply-templates select="*[name(.) != 'label']"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="*[name(.) != 'label']"/> + </xsl:otherwise> +</xsl:choose> +--> +<xsl:text>\textbf{Q:}~\textit{</xsl:text> +<xsl:apply-templates/> +<xsl:text>} </xsl:text> +</xsl:template> + + + + + + + + +<!--############################################################################# +| answer +|- ############################################################################# +| ++ ############################################################################# --> + +<xsl:template match="answer"> +<xsl:text>\noindent\textbf{A:}~</xsl:text> +<xsl:apply-templates/> +<xsl:text> </xsl:text> +</xsl:template> + + + + + + + +<!--############################################################################# +| label +|- ############################################################################# +| ++ ############################################################################# --> + +<xsl:template match="label"> + <xsl:apply-templates/> +</xsl:template> + + +<xsl:template name="process.qanda.toc"> + <xsl:apply-templates select="qandadiv" mode="qandatoc.mode"/> + <xsl:apply-templates select="qandaentry" mode="qandatoc.mode"/> +</xsl:template> + +<xsl:template match="qandadiv" mode="qandatoc.mode"> + <xsl:apply-templates select="title" mode="qandatoc.mode"/> + <xsl:call-template name="process.qanda.toc"/> +</xsl:template> + + + + + + +<xsl:template match="qandadiv/title" mode="qandatoc.mode"> +<xsl:variable name="qalevel"> + <xsl:call-template name="qandadiv.section.level"/> +</xsl:variable> +<xsl:call-template name="label.id"> + <xsl:with-param name="object" select="parent::*"/> +</xsl:call-template> +<xsl:apply-templates select="parent::qandadiv" mode="label.markup"/> +<xsl:value-of select="$autotoc.label.separator"/> +<xsl:apply-templates/> +</xsl:template> + + + +<xsl:template match="qandaentry" mode="qandatoc.mode"> + <xsl:apply-templates mode="qandatoc.mode"/> +</xsl:template> + + + +<xsl:template match="question" mode="qandatoc.mode"> + <xsl:variable name="firstch" select="(*[name(.)!='label'])[1]"/> + <xsl:apply-templates select="." mode="label.markup"/> + <xsl:text> </xsl:text> +</xsl:template> + + +<xsl:template match="answer|revhistory" mode="qandatoc.mode"> + <!-- nop --> +</xsl:template> + + + + +<xsl:template name="question.answer.label"> + <!-- variable: deflabel --> + <xsl:variable name="deflabel"> + <!-- chck whether someone has a defaultlabel attribute --> + <xsl:choose> + <xsl:when test="ancestor-or-self::*[@defaultlabel]"> + <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]/@defaultlabel"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="latex.qanda.defaultlabel"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + + <xsl:variable name="label" select="@label"/> + <xsl:choose> + <xsl:when test="$deflabel = 'qanda'"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key"> + <xsl:choose> + <xsl:when test="local-name(.) = 'question'">question</xsl:when> + <xsl:when test="local-name(.) = 'answer'">answer</xsl:when> + <xsl:when test="local-name(.) = 'qandadiv'">qandadiv</xsl:when> + <xsl:otherwise>qandaset</xsl:otherwise> + </xsl:choose> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="$deflabel = 'label'"> + <xsl:value-of select="$label"/> + </xsl:when> + <xsl:when test="$deflabel = 'number' and local-name(.) = 'question'"> + <xsl:apply-templates select="ancestor::qandaset[1]" mode="number"/> + <xsl:choose> + <xsl:when test="ancestor::qandadiv"> + <xsl:apply-templates select="ancestor::qandadiv[1]" mode="number"/> + <xsl:apply-templates select="ancestor::qandaentry" mode="number"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="ancestor::qandaentry" mode="number"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <!-- nothing --> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/refentry.mod.xsl b/docs/docbook/xslt/db2latex/refentry.mod.xsl new file mode 100644 index 0000000000..dc1a7c440c --- /dev/null +++ b/docs/docbook/xslt/db2latex/refentry.mod.xsl @@ -0,0 +1,187 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: refentry.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="refentry" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: refentry.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authogroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authogroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>References and Entries <filename>refentry.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + <!--############################################################################# + | REFERENCE + |- ############################################################################# + | + + ############################################################################## --> + <xsl:template match="reference"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates select="partintro"/> + <xsl:apply-templates select="*[local-name(.) != 'partintro']"/> + </xsl:template> + + <xsl:template match="reference" mode="division.number"> + <xsl:number from="book" count="reference" format="I."/> + </xsl:template> + + <xsl:template match="reference/docinfo"/> + <xsl:template match="reference/title"/> + <xsl:template match="reference/subtitle"/> + + + + <!--############################################################################# + | REFENTRY + |- ############################################################################# + | + + ############################################################################## --> + <xsl:template match="refentry"> + <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"/> + </xsl:when> + <xsl:when test="$refname"> + <xsl:apply-templates select="$refname[1]" mode="title"/> + </xsl:when> + <xsl:otherwise></xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:call-template name="map.begin"> + <xsl:with-param name="string" select="$title"/> + </xsl:call-template> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="refentrytitle|refname" mode="title"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="refentry/docinfo|refentry/refentryinfo"/> + <xsl:template match="refmeta"/> + + <xsl:template match="manvolnum"> + <xsl:if test="$refentry.xref.manvolnum != 0"> + <xsl:text>(</xsl:text> + <xsl:apply-templates/> + <xsl:text>)</xsl:text> + </xsl:if> + </xsl:template> + + <xsl:template match="refmiscinfo"/> + + <xsl:template match="refentrytitle"> + <xsl:call-template name="inline.charseq"/> + </xsl:template> + + <xsl:template match="refnamediv"> + <xsl:call-template name="block.object"/> + </xsl:template> + + <xsl:template match="refname"> + <xsl:apply-templates/> + <xsl:if test="not (preceding-sibling::refname)"> + <xsl:text> \subsection*{</xsl:text> + <xsl:if test="$refentry.generate.name != 0"> + <xsl:call-template name="gentext.element.name"/> + </xsl:if> + <xsl:text>} </xsl:text> + </xsl:if> + <xsl:apply-templates/> + <xsl:if test="following-sibling::refname"> + <xsl:text>, </xsl:text> + </xsl:if> + </xsl:template> + + + <xsl:template match="refpurpose"> + <xsl:text> $-$ </xsl:text> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="refdescriptor"> + <!-- todo: finish this --> + </xsl:template> + + <xsl:template match="refclass"> + <xsl:if test="@role"> + <xsl:value-of select="@role"/> + <xsl:text>: </xsl:text> + </xsl:if> + <xsl:apply-templates/> + </xsl:template> + + + + <!--############################################################################# + | REFSYNOPSIS + |- ############################################################################# + | + + ############################################################################## --> + + <xsl:template match="refsynopsisdiv"> + <xsl:call-template name="label.id"/> + <xsl:text> \subsection*{Synopsis} </xsl:text> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="refsynopsisdivinfo"></xsl:template> + <xsl:template match="refsynopsisdiv/title"></xsl:template> + + + <!--############################################################################# + | REFSECTS + |- ############################################################################# + | + + ############################################################################## --> + + <xsl:template match="refsect1|refsect2|refsect3"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="refsect1/title"/> + <xsl:template match="refsect2/title"/> + <xsl:template match="refsect3/title"/> + <xsl:template match="refsect1info"/> + <xsl:template match="refsect2info"/> + <xsl:template match="refsect3info"/> + + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/revision.mod.xsl b/docs/docbook/xslt/db2latex/revision.mod.xsl new file mode 100644 index 0000000000..c1b39cee48 --- /dev/null +++ b/docs/docbook/xslt/db2latex/revision.mod.xsl @@ -0,0 +1,218 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: revision.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="revision" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: revision.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Revision Management <filename>revision.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para> + This file defines the DB2LaTeX XSL templates for <sgmltag>revision</sgmltag> + and its children. The basic mapping is to output a LaTeX table and a table + row for each revision. + </para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="revhistory" xmlns=""> + <refpurpose> revhistory XSL template </refpurpose> + <refdescription> + <formalpara><title>User variables</title> + <itemizedlist> + <listitem><para><literal>latex.output.revhistory</literal></para></listitem> + </itemizedlist> + </formalpara> + <para>This XSL template depends on the value of <literal>latex.output.revhistory</literal>. + If this variable is "1", the XSL template calls <command>map.begin</command>, then + applies templates and finally calls <command>map.end</command></para> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="revhistory"> + <xsl:message>RCAS: Processing Revision History </xsl:message> + <xsl:if test="$latex.output.revhistory=1"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + <xsl:call-template name="map.end"/> + </xsl:if> + </xsl:template> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="revhistory/revision" xmlns=""> + <refpurpose> revhistory/revision XSL template </refpurpose> + <refdescription> + <para>Each revhistory/revision corresponds to a LaTeX table row (see revhistory) + containing the revision number, the date, author initials and the description/ + remarks of the revision.</para> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="revhistory/revision"> + <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"/> + <!-- Row starts here --> + <xsl:if test="$revnumber"> + <xsl:call-template name="gentext.element.name"/> + <xsl:text> </xsl:text> + <xsl:apply-templates select="$revnumber"/> + </xsl:if> + <xsl:text> & </xsl:text> + <xsl:apply-templates select="$revdate"/> + <xsl:text> & </xsl:text> + <xsl:choose> + <xsl:when test="count($revauthor)=0"> + <xsl:call-template name="dingbat"> + <xsl:with-param name="dingbat">nbsp</xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$revauthor"/> + </xsl:otherwise> + </xsl:choose> + <!-- End Row here --> + <xsl:text> \\ \hline </xsl:text> + <!-- Add Remark Row if exists--> + <xsl:if test="$revremark"> + <xsl:text>\multicolumn{3}{|l|}{</xsl:text> + <xsl:apply-templates select="$revremark"/> + <!-- End Row here --> + <xsl:text>} \\ \hline </xsl:text> + </xsl:if> + </xsl:template> + + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="revision/authorinitials" xmlns=""> + <refpurpose> revision/authorinitials XSL template </refpurpose> + <refdescription> + <para>Applies templates and outputs a "comma" if the node position is not + last()</para> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="revision/authorinitials"> + <xsl:apply-templates/> + <xsl:if test="position()!=last()"> + <xsl:text>, </xsl:text> + </xsl:if> + </xsl:template> + + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="revision/revnumber" xmlns=""> + <refpurpose> revision/revnumber XSL template </refpurpose> + <refdescription> + <para>Applies templates.</para> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="revision/revnumber"> + <xsl:apply-templates/> + </xsl:template> + + + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="revision/date" xmlns=""> + <refpurpose> revision/date XSL template </refpurpose> + <refdescription> + <para>Applies templates.</para> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="revision/date"> + <xsl:apply-templates/> + </xsl:template> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="revision/revremark" xmlns=""> + <refpurpose> revision/revremark XSL template </refpurpose> + <refdescription> + <para>Applies templates.</para> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="revision/revremark"> + <xsl:apply-templates/> + </xsl:template> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="revision/revdescription" xmlns=""> + <refpurpose> revision/revdescription XSL template </refpurpose> + <refdescription> + <para>Applies templates.</para> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="revision/revdescription"> + <xsl:apply-templates/> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/sections.mod.xsl b/docs/docbook/xslt/db2latex/sections.mod.xsl new file mode 100644 index 0000000000..f81524d51d --- /dev/null +++ b/docs/docbook/xslt/db2latex/sections.mod.xsl @@ -0,0 +1,150 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: sections.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: sections. +| PENDING: +| - Nested section|simplesect > 3 mapped to subsubsection* +| - No sectinfo (!) ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="sections" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: sections.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authogroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authogroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Sections <filename>sections.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + + <xsl:template match="sect1|sect2|sect3|sect4|sect5"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="sect1/title"/> + <xsl:template match="sect2/title"/> + <xsl:template match="sect3/title"/> + <xsl:template match="sect4/title"/> + <xsl:template match="sect5/title"/> + + + <xsl:template match="section"> + <xsl:text> </xsl:text> + <xsl:variable name="level" select="count(ancestor::section)+1"/> + <xsl:choose> + <xsl:when test='$level=1'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect1'"/> + </xsl:call-template> + </xsl:when> + <xsl:when test='$level=2'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect2'"/> + </xsl:call-template> + </xsl:when> + <xsl:when test='$level=3'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect3'"/> + </xsl:call-template> + </xsl:when> + <xsl:when test='$level=4'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect4'"/> + </xsl:call-template> + </xsl:when> + <xsl:when test='$level=5'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect5'"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:message>DB2LaTeX: recursive section|simplesect > 5 Not well Supported</xsl:message> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect6'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + <xsl:apply-templates/> + </xsl:template> + + + <xsl:template match="simplesect"> + <xsl:text> </xsl:text> + <xsl:variable name="level" select="count(ancestor::section) + 1"/> + <xsl:choose> + <xsl:when test='$level=1'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect1'"/> + </xsl:call-template> + </xsl:when> + <xsl:when test='$level=2'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect2'"/> + </xsl:call-template> + </xsl:when> + <xsl:when test='$level=3'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect3'"/> + </xsl:call-template> + </xsl:when> + <xsl:when test='$level=4'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect4'"/> + </xsl:call-template> + </xsl:when> + <xsl:when test='$level=5'> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect5'"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:message>DB2LaTeX: recursive section|simplesect > 5 Not well Supported</xsl:message> + <xsl:call-template name="map.begin"> + <xsl:with-param name="keyword" select="'sect6'"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="section/title"/> + <xsl:template match="simplesect/title"/> + + <xsl:template match="sectioninfo"/> + <xsl:template match="sect1info"/> + <xsl:template match="sect2info"/> + <xsl:template match="sect3info"/> + <xsl:template match="sect4info"/> + <xsl:template match="sect5info"/> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/set.mod.xsl b/docs/docbook/xslt/db2latex/set.mod.xsl new file mode 100644 index 0000000000..9c45efec52 --- /dev/null +++ b/docs/docbook/xslt/db2latex/set.mod.xsl @@ -0,0 +1,53 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: set.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="set" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: set.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Sets <filename>set.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + <xsl:template match="set"> + <xsl:call-template name="label.id"/> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="set/setinfo"></xsl:template> + <xsl:template match="set/title"></xsl:template> + <xsl:template match="set/subtitle"></xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/sgmltag.mod.xsl b/docs/docbook/xslt/db2latex/sgmltag.mod.xsl new file mode 100644 index 0000000000..8c0c57d83f --- /dev/null +++ b/docs/docbook/xslt/db2latex/sgmltag.mod.xsl @@ -0,0 +1,157 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: sgmltag.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="sgmltag" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: sgmltag.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authogroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authogroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>SGML Tags <filename>sgmltag.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <xsl:template match="sgmltag"> + <xsl:call-template name="format.sgmltag"/> + </xsl:template> + + <xsl:template name="format.sgmltag"> + <xsl:param name="class"> + <xsl:choose> + <xsl:when test="@class"> + <xsl:value-of select="normalize-space(@class)"/> + </xsl:when> + <xsl:otherwise>element</xsl:otherwise> + </xsl:choose> + </xsl:param> + + <xsl:choose> + <xsl:when test="$class='attribute'"> + <xsl:call-template name="inline.charseq"/> + </xsl:when> + <xsl:when test="$class='attvalue'"> + <xsl:call-template name="inline.monoseq"/> + </xsl:when> + <xsl:when test="$class='element'"> + <xsl:call-template name="inline.monoseq"/> + </xsl:when> + <xsl:when test="$class='endtag'"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:text></</xsl:text> + <xsl:apply-templates/> + <xsl:text>></xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="$class='genentity'"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:text>\&</xsl:text> + <xsl:apply-templates/> + <xsl:text>;</xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="$class='numcharref'"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:text>\&\#</xsl:text> + <xsl:apply-templates/> + <xsl:text>;</xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="$class='paramentity'"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:text>\%</xsl:text> + <xsl:apply-templates/> + <xsl:text>;</xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="$class='pi'"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:text><?</xsl:text> + <xsl:apply-templates/> + <xsl:text>?></xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="$class='xmlpi'"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:text><?</xsl:text> + <xsl:apply-templates/> + <xsl:text>?></xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="$class='starttag'"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:text><</xsl:text> + <xsl:apply-templates/> + <xsl:text>></xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="$class='emptytag'"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:text><</xsl:text> + <xsl:apply-templates/> + <xsl:text>/></xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:when test="$class='sgmlcomment'"> + <xsl:call-template name="inline.monoseq"> + <xsl:with-param name="content"> + <xsl:text><!--</xsl:text> + <xsl:apply-templates/> + <xsl:text>--></xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="inline.charseq"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/synop-oop.mod.xsl b/docs/docbook/xslt/db2latex/synop-oop.mod.xsl new file mode 100644 index 0000000000..1b5d660aac --- /dev/null +++ b/docs/docbook/xslt/db2latex/synop-oop.mod.xsl @@ -0,0 +1,691 @@ +<?xml version='1.0'?> +<!DOCTYPE xsl:stylesheet [ <!ENTITY RE " "> ]> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + <!--############################################################################# + | $Id: synop-oop.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: + + ############################################################################## --> + + + + <xsl:template match="classsynopsis"> + <!-- PARAM language : --> + <xsl:param name="language"> + <xsl:choose> + <xsl:when test="@language"> + <xsl:value-of select="@language"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$default-classsynopsis-language"/> + </xsl:otherwise> + </xsl:choose> + </xsl:param> + + <xsl:choose> + <xsl:when test="$language='java'"> <xsl:apply-templates select="." mode="java"/> </xsl:when> + <xsl:when test="$language='perl'"> <xsl:apply-templates select="." mode="perl"/> </xsl:when> + <xsl:when test="$language='idl'"> <xsl:apply-templates select="." mode="idl"/> </xsl:when> + <xsl:when test="$language='cpp'"> <xsl:apply-templates select="." mode="cpp"/> </xsl:when> + <xsl:otherwise> + <xsl:message>Unrecognized language on classsynopsis: <xsl:value-of select="$language"/> </xsl:message> + <xsl:apply-templates select="."> + <xsl:with-param name="language" select="$default-classsynopsis-language"/> + </xsl:apply-templates> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + + <!-- ===== Java ======================================================== --> + + <xsl:template match="classsynopsis" mode="java"> + <pre class="{name(.)}"> + <xsl:apply-templates select="ooclass[1]" mode="java"/> + <xsl:if test="ooclass[position() > 1]"> + <xsl:text> extends</xsl:text> + <xsl:apply-templates select="ooclass[position() > 1]" mode="java"/> + <xsl:if test="oointerface|ooexception"> + <xsl:text>&RE; </xsl:text> + </xsl:if> + </xsl:if> + <xsl:if test="oointerface"> + <xsl:text>implements</xsl:text> + <xsl:apply-templates select="oointerface" mode="java"/> + <xsl:if test="ooexception"> + <xsl:text>&RE; </xsl:text> + </xsl:if> + </xsl:if> + <xsl:if test="ooexception"> + <xsl:text>throws</xsl:text> + <xsl:apply-templates select="ooexception" mode="java"/> + </xsl:if> + <xsl:text> {&RE;&RE;</xsl:text> + <xsl:apply-templates select="constructorsynopsis + |destructorsynopsis + |fieldsynopsis + |methodsynopsis + |classsynopsisinfo" mode="java"/> + <xsl:text>}</xsl:text> + </pre> + </xsl:template> + + <xsl:template match="classsynopsisinfo" mode="java"> + <xsl:apply-templates mode="java"/> + </xsl:template> + + <xsl:template match="ooclass|oointerface|ooexception" mode="java"> + <xsl:choose> + <xsl:when test="position() > 1"> + <xsl:text>, </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text> </xsl:text> + </xsl:otherwise> + </xsl:choose> + + <xsl:apply-templates mode="java"/> + + </xsl:template> + + <xsl:template match="modifier" mode="java"> + + <xsl:apply-templates mode="java"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="classname" mode="java"> + <xsl:if test="name(preceding-sibling::*[1]) = 'classname'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="java"/> + + </xsl:template> + + <xsl:template match="interfacename" mode="java"> + <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="java"/> + + </xsl:template> + + <xsl:template match="exceptionname" mode="java"> + <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="java"/> + + </xsl:template> + + <xsl:template match="fieldsynopsis" mode="java"> + + <xsl:text> </xsl:text> + <xsl:apply-templates mode="java"/> + <xsl:text>;</xsl:text> + + </xsl:template> + + <xsl:template match="type" mode="java"> + + <xsl:apply-templates mode="java"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="varname" mode="java"> + + <xsl:apply-templates mode="java"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="initializer" mode="java"> + + <xsl:text>= </xsl:text> + <xsl:apply-templates mode="java"/> + + </xsl:template> + + <xsl:template match="void" mode="java"> + + <xsl:text>void </xsl:text> + + </xsl:template> + + <xsl:template match="methodname" mode="java"> + + <xsl:apply-templates mode="java"/> + </xsl:template> + + + + + <xsl:template match="methodparam" mode="java"> + <!-- PARAM: indent := 0 --> + <xsl:param name="indent">0</xsl:param> + <xsl:if test="position() > 1"> + <xsl:text>,&RE;</xsl:text> + <xsl:if test="$indent > 0"> + <!-- RCAS FIXME: copy-string does not exist + <xsl:call-template name="copy-string"> + <xsl:with-param name="string"> </xsl:with-param> + <xsl:with-param name="count" select="$indent + 1"/> + </xsl:call-template> + --> + </xsl:if> + </xsl:if> + <xsl:apply-templates mode="java"/> + </xsl:template> + + + + <xsl:template match="parameter" mode="java"> + <xsl:apply-templates mode="java"/> + </xsl:template> + + <xsl:template mode="java" + match="constructorsynopsis|destructorsynopsis|methodsynopsis"> + <xsl:variable name="modifiers" select="modifier"/> + <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/> + <xsl:variable name="decl"> + <xsl:text> </xsl:text> + <xsl:apply-templates select="$modifiers" mode="java"/> + + <!-- type --> + <xsl:if test="name($notmod[1]) != 'methodname'"> + <xsl:apply-templates select="$notmod[1]" mode="java"/> + </xsl:if> + + <xsl:apply-templates select="methodname" mode="java"/> + </xsl:variable> + + + <xsl:copy-of select="$decl"/> + <xsl:text>(</xsl:text> + <xsl:apply-templates select="methodparam" mode="java"> + <xsl:with-param name="indent" select="string-length($decl)"/> + </xsl:apply-templates> + <xsl:text>)</xsl:text> + <xsl:if test="exceptionname"> + <xsl:text>&RE; throws </xsl:text> + <xsl:apply-templates select="exceptionname" mode="java"/> + </xsl:if> + <xsl:text>;</xsl:text> + + </xsl:template> + + <!-- ===== C++ ========================================================= --> + + <xsl:template match="classsynopsis" mode="cpp"> + <pre class="{name(.)}"> + <xsl:apply-templates select="ooclass[1]" mode="cpp"/> + <xsl:if test="ooclass[position() > 1]"> + <xsl:text>: </xsl:text> + <xsl:apply-templates select="ooclass[position() > 1]" mode="cpp"/> + <xsl:if test="oointerface|ooexception"> + <xsl:text>&RE; </xsl:text> + </xsl:if> + </xsl:if> + <xsl:if test="oointerface"> + <xsl:text> implements</xsl:text> + <xsl:apply-templates select="oointerface" mode="cpp"/> + <xsl:if test="ooexception"> + <xsl:text>&RE; </xsl:text> + </xsl:if> + </xsl:if> + <xsl:if test="ooexception"> + <xsl:text> throws</xsl:text> + <xsl:apply-templates select="ooexception" mode="cpp"/> + </xsl:if> + <xsl:text> {&RE;&RE;</xsl:text> + <xsl:apply-templates select="constructorsynopsis + |destructorsynopsis + |fieldsynopsis + |methodsynopsis + |classsynopsisinfo" mode="cpp"/> + <xsl:text>}</xsl:text> + </pre> + </xsl:template> + + <xsl:template match="classsynopsisinfo" mode="cpp"> + <xsl:apply-templates mode="cpp"/> + </xsl:template> + + <xsl:template match="ooclass|oointerface|ooexception" mode="cpp"> + <xsl:if test="position() > 1"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="cpp"/> + + </xsl:template> + + <xsl:template match="modifier" mode="cpp"> + + <xsl:apply-templates mode="cpp"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="classname" mode="cpp"> + <xsl:if test="name(preceding-sibling::*[1]) = 'classname'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="cpp"/> + + </xsl:template> + + <xsl:template match="interfacename" mode="cpp"> + <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="cpp"/> + + </xsl:template> + + <xsl:template match="exceptionname" mode="cpp"> + <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="cpp"/> + + </xsl:template> + + <xsl:template match="fieldsynopsis" mode="cpp"> + + <xsl:text> </xsl:text> + <xsl:apply-templates mode="cpp"/> + <xsl:text>;</xsl:text> + + </xsl:template> + + <xsl:template match="type" mode="cpp"> + + <xsl:apply-templates mode="cpp"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="varname" mode="cpp"> + + <xsl:apply-templates mode="cpp"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="initializer" mode="cpp"> + + <xsl:text>= </xsl:text> + <xsl:apply-templates mode="cpp"/> + + </xsl:template> + + <xsl:template match="void" mode="cpp"> + + <xsl:text>void </xsl:text> + + </xsl:template> + + <xsl:template match="methodname" mode="cpp"> + + <xsl:apply-templates mode="cpp"/> + + </xsl:template> + + <xsl:template match="methodparam" mode="cpp"> + <xsl:if test="position() > 1"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="cpp"/> + + </xsl:template> + + <xsl:template match="parameter" mode="cpp"> + + <xsl:apply-templates mode="cpp"/> + + </xsl:template> + + <xsl:template mode="cpp" + match="constructorsynopsis|destructorsynopsis|methodsynopsis"> + <xsl:variable name="modifiers" select="modifier"/> + <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/> + <xsl:variable name="type"> + </xsl:variable> + + <xsl:text> </xsl:text> + <xsl:apply-templates select="$modifiers" mode="cpp"/> + + <!-- type --> + <xsl:if test="name($notmod[1]) != 'methodname'"> + <xsl:apply-templates select="$notmod[1]" mode="cpp"/> + </xsl:if> + + <xsl:apply-templates select="methodname" mode="cpp"/> + <xsl:text>(</xsl:text> + <xsl:apply-templates select="methodparam" mode="cpp"/> + <xsl:text>)</xsl:text> + <xsl:if test="exceptionname"> + <xsl:text>&RE; throws </xsl:text> + <xsl:apply-templates select="exceptionname" mode="cpp"/> + </xsl:if> + <xsl:text>;</xsl:text> + + </xsl:template> + + <!-- ===== IDL ========================================================= --> + + <xsl:template match="classsynopsis" mode="idl"> + <pre class="{name(.)}"> + <xsl:text>interface </xsl:text> + <xsl:apply-templates select="ooclass[1]" mode="idl"/> + <xsl:if test="ooclass[position() > 1]"> + <xsl:text>: </xsl:text> + <xsl:apply-templates select="ooclass[position() > 1]" mode="idl"/> + <xsl:if test="oointerface|ooexception"> + <xsl:text>&RE; </xsl:text> + </xsl:if> + </xsl:if> + <xsl:if test="oointerface"> + <xsl:text> implements</xsl:text> + <xsl:apply-templates select="oointerface" mode="idl"/> + <xsl:if test="ooexception"> + <xsl:text>&RE; </xsl:text> + </xsl:if> + </xsl:if> + <xsl:if test="ooexception"> + <xsl:text> throws</xsl:text> + <xsl:apply-templates select="ooexception" mode="idl"/> + </xsl:if> + <xsl:text> {&RE;&RE;</xsl:text> + <xsl:apply-templates select="constructorsynopsis + |destructorsynopsis + |fieldsynopsis + |methodsynopsis + |classsynopsisinfo" mode="idl"/> + <xsl:text>}</xsl:text> + </pre> + </xsl:template> + + <xsl:template match="classsynopsisinfo" mode="idl"> + <xsl:apply-templates mode="idl"/> + </xsl:template> + + <xsl:template match="ooclass|oointerface|ooexception" mode="idl"> + <xsl:if test="position() > 1"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="idl"/> + + </xsl:template> + + <xsl:template match="modifier" mode="idl"> + + <xsl:apply-templates mode="idl"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="classname" mode="idl"> + <xsl:if test="name(preceding-sibling::*[1]) = 'classname'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="idl"/> + + </xsl:template> + + <xsl:template match="interfacename" mode="idl"> + <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="idl"/> + + </xsl:template> + + <xsl:template match="exceptionname" mode="idl"> + <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="idl"/> + + </xsl:template> + + <xsl:template match="fieldsynopsis" mode="idl"> + + <xsl:text> </xsl:text> + <xsl:apply-templates mode="idl"/> + <xsl:text>;</xsl:text> + + </xsl:template> + + <xsl:template match="type" mode="idl"> + + <xsl:apply-templates mode="idl"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="varname" mode="idl"> + + <xsl:apply-templates mode="idl"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="initializer" mode="idl"> + + <xsl:text>= </xsl:text> + <xsl:apply-templates mode="idl"/> + + </xsl:template> + + <xsl:template match="void" mode="idl"> + + <xsl:text>void </xsl:text> + + </xsl:template> + + <xsl:template match="methodname" mode="idl"> + + <xsl:apply-templates mode="idl"/> + + </xsl:template> + + <xsl:template match="methodparam" mode="idl"> + <xsl:if test="position() > 1"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="idl"/> + + </xsl:template> + + <xsl:template match="parameter" mode="idl"> + + <xsl:apply-templates mode="idl"/> + + </xsl:template> + + <xsl:template mode="idl" + match="constructorsynopsis|destructorsynopsis|methodsynopsis"> + <xsl:variable name="modifiers" select="modifier"/> + <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/> + <xsl:variable name="type"> + </xsl:variable> + + <xsl:text> </xsl:text> + <xsl:apply-templates select="$modifiers" mode="idl"/> + + <!-- type --> + <xsl:if test="name($notmod[1]) != 'methodname'"> + <xsl:apply-templates select="$notmod[1]" mode="idl"/> + </xsl:if> + + <xsl:apply-templates select="methodname" mode="idl"/> + <xsl:text>(</xsl:text> + <xsl:apply-templates select="methodparam" mode="idl"/> + <xsl:text>)</xsl:text> + <xsl:if test="exceptionname"> + <xsl:text>&RE; raises(</xsl:text> + <xsl:apply-templates select="exceptionname" mode="idl"/> + <xsl:text>)</xsl:text> + </xsl:if> + <xsl:text>;</xsl:text> + + </xsl:template> + + + + + + <!-- ===== Perl ======================================================== --> + + <xsl:template match="classsynopsis" mode="perl"> + <pre class="{name(.)}"> + <xsl:text>package </xsl:text> + <xsl:apply-templates select="ooclass[1]" mode="perl"/> + <xsl:text>;&RE;</xsl:text> + + <xsl:if test="ooclass[position() > 1]"> + <xsl:text>@ISA = (</xsl:text> + <xsl:apply-templates select="ooclass[position() > 1]" mode="perl"/> + <xsl:text>);&RE;</xsl:text> + </xsl:if> + + <xsl:apply-templates select="constructorsynopsis + |destructorsynopsis + |fieldsynopsis + |methodsynopsis + |classsynopsisinfo" mode="perl"/> + </pre> + </xsl:template> + + <xsl:template match="classsynopsisinfo" mode="perl"> + <xsl:apply-templates mode="perl"/> + </xsl:template> + + <xsl:template match="ooclass|oointerface|ooexception" mode="perl"> + <xsl:if test="position() > 1"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="perl"/> + + </xsl:template> + + <xsl:template match="modifier" mode="perl"> + + <xsl:apply-templates mode="perl"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="classname" mode="perl"> + <xsl:if test="name(preceding-sibling::*[1]) = 'classname'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="perl"/> + + </xsl:template> + + <xsl:template match="interfacename" mode="perl"> + <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="perl"/> + + </xsl:template> + + <xsl:template match="exceptionname" mode="perl"> + <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'"> + <xsl:text>, </xsl:text> + </xsl:if> + + <xsl:apply-templates mode="perl"/> + + </xsl:template> + + <xsl:template match="fieldsynopsis" mode="perl"> + + <xsl:text> </xsl:text> + <xsl:apply-templates mode="perl"/> + <xsl:text>;</xsl:text> + + </xsl:template> + + <xsl:template match="type" mode="perl"> + + <xsl:apply-templates mode="perl"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="varname" mode="perl"> + + <xsl:apply-templates mode="perl"/> + <xsl:text> </xsl:text> + + </xsl:template> + + <xsl:template match="initializer" mode="perl"> + + <xsl:text>= </xsl:text> + <xsl:apply-templates mode="perl"/> + + </xsl:template> + + <xsl:template match="void" mode="perl"> + + <xsl:text>void </xsl:text> + + </xsl:template> + + + + <xsl:template match="methodname" mode="perl"> + <xsl:apply-templates mode="perl"/> + </xsl:template> + + <xsl:template match="methodparam" mode="perl"> + <xsl:if test="position() > 1"> <xsl:text>, </xsl:text> </xsl:if> + <xsl:apply-templates mode="perl"/> + </xsl:template> + + + <xsl:template match="parameter" mode="perl"> + <xsl:apply-templates mode="perl"/> + </xsl:template> + + + <xsl:template mode="perl" match="constructorsynopsis|destructorsynopsis|methodsynopsis"> + <xsl:variable name="modifiers" select="modifier"/> + <xsl:variable name="notmod" select="*[name(.) != 'modifier']"/> + <xsl:variable name="type"> </xsl:variable> + + <xsl:text>sub </xsl:text> + + <xsl:apply-templates select="methodname" mode="perl"/> + <xsl:text> { ... };</xsl:text> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/synop-struct.mod.xsl b/docs/docbook/xslt/db2latex/synop-struct.mod.xsl new file mode 100644 index 0000000000..1fef51e62e --- /dev/null +++ b/docs/docbook/xslt/db2latex/synop-struct.mod.xsl @@ -0,0 +1,248 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: synop-struct.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + <xsl:template match="synopsis"> + <xsl:call-template name="label.id"/> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="cmdsynopsis"> + <xsl:call-template name="label.id"/> + <xsl:text> \begin{list}{}{\setlength{\itemindent}{-\leftmargin}\setlength{\parsep}{0mm}} </xsl:text> + <xsl:if test="@label!=''"> + <xsl:text>\item\textbf{</xsl:text> + <xsl:call-template name="normalize-scape"><xsl:with-param name="string" select="@label"/></xsl:call-template> + <xsl:text>} </xsl:text> + </xsl:if> + <xsl:text>\item\raggedright\texttt{</xsl:text> + <xsl:apply-templates/> + <xsl:text>} </xsl:text> + <xsl:text>\end{list} </xsl:text> + </xsl:template> + + + <xsl:template match="cmdsynopsis/command"> + <xsl:apply-templates /> + </xsl:template> + + + <xsl:template match="cmdsynopsis//replaceable" priority="2"> + <xsl:text>{\itshape </xsl:text> + <xsl:apply-templates /> + <xsl:text>}</xsl:text> + </xsl:template> + + + <xsl:template match="group|arg"> + <xsl:variable name="choice" select="@choice"/> + <xsl:variable name="rep" select="@rep"/> + <xsl:variable name="sepchar"> + <xsl:choose> + <xsl:when test="ancestor-or-self::*/@sepchar"> + <xsl:value-of select="ancestor-or-self::*/@sepchar"/> + </xsl:when> + <xsl:otherwise> + <xsl:text> </xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:if test="position()>1"><xsl:value-of select="$sepchar"/></xsl:if> + <xsl:choose> + <xsl:when test="$choice='plain'"> + <xsl:value-of select="$arg.choice.plain.open.str"/> + </xsl:when> + <xsl:when test="$choice='req'"> + <xsl:value-of select="$arg.choice.req.open.str"/> + </xsl:when> + <xsl:when test="$choice='opt'"> + <xsl:value-of select="$arg.choice.opt.open.str"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$arg.choice.def.open.str"/> + </xsl:otherwise> + </xsl:choose> + <xsl:apply-templates/> + <xsl:choose> + <xsl:when test="$rep='repeat'"> + <xsl:value-of select="$arg.rep.repeat.str"/> + </xsl:when> + <xsl:when test="$rep='norepeat'"> + <xsl:value-of select="$arg.rep.norepeat.str"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$arg.rep.def.str"/> + </xsl:otherwise> + </xsl:choose> + <xsl:choose> + <xsl:when test="$choice='plain'"> + <xsl:value-of select="$arg.choice.plain.close.str"/> + </xsl:when> + <xsl:when test="$choice='req'"> + <xsl:value-of select="$arg.choice.req.close.str"/> + </xsl:when> + <xsl:when test="$choice='opt'"> + <xsl:value-of select="$arg.choice.opt.close.str"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$arg.choice.def.close.str"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="group/arg"> + <xsl:variable name="choice" select="@choice"/> + <xsl:variable name="rep" select="@rep"/> + <xsl:if test="position()>1"><xsl:value-of select="$arg.or.sep"/></xsl:if> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="sbr"> + <xsl:text> </xsl:text> + </xsl:template> + + <!-- ==================================================================== --> + + <xsl:template match="synopfragmentref"> + <!-- VAR target : --> + <xsl:variable name="target" select="id(@linkend)"/> + <!-- VAR snum : --> + <xsl:variable name="snum"> + <xsl:apply-templates select="$target" mode="synopfragment.number"/> + </xsl:variable> + + <xsl:text> {\em (</xsl:text> <xsl:value-of select="$snum"/> <xsl:text>) }</xsl:text> + </xsl:template> + + <xsl:template match="synopfragment" mode="synopfragment.number"> + <xsl:number format="1"/> + </xsl:template> + + <xsl:template match="synopfragment"> + <xsl:variable name="snum"> + <xsl:apply-templates select="." mode="synopfragment.number"/> + </xsl:variable> + <p> + <a name="#{@id}"> + <xsl:text>(</xsl:text> + <xsl:value-of select="$snum"/> + <xsl:text>)</xsl:text> + </a> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + </p> + </xsl:template> + + + <xsl:template match="funcsynopsis"> + <xsl:call-template name="informal.object"/> + </xsl:template> + + + <xsl:template match="funcsynopsisinfo"> + <xsl:call-template name="verbatim.apply.templates"/> + </xsl:template> + + + <xsl:template match="funcprototype"> + <xsl:apply-templates/> + <xsl:if test="$funcsynopsis.style='kr'"> + <xsl:apply-templates select="./paramdef" mode="kr-funcsynopsis-mode"/> + </xsl:if> + </xsl:template> + + <xsl:template match="funcdef"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="funcdef/function"> + <xsl:choose> + <xsl:when test="$funcsynopsis.decoration != 0"> + <xsl:text>\textbf{ </xsl:text><xsl:apply-templates/><xsl:text> } </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <xsl:template match="void"> + <xsl:choose> + <xsl:when test="$funcsynopsis.style='ansi'"> + <xsl:text>(void);</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>();</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="varargs"> + <xsl:text>( ... );</xsl:text> + </xsl:template> + + <xsl:template match="paramdef"> + <!-- VAR paramnum --> + <xsl:variable name="paramnum"> <xsl:number count="paramdef" format="1"/> </xsl:variable> + + <xsl:if test="$paramnum=1">(</xsl:if> + <xsl:choose> + <xsl:when test="$funcsynopsis.style='ansi'"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="./parameter"/> + </xsl:otherwise> + </xsl:choose> + <xsl:choose> + <xsl:when test="following-sibling::paramdef"> + <xsl:text>, </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>);</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + <xsl:template match="paramdef/parameter"> + <xsl:choose> + <xsl:when test="$funcsynopsis.decoration != 0"> + <xsl:apply-templates/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="following-sibling::parameter"> + <xsl:text>, </xsl:text> + </xsl:if> + </xsl:template> + + + + <xsl:template match="paramdef" mode="kr-funcsynopsis-mode"> + \newline + <xsl:apply-templates/> + <xsl:text>;</xsl:text> + </xsl:template> + + <xsl:template match="funcparams"> + <xsl:text>(</xsl:text> + <xsl:apply-templates/> + <xsl:text>)</xsl:text> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/table.mod.xsl b/docs/docbook/xslt/db2latex/table.mod.xsl new file mode 100644 index 0000000000..31085b9093 --- /dev/null +++ b/docs/docbook/xslt/db2latex/table.mod.xsl @@ -0,0 +1,746 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: table.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="table" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: table.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <firstname>Ramon</firstname> <surname>Casellas</surname> + <firstname>James</firstname> <surname>Devenish</surname> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Tables <filename>table.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="table|informaltable" xmlns=""> + <refpurpose>XSL template for docbook tables. </refpurpose> + <refdescription> + <para></para> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + </itemizedlist> + </formalpara> + <formalpara><title>Default Behaviour</title> + <screen></screen> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="table"> + <xsl:variable name="placement"> + <xsl:call-template name="generate.formal.title.placement"> + <xsl:with-param name="object" select="local-name(.)" /> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="caption"> + <xsl:text>\caption{</xsl:text> + <xsl:apply-templates select="title" mode="caption.mode"/> + <xsl:text>} </xsl:text> + </xsl:variable> + <xsl:call-template name="map.begin"/> + <xsl:if test="$placement='before'"> + <xsl:text>\captionswapskip{}</xsl:text> + <xsl:value-of select="$caption" /> + <xsl:text>\captionswapskip{}</xsl:text> + </xsl:if> + <xsl:apply-templates/> + <xsl:if test="$placement!='before'"><xsl:value-of select="$caption" /></xsl:if> + <xsl:call-template name="map.end"/> + </xsl:template> + + <xsl:template match="table/title"/> + <xsl:template match="table/title" mode="caption.mode"><xsl:apply-templates /></xsl:template> + + <xsl:template match="informaltable"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + <xsl:call-template name="map.end"/> + </xsl:template> + + + <xsl:template name="table.format.tabularx"> + <xsl:param name="cols" select="1"/> + <xsl:param name="i" select="1"/> + <xsl:param name="colsep" select="1"/> + <!-- sum of numeric portions in 1*-like colwidths --> + <xsl:param name="starfactor" select="0"/> + <xsl:choose> + <!-- Out of the recursive iteration --> + <xsl:when test="$i > $cols"></xsl:when> + <!-- There are still columns to count --> + <xsl:otherwise> + <xsl:variable name="width"> + <xsl:variable name="userchoice" select="colspec[@colnum=$i]/@colwidth"/> + <xsl:variable name="cells" select="thead/row/entry[$i]|tbody/row/entry[$i]"/> + <xsl:choose> + <xsl:when test="string-length($userchoice)=0 and count($cells//itemizedlist|$cells//orderedlist|$cells//variablelist)>0"> + <!-- In these specific circumstances, we MUST use a line-wrapped column + and yet the user hasn't specified one. --> + <xsl:value-of select="'1*'"/> + </xsl:when> + <xsl:otherwise> + <!-- In the general case, we just do what the user wants (may even + have no pre-specified width). --> + <xsl:value-of select="$userchoice"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <!-- Try to take heed of colspecs --> + <xsl:choose> + <xsl:when test="$width!=''"> + <xsl:text>>{</xsl:text> + <xsl:if test="contains($width,'*')"> + <!-- see tabularx documentation --> + <xsl:text>\hsize=</xsl:text> + <xsl:value-of select="substring-before($width,'*') * $starfactor" /> + <xsl:text>\hsize</xsl:text> + </xsl:if> + <xsl:choose> + <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>\RaggedRight</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>\RaggedLeft</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>\Centering</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when> + </xsl:choose> + <xsl:text>}</xsl:text> + <xsl:choose> + <xsl:when test="contains($width,'*')"> + <xsl:text>X</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>p{</xsl:text><xsl:value-of select="$width" /><xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="$i<$cols and $colsep='1'"> + <xsl:text>|</xsl:text> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <xsl:choose> + <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>l</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>r</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>c</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='justify'"><xsl:text>X</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:text>c</xsl:text><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when> + <xsl:otherwise><xsl:text>c</xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:if test="$i<$cols and $colsep='1'"> + <xsl:text>|</xsl:text> + </xsl:if> + </xsl:otherwise> + </xsl:choose> + <!-- Recursive for next column --> + <xsl:call-template name="table.format.tabularx"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="starfactor" select="$starfactor"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <!-- FIX THIS --> + <xsl:template name="table.format.tabular"> + <xsl:param name="cols" select="1"/> + <xsl:param name="i" select="1"/> + <xsl:param name="colsep" select="1"/> + <xsl:choose> + <!-- Out of the recursive iteration --> + <xsl:when test="$i > $cols"></xsl:when> + <!-- There are still columns to count --> + <xsl:otherwise> + <!-- Try to take heed of colspecs --> + <xsl:choose> + <!-- RC 2003/03/19 : Added first 'test' : colspec[@colnum=$i] for xsltproc + Before this patch, parsing the doc with xsltproc the xsl:when clause + was evaluated to 'true' even if there was no colspec for the column + --> + <xsl:when test="colspec[@colnum=$i] and colspec[@colnum=$i]/@colwidth!='' and not(contains(colspec[@colnum=$i]/@colwidth,'*'))"> + <xsl:choose> + <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>>{\RaggedRight}</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>>{\RaggedLeft}</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>>{\Centering}</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when> + </xsl:choose> + <xsl:text>p{</xsl:text><xsl:value-of select="colspec[@colnum=$i]/@colwidth" /><xsl:text>}</xsl:text> + <xsl:if test="$i<$cols and $colsep='1'"> + <xsl:text>|</xsl:text> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <xsl:choose> + <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>l</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>r</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>c</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='justify'"><xsl:text>l</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:text>c</xsl:text><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when> + <xsl:otherwise><xsl:text>c</xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:if test="$i<$cols and $colsep='1'"> + <xsl:text>|</xsl:text> + </xsl:if> + </xsl:otherwise> + </xsl:choose> + <!-- Recursive for next column --> + <xsl:call-template name="table.format.tabular"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + <!-- See tabularx documentation. --> + <!-- For example, if we have a 1* column and a 3* column, then the + the hsizes for each column are (1/(1+3)*2) and (3/(1+3)*2). + The ratio of these to the star values (star values being 1 and 3) + is 2/(1+3). + BUT it is now very complicated because it takes into account columns + where the user has not specified a width but LaTeX requires a + fixed-width column (i.e. specialcols may vary). + Relies on there being (a) colspecs for every column or (b) no + colspecs. + --> + <xsl:template name="generate.starfactor"> + <xsl:param name="i" select="1"/> + <xsl:param name="cols" select="count(colspec)"/> + <xsl:param name="sum" select="0"/> + <xsl:param name="specialcols" select="count(colspec[contains(@colwidth,'*')])"/> + <xsl:choose> + <xsl:when test="$i<=$cols and colspec[position()=$i and contains(@colwidth,'*')]"> + <!-- a * column --> + <xsl:call-template name="generate.starfactor"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="sum" select="$sum+substring-before(colspec[$i]/@colwidth,'*')"/> + <xsl:with-param name="specialcols" select="$specialcols"/> + </xsl:call-template> + </xsl:when> + <xsl:when test="$i<=$cols"> + <!-- not a * column, but we are going to pretend that it is --> + <xsl:variable name="cells" select="thead/row/entry[$i]|tbody/row/entry[$i]"/> + <xsl:variable name="problems" select="count($cells//itemizedlist|$cells//orderedlist|$cells//variablelist)"/> + <xsl:choose> + <xsl:when test="$problems > 0"> + <xsl:call-template name="generate.starfactor"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="sum" select="$sum+1"/> + <xsl:with-param name="specialcols" select="$specialcols+1"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="generate.starfactor"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="sum" select="$sum"/> + <xsl:with-param name="specialcols" select="$specialcols"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$specialcols div $sum"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <xsl:template match="tgroup"> + <xsl:variable name="align" select="@align"/> + <xsl:variable name="frame"> + <xsl:choose> + <xsl:when test="string-length(../@frame)<1">all</xsl:when> + <xsl:otherwise> + <xsl:value-of select="../@frame"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:variable name="colspecs" select="./colspec"/> + <xsl:variable name="usex"> + <xsl:choose> + <!-- if there are lists within cells, we need tabularx --> + <xsl:when test="$latex.use.tabularx=1 and (descendant::itemizedlist|descendant::orderedlist|descendant::variablelist)"> + <xsl:text>1</xsl:text> + </xsl:when> + <!-- if there are instances of 1*-style colwidths, we need tabularx --> + <xsl:when test="$latex.use.tabularx=1 and contains(colspec/@colwidth,'*')"> + <xsl:text>1</xsl:text> + </xsl:when> + <!-- if there are colspecs with 'justify' alignment and no explicit width, we need tabularx --> + <xsl:when test="$latex.use.tabularx=1 and count(colspec[@align='justify'])>0"> + <xsl:text>1</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>0</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:variable name="useminipage"> + <!-- Hack to get around LaTeX issue with tabular (not necessary with tabularx). + This is NOT a good solution, and has problems of its own, but at least the footnotes + do not actually disappear (which is what would otherwise happen). --> + <xsl:if test="count(.//footnote)!=0">1</xsl:if> + </xsl:variable> + <xsl:choose> + <xsl:when test="$usex='1'"> + <xsl:text>\begin{tabularx}{\linewidth}{</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:if test="$useminipage='1'"><xsl:text>\begin{minipage}{\linewidth} </xsl:text></xsl:if> + <xsl:text>\begin{tabular}{</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="$frame='all' or $frame='sides'"> + <xsl:text>|</xsl:text> + </xsl:if> + <xsl:choose> + <xsl:when test="$usex=1"> + <xsl:call-template name="table.format.tabularx"> + <xsl:with-param name="cols" select="@cols"/> + <xsl:with-param name="starfactor"> + <xsl:call-template name="generate.starfactor"> + <xsl:with-param name="cols" select="@cols"/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="table.format.tabular"> + <xsl:with-param name="cols" select="@cols"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="$frame='all' or $frame='sides'"> + <xsl:text>|</xsl:text> + </xsl:if> + <xsl:text>} </xsl:text> + <xsl:if test="$frame!='sides' and $frame!='none' and $frame!='bottom'"> + <xsl:text>\hline </xsl:text> + </xsl:if> + <!-- APPLY TEMPLATES --> + <xsl:apply-templates/> + <!-- --> + <xsl:if test="$frame!='sides' and $frame!='none' and $frame!='top'"> + <xsl:text>\hline </xsl:text> + </xsl:if> + <xsl:choose> + <xsl:when test="$usex=1"> + <xsl:text>\end{tabularx} </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\end{tabular} </xsl:text> + <xsl:if test="$useminipage='1'"><xsl:text>\end{minipage} </xsl:text></xsl:if> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + <!-- + <xsl:template name="generate.col"> + <xsl:param name="countcol">1</xsl:param> + </xsl:template> + --> + + <xsl:template match="colspec"></xsl:template> + <xsl:template match="spanspec"></xsl:template> + + + + + <xsl:template match="thead|tfoot"> + <xsl:if test="@align"> + <xsl:attribute name="align"> + <xsl:value-of select="@align"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@char"> + <xsl:attribute name="char"> + <xsl:value-of select="@char"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@charoff"> + <xsl:attribute name="charoff"> + <xsl:value-of select="@charoff"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@valign"> + <xsl:attribute name="valign"> + <xsl:value-of select="@valign"/> + </xsl:attribute> + </xsl:if> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="thead/row/entry|tfoot/row/entry"> + <xsl:call-template name="latex.entry.prealign"/> + <xsl:call-template name="latex.thead.row.entry"/> + <xsl:call-template name="latex.entry.postalign"/> + <xsl:choose> + <xsl:when test="position()=last()"><xsl:text> \tabularnewline </xsl:text></xsl:when> + <xsl:otherwise><xsl:call-template name="generate.latex.cell.separator"/></xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="tbody"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="row"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="tbody/row|thead/row|tfoot/row"> + <xsl:apply-templates/> + <!-- The rule below the last row in the table is controlled by the + Frame attribute of the enclosing Table or InformalTable and the RowSep + of the last row is ignored. If unspecified, this attribute is + inherited from enclosing elements, rowsep=1 by default. --> + <xsl:variable name="parent_position" select="count(../preceding-sibling::node())+1"/> + <xsl:variable name="grandparent_children" select="count(../../child::node())"/> + <xsl:if test="(count(@rowsep)=0 or @rowsep='1') and (position() != last() or $parent_position < $grandparent_children)"> + <xsl:text> \hline </xsl:text> + </xsl:if> + </xsl:template> + + + <xsl:template match="tbody/row/entry"> + <xsl:call-template name="latex.entry.prealign"/> + <xsl:apply-templates/> + <xsl:call-template name="latex.entry.postalign"/> + <xsl:choose> + <xsl:when test="position()=last()"><xsl:text> \tabularnewline </xsl:text></xsl:when> + <xsl:otherwise><xsl:call-template name="generate.latex.cell.separator"/></xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <xsl:template name="latex.entry.prealign"> + <xsl:variable name="span"> + <xsl:choose> + <xsl:when test="@spanname!=''"> + <xsl:call-template name="calculate.colspan"> + <xsl:with-param name="namest" select="../../../spanspec[@spanname=@spanname]/@namest"/> + <xsl:with-param name="nameend" select="../../../spanspec[@spanname=@spanname]/@nameend"/> + </xsl:call-template> + </xsl:when> + <xsl:when test="@namest!=''"> + <xsl:call-template name="calculate.colspan"/> + </xsl:when> + <xsl:otherwise>-1</xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:if test="$span > 1"> + <xsl:text>\multicolumn{</xsl:text> + <xsl:value-of select="$span"/> + <xsl:text>|}{</xsl:text><!-- TODO take heed of @colsep --> + <xsl:choose> + <xsl:when test="@align='left'"><xsl:text>l</xsl:text></xsl:when> + <xsl:when test="@align='right'"><xsl:text>r</xsl:text></xsl:when> + <xsl:when test="@align='center'"><xsl:text>c</xsl:text></xsl:when> + <xsl:when test="@align='char'">c<xsl:message>Table entry char alignment is not supported.</xsl:message></xsl:when> + <xsl:otherwise>c</xsl:otherwise> + </xsl:choose> + <!-- use this as a hook for some general warnings --> + <xsl:text>}</xsl:text> + </xsl:if> + <!-- this is used when the entry's align spec wants to override the column default --> + <xsl:if test="$span < 1"> + <xsl:choose> + <xsl:when test="@align='left'"><xsl:text>\docbooktolatexalignll </xsl:text></xsl:when> + <xsl:when test="@align='right'"><xsl:text>\docbooktolatexalignrl </xsl:text></xsl:when> + <xsl:when test="@align='center'"><xsl:text>\docbooktolatexaligncl </xsl:text></xsl:when> + <xsl:when test="@align='char'"><xsl:message>Table entry char alignment is not supported.</xsl:message></xsl:when> + </xsl:choose> + </xsl:if> + <xsl:text>{</xsl:text> + <xsl:if test="@rotate='1'"> + <xsl:text>\rotatebox{90}</xsl:text> + <xsl:if test="@align!=''"><xsl:message>entry[@rotate='1' and @align!=''] probably doesn't work.</xsl:message></xsl:if> + </xsl:if> + <xsl:text>{</xsl:text> + <!-- use this as a hook for some general warnings --> + <xsl:if test="@morerows!=''"><xsl:message>The morerows attribute is not supported.</xsl:message></xsl:if> + </xsl:template> + + <xsl:template name="latex.entry.postalign"> + <xsl:text>}}</xsl:text> + <!-- this is used when the entry's align spec wants to override the column default --> + <xsl:if test="@namest='' and @spanspec=''"><!-- TODO improve --> + <xsl:choose> + <xsl:when test="@align='left'"><xsl:text>\docbooktolatexalignlr </xsl:text></xsl:when> + <xsl:when test="@align='right'"><xsl:text>\docbooktolatexalignrr </xsl:text></xsl:when> + <xsl:when test="@align='center'"><xsl:text>\docbooktolatexaligncr </xsl:text></xsl:when> + </xsl:choose> + </xsl:if> + </xsl:template> + + + + + + + + + + + + + + <xsl:template name="process.cell"> + <xsl:param name="cellgi">td</xsl:param> + <xsl:variable name="empty.cell" select="count(node()) = 0"/> + + <xsl:element name="{$cellgi}"> + <xsl:if test="@morerows"> + <xsl:attribute name="rowspan"> + <xsl:value-of select="@morerows+1"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@namest"> + <xsl:attribute name="colspan"> + <xsl:call-template name="calculate.colspan"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@align"> + <xsl:attribute name="align"> + <xsl:value-of select="@align"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@char"> + <xsl:attribute name="char"> + <xsl:value-of select="@char"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@charoff"> + <xsl:attribute name="charoff"> + <xsl:value-of select="@charoff"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@valign"> + <xsl:attribute name="valign"> + <xsl:value-of select="@valign"/> + </xsl:attribute> + </xsl:if> + + <xsl:choose> + <xsl:when test="$empty.cell"> + <xsl:text> </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> + </xsl:element> + </xsl:template> + + <xsl:template name="generate.colgroup"> + <xsl:param name="cols" select="1"/> + <xsl:param name="count" select="1"/> + <xsl:choose> + <xsl:when test="$count>$cols"></xsl:when> + <xsl:otherwise> + <xsl:call-template name="generate.col"> + <xsl:with-param name="countcol" select="$count"/> + </xsl:call-template> + <xsl:call-template name="generate.colgroup"> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="count" select="$count+1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template name="generate.col"> + <xsl:param name="countcol">1</xsl:param> + <xsl:param name="colspecs" select="./colspec"/> + <xsl:param name="count">1</xsl:param> + <xsl:param name="colnum">1</xsl:param> + + <xsl:choose> + <xsl:when test="$count>count($colspecs)"> + <col/> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="colspec" select="$colspecs[$count=position()]"/> + <xsl:variable name="colspec.colnum"> + <xsl:choose> + <xsl:when test="$colspec/@colnum"> + <xsl:value-of select="$colspec/@colnum"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$colnum"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:choose> + <xsl:when test="$colspec.colnum=$countcol"> + <col> + <xsl:if test="$colspec/@align"> + <xsl:attribute name="align"> + <xsl:value-of select="$colspec/@align"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="$colspec/@char"> + <xsl:attribute name="char"> + <xsl:value-of select="$colspec/@char"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="$colspec/@charoff"> + <xsl:attribute name="charoff"> + <xsl:value-of select="$colspec/@charoff"/> + </xsl:attribute> + </xsl:if> + </col> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="generate.col"> + <xsl:with-param name="countcol" select="$countcol"/> + <xsl:with-param name="colspecs" select="$colspecs"/> + <xsl:with-param name="count" select="$count+1"/> + <xsl:with-param name="colnum"> + <xsl:choose> + <xsl:when test="$colspec/@colnum"> + <xsl:value-of select="$colspec/@colnum + 1"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$colnum + 1"/> + </xsl:otherwise> + </xsl:choose> + </xsl:with-param> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + + </xsl:template> + + <xsl:template name="colspec.colnum"> + <!-- when this macro is called, the current context must be an entry --> + <xsl:param name="colname"></xsl:param> + <!-- .. = row, ../.. = thead|tbody, ../../.. = tgroup --> + <xsl:param name="colspecs" select="../../../../tgroup/colspec"/> + <xsl:param name="count">1</xsl:param> + <xsl:param name="colnum">1</xsl:param> + <xsl:choose> + <xsl:when test="$count>count($colspecs)"></xsl:when> + <xsl:otherwise> + <xsl:variable name="colspec" select="$colspecs[$count=position()]"/> + <!-- + <xsl:value-of select="$count"/>: + <xsl:value-of select="$colspec/@colname"/>= + <xsl:value-of select="$colnum"/> + --> + <xsl:choose> + <xsl:when test="$colspec/@colname=$colname"> + <xsl:choose> + <xsl:when test="$colspec/@colnum"> + <xsl:value-of select="$colspec/@colnum"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$colnum"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="colspec.colnum"> + <xsl:with-param name="colname" select="$colname"/> + <xsl:with-param name="colspecs" select="$colspecs"/> + <xsl:with-param name="count" select="$count+1"/> + <xsl:with-param name="colnum"> + <xsl:choose> + <xsl:when test="$colspec/@colnum"> + <xsl:value-of select="$colspec/@colnum + 1"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$colnum + 1"/> + </xsl:otherwise> + </xsl:choose> + </xsl:with-param> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template name="colspec.colwidth"> + <!-- when this macro is called, the current context must be an entry --> + <xsl:param name="colname"></xsl:param> + <!-- .. = row, ../.. = thead|tbody, ../../.. = tgroup --> + <xsl:param name="colspecs" select="../../../../tgroup/colspec"/> + <xsl:param name="count">1</xsl:param> + <xsl:choose> + <xsl:when test="$count>count($colspecs)"></xsl:when> + <xsl:otherwise> + <xsl:variable name="colspec" select="$colspecs[$count=position()]"/> + <xsl:choose> + <xsl:when test="$colspec/@colname=$colname"> + <xsl:value-of select="$colspec/@colwidth"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="colspec.colwidth"> + <xsl:with-param name="colname" select="$colname"/> + <xsl:with-param name="colspecs" select="$colspecs"/> + <xsl:with-param name="count" select="$count+1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template name="calculate.colspan"> + <xsl:param name="namest" select="@namest"/> + <xsl:param name="nameend" select="@nameend"/> + <xsl:variable name="scol"> + <xsl:call-template name="colspec.colnum"> + <xsl:with-param name="colname" select="$namest"/> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="ecol"> + <xsl:call-template name="colspec.colnum"> + <xsl:with-param name="colname" select="$nameend"/> + </xsl:call-template> + </xsl:variable> + <xsl:value-of select="$ecol - $scol + 1"/> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/texmath.mod.xsl b/docs/docbook/xslt/db2latex/texmath.mod.xsl new file mode 100644 index 0000000000..84becee530 --- /dev/null +++ b/docs/docbook/xslt/db2latex/texmath.mod.xsl @@ -0,0 +1,120 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: texmath.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="texmath" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: texmath.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>LaTeX Only Commands <filename>texmath.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + <xsl:template match="alt"> + <xsl:choose> + <xsl:when test="ancestor::inlineequation and (@role='tex' or @role='latex' or $latex.alt.is.latex='1')"> + <xsl:text>\ensuremath{</xsl:text> + <xsl:value-of select="."/> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:when test="ancestor::equation|ancestor::informalequation and (@role='tex' or @role='latex' or $latex.alt.is.latex='1')"> + <xsl:text>\begin{displaymath}</xsl:text> + <xsl:call-template name="label.id"/> + <xsl:value-of select="."/> + <xsl:text>\end{displaymath} </xsl:text> + </xsl:when> + <xsl:when test="$latex.alt.is.latex='1'"> + <xsl:value-of select="."/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="latex|tex"> + <xsl:value-of select="."/> + </xsl:template> + + <xsl:template match="latex[@fileref]"> + <xsl:text>\input{</xsl:text><xsl:value-of select="@fileref"/><xsl:text>} </xsl:text> + </xsl:template> + + <xsl:template match="tex[@fileref]"> + <xsl:text>\input{</xsl:text><xsl:value-of select="@fileref"/><xsl:text>} </xsl:text> + </xsl:template> + + + <xsl:template match="tm[@fileref]"> + <xsl:text>\input{</xsl:text><xsl:value-of select="@fileref"/><xsl:text>} </xsl:text> + </xsl:template> + + <xsl:template match="tm[@tex]"> + <xsl:value-of select="@tex"/> + </xsl:template> + + <xsl:template match="inlinetm[@fileref]"> + <xsl:text>\input{</xsl:text><xsl:value-of select="@fileref"/><xsl:text>} </xsl:text> + </xsl:template> + + <xsl:template match="inlinetm[@tex]"> + <xsl:value-of select="@tex"/> + </xsl:template> + + + <xsl:template match="inlineequation"> + <xsl:variable name="tex" select="alt[@role='tex' or @role='latex']|inlinemediaobject/textobject[@role='tex' or @role='latex']|inlinemediaobject/textobject/phrase[@role='tex' or @role='latex']" /> + <xsl:choose> + <xsl:when test="$tex"> + <xsl:apply-templates select="$tex"/> + </xsl:when> + <xsl:when test="alt and $latex.alt.is.preferred='1'"> + <xsl:apply-templates select="alt"/> + </xsl:when> + <xsl:when test="inlinemediaobject"> + <xsl:apply-templates select="inlinemediaobject"/> + </xsl:when> + <xsl:when test="alt"> + <xsl:apply-templates select="alt"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="graphic"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/vars.mod.xsl b/docs/docbook/xslt/db2latex/vars.mod.xsl new file mode 100644 index 0000000000..764c3a0a95 --- /dev/null +++ b/docs/docbook/xslt/db2latex/vars.mod.xsl @@ -0,0 +1,943 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: vars.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: User and stylesheets XSL variables ++ ############################################################################## --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <doc:reference id="vars" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: vars.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author><surname>Casellas</surname><firstname>Ramon</firstname></author> + <author><surname>Devenish</surname><firstname>James</firstname></author> + </authorgroup> + <copyright> + <year>2000</year><year>2001</year><year>2002</year><year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>XSL Variables and Parameters</title> + + <partintro> + <section><title>Introduction</title> + + <para>This is technical reference documentation for the DocBook XSL + Stylesheets. It documents (some of) the parameters, templates, and + other elements of the stylesheets.</para> + </section> + </partintro> + </doc:reference> + + + <!--############################################################################# + | COMMON VARIABLES + |- ############################################################################# + | $Author: ab $ + | + + ############################################################################## --> + <xsl:variable name="default-classsynopsis-language">java</xsl:variable> + + <xsl:variable name="author.othername.in.middle" select="1"/> + <xsl:variable name="refentry.xref.manvolnum" select="1"/> + <xsl:variable name="funcsynopsis.style">kr</xsl:variable> + <xsl:variable name="funcsynopsis.decoration" select="1"/> + <xsl:variable name="function.parens">0</xsl:variable> + <xsl:variable name="refentry.generate.name" select="1"/> + + <doc:param name="show.comments" xmlns=""> + <refpurpose> Display <sgmltag class="element">comment</sgmltag> elements? </refpurpose> + <refdescription> + <para>Control the display of <sgmltag class="element">comment</sgmltag>s and <sgmltag class="element">remark</sgmltag>s.</para> + </refdescription> + </doc:param> + <xsl:param name="show.comments" select="1"/> + + <xsl:variable name="section.autolabel" select="1"/> + <xsl:variable name="section.label.includes.component.label" select="0"/> + <xsl:variable name="chapter.autolabel" select="1"/> + <xsl:variable name="preface.autolabel" select="0"/> + <xsl:variable name="part.autolabel" select="1"/> + <xsl:variable name="qandadiv.autolabel" select="1"/> + <xsl:variable name="autotoc.label.separator" select="'. '"/> + <xsl:variable name="qanda.inherit.numeration" select="1"/> + <xsl:variable name="qanda.defaultlabel">number</xsl:variable> + <xsl:param name="biblioentry.item.separator">, </xsl:param> + <doc:param name="toc.section.depth" xmlns=""> + <refpurpose> Cull table-of-contents entries that are deeply nested </refpurpose> + <refdescription> + <para>Specifies the maximum depth before sections are omitted from the table of contents.</para> + </refdescription> + </doc:param> + <xsl:param name="toc.section.depth">4</xsl:param> + + <doc:param name="section.depth" xmlns=""> + <refpurpose> Control the automatic numbering of section, parts, and chapters </refpurpose> + <refdescription> + <para> + Specifies the maximum depth before sections cease to be uniquely numbered. + This is passed to LaTeX using the <literal>secnumdepth</literal> counter. + Therefore, it is possible to use a value of <quote>0</quote> (zero) to disable section numbering. + A value of <quote>-1</quote> will disable the numbering of parts and chapters, too. + </para> + </refdescription> + </doc:param> + <xsl:param name="section.depth">4</xsl:param> + <xsl:variable name="graphic.default.extension"></xsl:variable> + <xsl:variable name="check.idref">1</xsl:variable> + <!-- + <xsl:variable name="link.mailto.url"></xsl:variable> + <xsl:variable name="toc.list.type">dl</xsl:variable> + --> + + <doc:param name="use.role.for.mediaobject" xmlns=""> + <refpurpose> Control <sgmltag class="element">mediaobject</sgmltag> selection methods </refpurpose> + <refdescription> + <para>This controls how DB2LaTeX behaves when a <sgmltag class="element">figure</sgmltag> contains + multiple <sgmltag class="element">mediaobject</sgmltag>s. When enabled, DB2LaTeX will choose + the mediaobject with the "LaTeX" or "TeX" role, if present. Otherwise, the first mediaobject + is chosen.</para> + </refdescription> + </doc:param> + <xsl:param name="use.role.for.mediaobject">1</xsl:param> + + <doc:param name="preferred.mediaobject.role" xmlns=""> + <refpurpose> Control <sgmltag class="element">mediaobject</sgmltag> selection methods </refpurpose> + <refdescription> + <para>When <xref linkend="param.use.role.for.mediaobject"/> is enabled, this variable + can be used to specify the mediaobject role that your document uses for LaTeX output. + DB2LaTeX will try to use this role before using the "LaTeX" or "TeX" roles. + For example, some authors may choose to set this to "PDF".</para> + </refdescription> + </doc:param> + <xsl:param name="preferred.mediaobject.role"></xsl:param> + + <doc:param name="formal.title.placement" xmlns=""> + <refpurpose> Specifies where formal object titles should occur </refpurpose> + <refdescription> + <para> + Titles for the formal object types (figure, example, quation, table, and procedure) + can be placed before or after those objects. The keyword <quote>before</quote> + is recognised. All other strings qualify as <quote>after</quote>. + </para> + </refdescription> + </doc:param> + <xsl:param name="formal.title.placement"> + figure not_before + example before + equation not_before + table before + procedure before + </xsl:param> + + <doc:param name="insert.xref.page.number" xmlns=""> + <refpurpose> Control the appearance of page numbers in cross references </refpurpose> + <refdescription> + <para> + When enabled, <sgmltag class="element">xref</sgmltag>s will include page + numbers after their generated cross-reference text. + </para> + </refdescription> + </doc:param> + <xsl:param name="insert.xref.page.number">0</xsl:param> + + <doc:param name="ulink.show" xmlns=""> + <refpurpose> Control the display of URLs after ulinks </refpurpose> + <refdescription> + <para> + When this option is enabled, and a ulink has a URL that is different + from the displayed content, the URL will be typeset after the content. + If the URL and content are identical, only one of them will appear. + Otherwise, the URL is hyperlinked and the content is not. + </para> + </refdescription> + </doc:param> + <xsl:param name="ulink.show">0</xsl:param> + + <doc:param name="ulink.footnotes" xmlns=""> + <refpurpose> Control the generation of footnotes for ulinks </refpurpose> + <refdescription> + <para> + When this option is enabled, a ulink that has content different to its + URL will have an associated footnote. The contents of the footnote + will be the URL. If the ulink is within a footnote, the URL is shown + after the content. + </para> + </refdescription> + </doc:param> + <xsl:param name="ulink.footnotes">0</xsl:param> + + <!--############################################################################# + | LaTeX VARIABLES + |- ############################################################################# + | $Author: ab $ + | + | PURPOSE: User and stylesheets XSL variables + + ############################################################################## --> + + <doc:param name="latex.override" xmlns=""> + <refpurpose> Override DB2LaTeX's preamble with a custom preamble. </refpurpose> + <refdescription> + <para> + When this variable is set, the entire DB2LaTeX premable will be superseded. + <emphasis>You should not normally need or want to use this.</emphasis> + It may cause LaTeX typesetting problems. This is a last resort or + <quote>expert</quote> feature. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.override"></xsl:param> + + <doc:param name="latex.entities" xmlns=""> + <refpurpose> Control Unicode character handling. </refpurpose> + <refdescription> + <para> + Normally, XSLT processors will convert SGML character entities into + Unicode characters and DB2LaTeX doesn't have much chance to do anything + toward converting them to LaTeX equivalents. We do not yet know how we + can solve this problem best. + </para> + <para> + Proposed values: 'catcode', 'unicode', 'extension'. + Currently only 'catcode' is supported. All other values will + cause no special handling except for certain mappings in MathML. + In future, perhaps the 'unicode' LaTeX package could be of assistance. + 'Extension' could be an XSLT extension that handles the characters + using a mapping table. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.entities"></xsl:param> + + <doc:param name="latex.alt.is.latex" xmlns=""> + <refpurpose> Control the escaping of <sgmltag class="element">alt</sgmltag> text </refpurpose> + <refdescription> + <para> + Text within <sgmltag class="element">alt</sgmltag> elements is assumed to + be valid LaTeX and is passed through unescaped by default. If this is not + appropriate for your document, set this variable to something other than + '1'. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.alt.is.latex">1</xsl:param> + + <doc:param name="latex.alt.is.preferred" xmlns=""> + <refpurpose> Control the use of <sgmltag class="element">alt</sgmltag> text </refpurpose> + <refdescription> + <para> + By default, DB2LaTeX assumes that <sgmltag class="element">alt</sgmltag> + text should be typeset in preference to any + <sgmltag class="element">mediaobject</sgmltag>s. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.alt.is.preferred">1</xsl:param> + + <!-- + <doc:variable name="latex.figure.position" xmlns=""> + <refpurpose> How to place floats. </refpurpose> + <refdescription> + <para> + This variable is used as the positioning argument for floats. + In future, this may be replaced by a dynamic mechanism that can + honour DocBook placement attributes. + </para> + </refdescription> + </doc:variable> + <xsl:variable name="latex.figure.position">[hbt]</xsl:variable> + --> + + <doc:param name="latex.apply.title.templates" xmlns=""> + <refpurpose> Whether to apply templates for section titles. </refpurpose> + <refdescription> + <para> + Controls whether section titles will be generated by + applying templates or by conversion to string values. + When enabled, templates will be applied. This enables template + expression in titles but may have problematic side-effects such + as nested links. + </para> + <note> + <para> + This variable does not influence all <sgmltag class="element">title</sgmltag> + elements. Some may have their own variables or not be configurable. + </para> + </note> + </refdescription> + </doc:param> + <xsl:param name="latex.apply.title.templates">1</xsl:param> + + + + + + <doc:param name="latex.apply.title.templates.admonitions" xmlns=""> + <refpurpose> Whether to apply templates for admonition titles. </refpurpose> + <refdescription> + <para> + Controls whether admonition titles will be generated by + applying templates or by conversion to string values. + When enabled, templates will be applied. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.apply.title.templates.admonitions">1</xsl:param> + + + + + + + <doc:param name="latex.graphics.formats" xmlns=""> + <refpurpose> Control <sgmltag class="element">imagedata</sgmltag> selection. </refpurpose> + <refdescription> + <para>This controls how DB2LaTeX behaves when a <sgmltag class="element">mediaobject</sgmltag> contains + multiple <sgmltag class="element">imagedata</sgmltag>. When non-empty, DB2LaTeX will exclude + imagedata that have a format no listed within this variable.</para> + </refdescription> + </doc:param> + <xsl:param name="latex.graphics.formats"></xsl:param> + + + + + + + <doc:param name="latex.caption.swapskip" xmlns=""> + <refpurpose> Improved typesetting of captions </refpurpose> + <refdescription> + <para> + DB2LaTeX supports <link linkend="param.formal.title.placement">$formal.title.placement</link> + as a mechanism for choosing whether captions will appear above or below the objects they describe. + <!-- + ($formal.title.placement is described in the <ulink + url="http://docbook.sourceforge.net/release/xsl/current/doc/html/formal.title.placement.html">DocBook + XSL Stylesheet HTML Parameter Reference</ulink>.) + --> + However, LaTeX will often produce an ugly result when captions occur + above their corresponding content. This usually arises because of + unsuitable \abovecaptionskip and \belowcaptionskip. + </para> + <para> + This variable, when set to '1', authorises DB2LaTeX to swap the caption + 'skip' lengths when a caption is placed <emphasis>above</emphasis> its + corresponding content. This is enabled by default. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.caption.swapskip">1</xsl:param> + + + + + + <doc:param name="latex.titlepage.file" xmlns=""> + <refpurpose> DB2LaTeX allows using an (externally generated) cover page </refpurpose> + <refdescription> + <para> + You may supply a LaTeX file that will supersede DB2LaTeX's default + cover page or title. If the value of this variable is non-empty, the + generated LaTeX code includes \input{filename}. Otherwise, it uses the + \maketitle command. + </para> + <warning><para> + Bear in mind that using an external cover page breaks the + "encapsulation" of DocBook. Further revisions of these stylesheets + will add chunking support, and the automation of the cover file + generation. + </para></warning> + </refdescription> + </doc:param> + <xsl:param name="latex.titlepage.file">title</xsl:param> + + + + + <doc:param name="latex.documentclass" xmlns=""> + <refpurpose> DB2LaTeX document class </refpurpose> + <refdescription> + <para> + This variable is normally empty and the stylesheets will determine + the correct document class according to whether the document is a + book or an article. If you wish to use your own document class, + put its non-empty value in this variable. It will apply for both + books and articles. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.documentclass"></xsl:param> + + <doc:param name="latex.documentclass.common" xmlns=""> + <refpurpose> DB2LaTeX document class options </refpurpose> + <refdescription> + <para> + These are the first options to be passed to <literal>\documentclass</literal> + The common options are set to <literal>french,english</literal> by default. + They will be augmented or superseded by article/book options (see $latex.documentclass.article and $latex.documentclass.book) and pdftex/dvips options (see $latex.documentclass.pdftex and $latex.documentclass.dvips). + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.documentclass.common">french,english</xsl:param> + + <doc:param name="latex.documentclass.article" xmlns=""> + <refpurpose> DB2LaTeX document class options for articles</refpurpose> + <refdescription> + <para> + The article options are set to <literal>a4paper,10pt,twoside,twocolumn</literal> by default. + These are the intermediate options to be passed to <literal>\documentclass</literal>, + between the common options and the pdftex/dvips options. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.documentclass.article">a4paper,10pt,twoside,twocolumn</xsl:param> + + <doc:param name="latex.documentclass.book" xmlns=""> + <refpurpose> DB2LaTeX document class options for books</refpurpose> + <refdescription> + <para> + The book options are set to <literal>a4paper,10pt,twoside,openright</literal> by default. + These are the intermediate options to be passed to <literal>\documentclass</literal>, + between the common options and the pdftex/dvips options. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.documentclass.book">a4paper,10pt,twoside,openright</xsl:param> + + <doc:param name="latex.documentclass.pdftex" xmlns=""> + <refpurpose> DB2LaTeX document class options for pdfTeX output</refpurpose> + <refdescription> + <para> + The pdfTeX options are empty by default. + These are the last options to be passed to <literal>\documentclass</literal> + and override the common/article/book options. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.documentclass.pdftex"></xsl:param> + + <doc:param name="latex.documentclass.dvips" xmlns=""> + <refpurpose> DB2LaTeX document class options for dvips output</refpurpose> + <refdescription> + <para> + The dvips options are empty by default. + These are the last options to be passed to <literal>\documentclass</literal> + and override the common/article/book options. + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.documentclass.dvips"></xsl:param> + + <doc:param name="latex.admonition.path" xmlns=""> + <refpurpose> LaTeX location for admonition graphics </refpurpose> + <refdescription> + <para>The file path that will be passed to LaTeX in order to find admonition graphics.</para> + <para>An empty value suppresses the use of admonition graphics.</para> + <para>If your figures are in <quote>the current directory</quote> then use a value of + <quote>.</quote> (i.e. the full stop or period on its own) to signify this.</para> + </refdescription> + </doc:param> + <xsl:param name="latex.admonition.path">figures</xsl:param> + + + <doc:param name="latex.admonition.imagesize" xmlns=""> + <refpurpose> DB2LaTeX graphics admonitions size</refpurpose> + <refdescription> + <para> + Is passed as an optional parameter for <literal>\includegraphics</literal> and + can take on any such legal values (or be empty). + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.admonition.imagesize">width=1cm</xsl:param> + + + <!-- + <xsl:param name="latex.chapter.label">1</xsl:param> + + <doc:param name="latex.chapter.hypertarget" xmlns=""> + <refpurpose> Hypertarget Chapters </refpurpose> + <refdescription> + <para> + </para> + </refdescription> + </doc:param> + <xsl:param name="latex.chapter.hypertarget">1</xsl:param> + --> + + + <doc:param name="latex.biblio.output" xmlns=""> + <refpurpose> Control which references are cited in the bibliography </refpurpose> + <refdescription> + <para> + The DB2LaTeX generated bibliography (bibitems) may either + include all biblioentries found in the document, or only thee ones explicitly + cited with <sgmltag class="element">citation</sgmltag>. + </para> + <para>Two values are possible: <quote>all</quote> or <quote>cited</quote>.</para> + </refdescription> + </doc:param> + <xsl:param name="latex.biblio.output">all</xsl:param> + + + <doc:param name="latex.bibfiles" xmlns=""> + <refpurpose> + Control the output of the \bibliography{.bib}. + </refpurpose> + <refdescription> + <para>The value of this parameter is output.</para> + <para>An example is <quote><filename>citations.bib</filename></quote>, + if your BibTeX file has that name.</para> + </refdescription> + </doc:param> + <xsl:param name="latex.bibfiles"></xsl:param> + + + <doc:param name="latex.bibwidelabel" xmlns=""> + <refpurpose> Adjust bibliography formatting </refpurpose> + <refdescription> + <para>The environment bibliography accepts a parameter that indicates + the widest label, which is used to correctly format the bibliography + output. The value of this parameter is output inside the + <literal>\begin{thebibliography[]}</literal> LaTeX command.</para> + </refdescription> + </doc:param> + <xsl:param name="latex.bibwidelabel">WIDELABEL</xsl:param> + + <!-- + <xsl:variable name="latex.dont.label">0</xsl:variable> + <xsl:variable name="latex.dont.hypertarget">0</xsl:variable> + --> + + <doc:param name="latex.use.ucs" xmlns=""> + <refpurpose> Choose whether to use the <productname>unicode</productname> LaTeX package</refpurpose> + <refdescription><para>See the <productname>unicode</productname> documentation for details.</para></refdescription> + </doc:param> + <xsl:param name="latex.use.ucs">0</xsl:param> + + <doc:param name="latex.ucs.options" xmlns=""> + <refpurpose>Select the optional parameter(s) for the <productname>unicode</productname> LaTeX package</refpurpose> + <refdescription><para>See the <productname>unicode</productname> documentation for details.</para></refdescription> + </doc:param> + <xsl:param name="latex.ucs.options"></xsl:param> + + <doc:param name="latex.babel.language" xmlns=""> + <refpurpose>Select the optional parameter for the <productname>babel</productname> LaTeX package</refpurpose> + <refdescription><para>See the <productname>babel</productname> documentation for details.</para></refdescription> + </doc:param> + <xsl:param name="latex.babel.language">french</xsl:param> + + <doc:param name="latex.use.isolatin1" xmlns=""> + <refpurpose>Toggle the use of the <productname>isolatin1</productname> LaTeX package</refpurpose> + </doc:param> + <xsl:variable name="latex.use.isolatin1">1</xsl:variable> + + <doc:param name="latex.use.hyperref" xmlns=""> + <refpurpose>Toggle the use of the <productname>hyperref</productname> LaTeX package</refpurpose> + <refdescription><para>This is used extensively for hyperlinking within documents.</para></refdescription> + </doc:param> + <xsl:variable name="latex.use.hyperref">1</xsl:variable> + + <doc:param name="latex.use.fancybox" xmlns=""> + <refpurpose>Toggle the use of the <productname>fancybox</productname> LaTeX package</refpurpose> + <refdescription><para>This is essential for admonitions.</para></refdescription> + </doc:param> + <xsl:variable name="latex.use.fancybox">1</xsl:variable> + + <doc:param name="latex.use.fancyvrb" xmlns=""> + <refpurpose>Toggle the use of the <productname>fancyvrb</productname> LaTeX package</refpurpose> + <refdescription><para>Provides support for tabbed whitespace in verbatim environments. + See also <xref linkend="param.latex.fancyvrb.tabsize"/>.</para></refdescription> + </doc:param> + <xsl:param name="latex.use.fancyvrb">1</xsl:param> + + <doc:param name="latex.fancyvrb.tabsize" xmlns=""> + <refpurpose>Choose indentation for tabs in verbatim environments</refpurpose> + <refdescription><para>When <xref linkend="param.latex.use.fancyvrb"/> is enabled, + this variable sets the width of a tab in terms of an equivalent number of spaces.</para></refdescription> + </doc:param> + <xsl:param name="latex.fancyvrb.tabsize">3</xsl:param> + + <doc:param name="latex.use.fancyhdr" xmlns=""> + <refpurpose>Toggle the use of the <productname>fancyhdr</productname> LaTeX package</refpurpose> + <refdescription><para>Provides page headers and footers. Disabling support for + this package will make headers and footer go away.</para></refdescription> + </doc:param> + <xsl:param name="latex.use.fancyhdr">1</xsl:param> + + <doc:param name="latex.use.parskip" xmlns=""> + <refpurpose>Toggle the use of the <productname>parskip</productname> LaTeX package</refpurpose> + <refdescription><para>Support a <quote>block</quote> paragraph style as opposed to + <quote>indented</quote>.</para></refdescription> + </doc:param> + <xsl:param name="latex.use.parskip">0</xsl:param> + + <doc:param name="latex.use.subfigure" xmlns=""> + <refpurpose>Toggle the use of the <productname>subfigure</productname> LaTeX package</refpurpose> + <refdescription><para>Used to provide nice layout of multiple mediaobjects in figures.</para></refdescription> + </doc:param> + <xsl:param name="latex.use.subfigure">1</xsl:param> + + <doc:param name="latex.use.rotating" xmlns=""> + <refpurpose>Toggle the use of the <productname>rotating</productname> LaTeX package</refpurpose> + </doc:param> + <xsl:param name="latex.use.rotating">1</xsl:param> + + <doc:param name="latex.use.tabularx" xmlns=""> + <refpurpose>Toggle the use of the <productname>tabularx</productname> LaTeX package</refpurpose> + <refdescription><para>Used to provide certain table features. Has some incompatabilities + with packages, but also solves some conflicts that the regular tabular + environment has.</para></refdescription> + </doc:param> + <xsl:param name="latex.use.tabularx">1</xsl:param> + + <doc:param name="latex.use.umoline" xmlns=""> + <refpurpose>Toggle the use of the <productname>umoline</productname> LaTeX package</refpurpose> + <refdescription><para>Provide underlining.</para></refdescription> + </doc:param> + <xsl:param name="latex.use.umoline">0</xsl:param> + + <doc:param name="latex.use.url" xmlns=""> + <refpurpose>Toggle the use of the <productname>url</productname> LaTeX package</refpurpose> + <refdescription><para>Provide partial support for hyperlinks.</para></refdescription> + </doc:param> + <xsl:param name="latex.use.url">1</xsl:param> + + <doc:param name="latex.use.makeidx" xmlns=""> + <refpurpose>Toggle the use of the <productname>makeidx</productname> LaTeX package</refpurpose> + <refdescription><para>Support index generation.</para></refdescription> + </doc:param> + <xsl:param name="latex.use.makeidx">1</xsl:param> + + <doc:param name="latex.hyphenation.tttricks" xmlns=""> + <refpurpose> DB2LaTeX hyphenation linebreak tricks </refpurpose> + <refdescription> + <para> + Usually, LaTeX does not perform hyphenation in <quote>teletype</quote> (monospace) + text. This can lead to formatting problems. But certain monospace texts, such as + URLs and filenames, have <quote>natural</quote> breakpoints such as full stops + and slashes. DB2LaTeX's <quote>tttricks</quote> exploit a hyphenation trick in + order to provide line wrapping in the middle of monospace text. Set this to '1' + to enable these tricks (they are not enabled by default). See also the FAQ. + </para> + </refdescription> + </doc:param> + <xsl:variable name="latex.hyphenation.tttricks">0</xsl:variable> + + <doc:param name="latex.hyperref.param.common" xmlns=""> + <refpurpose> DB2LaTeX hyperref options</refpurpose> + <refdescription> + <para> + The hyperref options are set to <literal>bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage</literal> by default. + You may wish to specify additional options using <literal>latex.hyperref.param.pdftex</literal> + or <literal>latex.hyperref.param.dvips</literal>. + </para> + </refdescription> + </doc:param> + <xsl:variable name="latex.hyperref.param.common">bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage</xsl:variable> + + <doc:param name="latex.hyperref.param.pdftex" xmlns=""> + <refpurpose> DB2LaTeX hyperref options for pdfTeX output</refpurpose> + <refdescription> + <para> + This variable is empty by default. See the hyperref documentation for further information. + </para> + </refdescription> + </doc:param> + <xsl:variable name="latex.hyperref.param.pdftex">pdfstartview=FitH</xsl:variable> + + <doc:param name="latex.hyperref.param.dvips" xmlns=""> + <refpurpose> DB2LaTeX hyperref options for dvips output</refpurpose> + <refdescription> + <para> + This variable is empty by default. See the hyperref documentation for further information. + </para> + </refdescription> + </doc:param> + <xsl:variable name="latex.hyperref.param.dvips"></xsl:variable> + + <xsl:variable name="latex.fancyhdr.lh">Left Header</xsl:variable> + <xsl:variable name="latex.fancyhdr.ch">Center Header</xsl:variable> + <xsl:variable name="latex.fancyhdr.rh">Right Header</xsl:variable> + <xsl:variable name="latex.fancyhdr.lf">Left Footer</xsl:variable> + <xsl:variable name="latex.fancyhdr.cf">Center Footer</xsl:variable> + <xsl:variable name="latex.fancyhdr.rf">Right Footer</xsl:variable> + + <doc:param name="latex.step.title.style" xmlns=""> + <refpurpose> Control the style of step titles </refpurpose> + <refdescription> + <para>Step titles are typeset in small caps but if + this option is set to a LaTeX command, such as <literal>\itshape{}</literal>, then + that command will precede the title and it will be typeset accordingly.</para> + </refdescription> + </doc:param> + <xsl:variable name="latex.step.title.style">\bf</xsl:variable> + + <doc:param name="latex.book.article.title.style" xmlns=""> + <refpurpose> Control the style of article titles within books </refpurpose> + <refdescription> + </refdescription> + </doc:param> + <xsl:variable name="latex.book.article.title.style">\Large\textbf</xsl:variable> + + <doc:param name="latex.article.title.style" xmlns=""> + <refpurpose> Control the style of article titles </refpurpose> + <refdescription> + </refdescription> + </doc:param> + <xsl:variable name="latex.article.title.style">\textbf</xsl:variable> + + <doc:param name="latex.pagestyle" xmlns=""> + <refpurpose> Override DB2LaTeX's choice of LaTeX page numbering style </refpurpose> + <refdescription> + <para>By default, DB2LaTeX will choose the 'plain' or 'fancy' page styles, + depending on <xref linkend="param.latex.use.fancyhdr"/>. If non-empty, this + variable overrides the automatic selection. An example would be the literal + string 'empty', to eliminate headers and page numbers.</para> + </refdescription> + </doc:param> + <xsl:variable name="latex.pagestyle"></xsl:variable> + + <doc:param name="latex.procedure.title.style" xmlns=""> + <refpurpose> Control the style of procedure titles </refpurpose> + <refdescription> + <para>Procedure titles are typeset in small caps but if + this option is set to a LaTeX command, such as <literal>\itshape{}</literal>, then + that command will precede the title and it will be typeset accordingly.</para> + </refdescription> + </doc:param> + <xsl:variable name="latex.procedure.title.style">\sc</xsl:variable> + + <doc:param name="latex.figure.title.style" xmlns=""> + <refpurpose> Control the style of figure titles </refpurpose> + <refdescription> + <para>Figure titles are typeset in the default typeface (usually 'roman') but if + this option is set to a LaTeX command, such as <literal>\itshape{}</literal>, then + that command will precede the title and it will be typeset accordingly.</para> + </refdescription> + </doc:param> + <xsl:variable name="latex.figure.title.style"></xsl:variable> + + <doc:param name="latex.pdf.support" xmlns=""> + <refpurpose> Controls the output of LaTeX commands to support the generation + of PDF files.</refpurpose> + <refdescription> + <para>If this parameter is set to 1, the stylesheets generate code to + detect if it is either <literal>latex</literal> or <literal>pdflatex</literal> + the shell command that is being used to compile the LaTeX text file. Some + packages (<literal>graphicx</literal>, <literal>hyperref</literal>) are used + with the right parameters. Finally, the graphic extensions declared, to use in + <literal>\includegraphics</literal> commands depends also on which command is + being used. If this parameter is set to zero, such code is not generated (which + does not mean that the file cannot compile with pdflatex, but some strange issues + may appear). <emphasis>DEFAULT: 1</emphasis> Only more code is generated. + </para> + </refdescription> + </doc:param> + <xsl:variable name="latex.pdf.support">1</xsl:variable> + + + + <doc:param name="latex.thead.row.entry" xmlns=""> + <refpurpose> Format the output of tabular headings. </refpurpose> + <refdescription> + </refdescription> + </doc:param> + <xsl:template name="latex.thead.row.entry"> + <xsl:apply-templates/> + </xsl:template> + + + + <doc:param name="latex.math.support" xmlns=""> + <refpurpose> Controls the output of LaTeX packages and commands to support + documents with math commands and environments..</refpurpose> + <refdescription> + <para>If this parameter is set to 1, the stylesheets generate code to + <emphasis>DEFAULT: 1</emphasis> Only more code is generated. + </para> + </refdescription> + </doc:param> + <xsl:variable name="latex.math.support">1</xsl:variable> + + + + <doc:param name="latex.output.revhistory" xmlns=""> + <refpurpose> Controls if the revision history table is generated as the first document + table. + </refpurpose> + <refdescription> + <para>If this parameter is set to 1, the stylesheets generate code to + <emphasis>DEFAULT: 1</emphasis> Only more code is generated. + </para> + </refdescription> + </doc:param> + <xsl:variable name="latex.output.revhistory">1</xsl:variable> + + + + + <xsl:variable name="latex.book.preamble.pre"> + </xsl:variable> + + <xsl:variable name="latex.book.preamble.post"> + </xsl:variable> + + <doc:param name="latex.book.varsets" xmlns=""> + <refpurpose> + All purpose commands to change text width, height, counters, etc. + Defaults to a two-sided margin layout. + </refpurpose> + <refdescription> + </refdescription> + </doc:param> + <xsl:variable name="latex.book.varsets"> + <xsl:text>\usepackage{anysize} </xsl:text> + <xsl:text>\marginsize{3cm}{2cm}{1.25cm}{1.25cm} </xsl:text> + </xsl:variable> + + <doc:param name="latex.book.begindocument" xmlns=""> + <refpurpose> + Begin document command + </refpurpose> + <refdescription> + </refdescription> + </doc:param> + <xsl:variable name="latex.book.begindocument"> + <xsl:text>\begin{document} </xsl:text> + </xsl:variable> + + + + + + <doc:param name="latex.book.afterauthor" xmlns=""> + <refpurpose> + LaTeX code that is output after the author (e.g. + <literal>\makeindex, \makeglossary</literal> + </refpurpose> + <refdescription> + </refdescription> + </doc:param> + <xsl:variable name="latex.book.afterauthor"> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\makeindex </xsl:text> + <xsl:text>\makeglossary </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + </xsl:variable> + + + + + <doc:param name="latex.book.end" xmlns=""> + <refpurpose> + LaTeX code that is output at the end of the document + <literal>\end{document}</literal> + </refpurpose> + <refdescription> + </refdescription> + </doc:param> + <xsl:variable name="latex.book.end"> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% End of document </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\end{document} </xsl:text> + </xsl:variable> + + + + <!--############################################################################# + | XSL VARIABLES FOR ARTICLES + |- ############################################################################# + | $Author: ab $ + | + + ############################################################################## --> + + + + <xsl:variable name="latex.article.preamble.pre"> + </xsl:variable> + + <xsl:variable name="latex.article.preamble.post"> + </xsl:variable> + + <doc:param name="latex.article.begindocument" xmlns=""> + <refpurpose> The begin document </refpurpose> + <refdescription>The value of this variable is output from the article template + <xref linkend="template.article"/> after the author command. The default value + (shown below) is just the begin document command. Users of the XSL LaTeX + stylesheet may override this parameter in order to output what they want. + </refdescription> + <refreturn><literal>\begin{document}</literal></refreturn> + </doc:param> + <xsl:variable name="latex.article.begindocument"> + <xsl:text>\begin{document} </xsl:text> + </xsl:variable> + + + <doc:param name="latex.article.varsets" xmlns=""> + <refpurpose> Controls what is output after the LaTeX preamble. </refpurpose> + <refdescription> + <para>Default values decrease edge margins and allow a large quantity of figures to be set on each page. </para> + </refdescription> + </doc:param> + + <xsl:variable name="latex.article.varsets"> + <xsl:text> + \usepackage{anysize} + \marginsize{2cm}{2cm}{2cm}{2cm} + \renewcommand\floatpagefraction{.9} + \renewcommand\topfraction{.9} + \renewcommand\bottomfraction{.9} + \renewcommand\textfraction{.1} + </xsl:text> + </xsl:variable> + + + + + <doc:param name="latex.maketitle" xmlns=""> + <refpurpose> The <literal>\maketitle</literal> for books and articles. </refpurpose> + <refdescription> + <para>Some users may wish to override or eliminate <literal>\maketitle</literal>.</para> + <note><para>Does not apply to <sgmltag class="element">article</sgmltag>s within <sgmltag class="element">book</sgmltag>s.</para></note> + <para>By default, uses LaTeX <literal>\maketitle</literal> with the 'empty' pagestyle + for the first page. The page style of subsequent pages is determined by + <xref linkend="template.generate.latex.pagestyle"/>.</para> + </refdescription> + </doc:param> + <xsl:variable name="latex.maketitle"> + <xsl:text>{\maketitle</xsl:text> + <xsl:call-template name="generate.latex.pagestyle"/> + <xsl:text>\thispagestyle{empty}} </xsl:text> + </xsl:variable> + + + <doc:param name="latex.article.end" xmlns=""> + <refpurpose> Controls what is output at the end of the article. Basically the <literal>\end{document}</literal> + command, with some markup comments. </refpurpose> + <refdescription> + </refdescription> + </doc:param> + <xsl:variable name="latex.article.end"> + <xsl:text> </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>% End of document </xsl:text> + <xsl:text>% -------------------------------------------- </xsl:text> + <xsl:text>\end{document} </xsl:text> + </xsl:variable> + + + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/db2latex/verbatim.mod.xsl b/docs/docbook/xslt/db2latex/verbatim.mod.xsl new file mode 100644 index 0000000000..a5bb09099a --- /dev/null +++ b/docs/docbook/xslt/db2latex/verbatim.mod.xsl @@ -0,0 +1,147 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: verbatim.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="verbatim" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: verbatim.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author> + <author> <firstname>James</firstname> <surname>Devenish</surname> </author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + <title>Verbatim <filename>verbatim.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + <!--############################################################################# --> + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="literal" xmlns=""> + <refpurpose>Template for <sgmltag>literal</sgmltag></refpurpose> + <refdescription> + Template for literal template + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="literal" mode="latex.verbatim"> + <xsl:text>{\verb </xsl:text> + <xsl:apply-templates mode="latex.verbatim"/> + <xsl:text>}</xsl:text> + </xsl:template> + + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template name="verbatim.apply.templates" xmlns=""> + <refpurpose> Auxiliary template to output verbatim LaTeX code in verbatim mode </refpurpose> + <refdescription> + <para> Takes into account whether the user is using fancyvrb or not. It allows + veratim line numbering and other fancy stuff. </para> + <para> In order to use a small or large font, you may also wanto to use + the <literal>role</literal> attribute : </para> + <screen><![CDATA[ + <programlisting role="small"> + </programlisting> + <programlisting role="large"> + </programlisting> + ]]></screen> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template name="verbatim.apply.templates"> + <xsl:choose> + <xsl:when test="ancestor::entry"> + <xsl:message>Problem with <xsl:value-of select="local-name(.)"/> inside table entries.</xsl:message> + <xsl:text>\texttt{</xsl:text> + <xsl:apply-templates mode="latex.verbatim"/> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:when test="$latex.use.fancyvrb='1'"> + <xsl:variable name="not_monospaced" select="local-name(.)='literallayout' and @format!='monospaced'"/> + <xsl:text> \begin{Verbatim}[</xsl:text> + <xsl:if test="@linenumbering='numbered'"> + <xsl:text>,numbers=left</xsl:text> + </xsl:if> + <xsl:if test="$not_monospaced"> + <xsl:text>,fontfamily=default</xsl:text> + </xsl:if> + <xsl:if test="@role"> + <xsl:choose> + <xsl:when test="@role='small'"> + <xsl:text>,fontsize=\small</xsl:text> + </xsl:when> + <xsl:when test="@role='large'"> + <xsl:text>,fontsize=\large</xsl:text> + </xsl:when> + </xsl:choose> + </xsl:if> + <xsl:text>] </xsl:text> + <xsl:choose> + <xsl:when test="$not_monospaced"> + <!-- Needs to be changed to cope with regular characterset! --> + <xsl:apply-templates mode="latex.verbatim"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates mode="latex.verbatim"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text> \end{Verbatim} </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text> \begin{verbatim} </xsl:text> + <xsl:apply-templates mode="latex.verbatim"/> + <xsl:text> \end{verbatim} </xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + <xsl:template match="address"> + <xsl:call-template name="verbatim.apply.templates"/> + </xsl:template> + + <doc:template name="verbatim" match="screen|programlisting|literallayout" xmlns=""> + <refpurpose>Environments in which whitespace is significant</refpurpose> + <refdescription> + <itemizedlist> + <title>Known Bugs</title> + <listitem><simpara>Templates are not applied within programlistings.</simpara></listitem> + </itemizedlist> + </refdescription> + </doc:template> + <xsl:template match="screen|programlisting|literallayout"> + <xsl:call-template name="verbatim.apply.templates"/> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/db2latex/xref.mod.xsl b/docs/docbook/xslt/db2latex/xref.mod.xsl new file mode 100644 index 0000000000..ecd03153cb --- /dev/null +++ b/docs/docbook/xslt/db2latex/xref.mod.xsl @@ -0,0 +1,660 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: xref.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: Manage XREFs ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + +<!--############################################################################# --> +<!-- DOCUMENTATION --> +<doc:reference id="xref" xmlns=""> +<referenceinfo> +<releaseinfo role="meta"> +$Id: xref.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +</releaseinfo> +<authorgroup> +<author> <surname>Casellas</surname><firstname>Ramon</firstname> </author> +<author> <surname>James</surname><firstname>Devenish</firstname> </author> +</authorgroup> +<copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> +</copyright> +</referenceinfo> + +<title>Xref, Cross References <filename>xref.mod.xsl</filename></title> +<partintro> +<section><title>Introduction</title> +<para></para> +</section> +</partintro> +</doc:reference> + + + + +<!--############################################################################# --> +<doc:template match="anchor" xmlns=""> + <refpurpose>Anchor XSL template</refpurpose> + <refdescription> + <para>The <sgmltag>anchor</sgmltag> element + The DB2LaTeX processing of the element is quite straightforward : + Map to a <literal>\label</literal>.</para> + </refdescription> +</doc:template> +<!--############################################################################# --> + + <xsl:template match="anchor"> + <xsl:text>\hypertarget{</xsl:text> + <xsl:value-of select="@id"/> + <xsl:text>}{}</xsl:text> + </xsl:template> + + + + + +<!--############################################################################# --> +<doc:template name="id.is.xrefed" xmlns=""> + <refpurpose>Auxiliary named template</refpurpose> + <refdescription> + <para>This template returns 1 if there exists somewhere an xref + whose linkend is the target's id.</para> + </refdescription> +</doc:template> +<!--############################################################################# --> + + <xsl:template name="id.is.xrefed"> + <xsl:param name="i" select="1"/> + <xsl:param name="target" select="."/> + <xsl:param name="xrefs" select="//xref"/> + <xsl:choose> + <xsl:when test="xrefs[i]/@linkend = 'target/@id'"> + <xsl:value-of select="1"/> + </xsl:when> + <xsl:when test="i = count(xrefs)"> + <xsl:value-of select="0"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="id.is.xrefed"> + <xsl:with-param name="i" select="i+1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + +<!--############################################################################# --> +<doc:template name="xref.xreflabel" xmlns=""> + <refpurpose>Auxiliary named template</refpurpose> + <refdescription> + <para> Called to process an xreflabel...you might use this to make + xreflabels come out in the right font for different targets, + for example.</para> + </refdescription> +</doc:template> +<!--############################################################################# --> + + <xsl:template name="xref.xreflabel"> + <xsl:param name="target" select="."/> + <xsl:value-of select="$target/@xreflabel"/> + </xsl:template> + + + + + + +<!--############################################################################# --> +<doc:template match="xref|link" xmlns=""> + <refpurpose>Xref and Link XSL Template</refpurpose> + <refdescription> + </refdescription> +</doc:template> +<!--############################################################################# --> + + <xsl:template match="xref|link"> + <xsl:variable name="targets" select="id(@linkend)"/> + <xsl:variable name="target" select="$targets[1]"/> + <xsl:variable name="refelem" select="local-name($target)"/> + <xsl:call-template name="check.id.unique"><xsl:with-param name="linkend" select="@linkend"/></xsl:call-template> + <xsl:choose> + <xsl:when test="$refelem=''"> + <xsl:message><xsl:text>XRef to nonexistent id: </xsl:text><xsl:value-of select="@linkend"/></xsl:message> + <xsl:text>XrefId[?</xsl:text> + <xsl:if test="local-name(.)='link'"><xsl:apply-templates/></xsl:if> + <xsl:text>?]</xsl:text> + </xsl:when> + + <!-- This is a link with content ... --> + <xsl:when test="local-name(.)='link' and .!=''"> + <xsl:call-template name="generate.hyperlink"> + <xsl:with-param name="target" select="$target"/> + <xsl:with-param name="text"><xsl:apply-templates/></xsl:with-param> + </xsl:call-template> + </xsl:when> + + <xsl:otherwise> + <xsl:choose> + <xsl:when test="@endterm"> + <xsl:variable name="etargets" select="id(@endterm)"/> + <xsl:variable name="etarget" select="$etargets[1]"/> + <xsl:choose> + <xsl:when test="count($etarget) = 0"> + <xsl:message> + <xsl:value-of select="count($etargets)"/> + <xsl:text>Endterm points to nonexistent ID: </xsl:text> + <xsl:value-of select="@endterm"/> + </xsl:message> + <xsl:text>[NONEXISTENT ID]</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="generate.hyperlink"> + <xsl:with-param name="target" select="$target"/> + <xsl:with-param name="text"><xsl:apply-templates select="$etarget" mode="xref.text"/></xsl:with-param> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <!-- If an xreflabel has been specified for the target ... --> + <xsl:when test="local-name(.)='xref' and $target/@xreflabel"> + <xsl:call-template name="generate.hyperlink"> + <xsl:with-param name="target" select="$target"/> + <xsl:with-param name="text"> + <xsl:text>{[</xsl:text> + <xsl:call-template name="xref.xreflabel"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + <xsl:text>]}</xsl:text> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="generate.hyperlink"> + <xsl:with-param name="target" select="$target"/> + <xsl:with-param name="text"><xsl:apply-templates select="$target" mode="xref-to"/></xsl:with-param> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="$insert.xref.page.number=1 and $refelem!='' and local-name(.)='xref'"> + <xsl:call-template name="xref.p.subst"> + <xsl:with-param name="string"> + <xsl:call-template name="gentext.xref.text"> + <xsl:with-param name="element.name" select="'page.citation'"/> + <xsl:with-param name="default"> [%p]</xsl:with-param> + </xsl:call-template> + </xsl:with-param> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:if> + </xsl:template> + + <doc:template name="generate.hyperlink" xmlns=""> + <refpurpose> Choose hyperlink syntax </refpurpose> + <refdescription> + <para>Will use hyperref, if it is available. Otherwise, just outputs + unlinked text. If the destination is a citation, a backreference is + emitted (even though it is technically a hyperlink, not a citation). + If the 'text' arises from an @endterm, then the 'optional argument' + syntax of <literal>\cite</literal> is used.</para> + </refdescription> + </doc:template> + <xsl:template name="generate.hyperlink"> + <xsl:param name="target"/> + <xsl:param name="text"/> + <xsl:variable name="element" select="local-name($target)"/> + <xsl:variable name="citation" select="$element='biblioentry' or $element='bibliomixed'"/> + <xsl:choose> + <xsl:when test="$citation and @endterm!=''"> + <xsl:text>\docbooktolatexcite</xsl:text> + <xsl:text>{</xsl:text> + <xsl:value-of select="$target/@id"/> + <xsl:text>}{</xsl:text> + <xsl:call-template name="scape-optionalarg"> + <xsl:with-param name="string" select="$text"/> + </xsl:call-template> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:if test="$latex.use.hyperref=1"> + <xsl:text>\hyperlink{</xsl:text> + <xsl:value-of select="$target/@id"/> + <xsl:text>}</xsl:text> + </xsl:if> + <xsl:text>{</xsl:text> + <xsl:if test="$citation"> + <xsl:text>\docbooktolatexbackcite{</xsl:text> + <xsl:value-of select="$target/@id"/> + <xsl:text>}</xsl:text> + </xsl:if> + <xsl:value-of select="$text"/> + <xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <doc:template name="xref.p.subst" xmlns=""> + <refpurpose>Insert page number into xrefs</refpurpose> + <refdescription><para></para></refdescription> + </doc:template> + <xsl:template name="xref.p.subst"> + <xsl:param name="string"></xsl:param> + <xsl:param name="target" select="."/> + <xsl:variable name="subst">%p</xsl:variable> + <xsl:choose> + <xsl:when test="contains($string, $subst)"> + <xsl:value-of select="substring-before($string, $subst)"/> + <xsl:text>\pageref*{</xsl:text> + <xsl:value-of select="$target/@id"/> + <xsl:text>}</xsl:text> + <xsl:value-of select="substring-after($string, $subst)"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$string"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + + + + +<!--############################################################################# --> +<doc:template name="number.xref" xmlns=""> + <refpurpose>Numbering template</refpurpose> + <refdescription> + <para> + Let LaTeX manage the numbering. Otherwise sty files that + do specify another numberic (e.g I,II) get messed + </para> + </refdescription> +</doc:template> +<!--############################################################################# --> + + <xsl:template name="number.xref"> + <xsl:text>{\ref*{</xsl:text><xsl:value-of select="@id"/><xsl:text>}}</xsl:text> + </xsl:template> + + + + + + + + +<!--############################################################################# --> +<doc:template name="cross-reference" xmlns=""> + <refpurpose>FIXME</refpurpose> + <refdescription> + <para> + FIXME + </para> + </refdescription> +</doc:template> +<!--############################################################################# --> + + <xsl:template name="cross-reference"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:param name="xref.text"> + <xsl:call-template name="gentext.xref.text"> + <xsl:with-param name="element.name" select="$refelem"/> + <xsl:with-param name="default">%g %n</xsl:with-param> + </xsl:call-template> + </xsl:param> + <xsl:call-template name="subst.xref.text"> + <xsl:with-param name="xref.text" select="$xref.text"/> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:template> + + + + + + <xsl:template match="*" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:message> + <xsl:text>[Don't know what gentext to create for xref to: "</xsl:text> + <xsl:value-of select="$refelem"/> + <xsl:text>"]</xsl:text> + </xsl:message> + <xsl:text>UNKGENTEXT</xsl:text><xsl:value-of select="$refelem"/> + </xsl:template> + + + + + + <xsl:template match="formalpara" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:call-template name="cross-reference"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:template> + + + <xsl:template match="figure|example|table|equation" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:call-template name="cross-reference"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:template> + + + <xsl:template match="dedication|preface|part|chapter|appendix" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:call-template name="cross-reference"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:template> + + <xsl:template match="cmdsynopsis" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:variable name="command" select="($target//command)[1]"/> + <xsl:apply-templates select="$command" mode="xref"/> + </xsl:template> + + <xsl:template match="funcsynopsis" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:variable name="func" select="($target//function)[1]"/> + <xsl:apply-templates select="$func" mode="xref"/> + </xsl:template> + + + <xsl:template match="biblioentry" mode="xref-to"> + <!-- handles both biblioentry and bibliomixed --> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:text>[</xsl:text> + <xsl:choose> + <xsl:when test="local-name($target/*[1]) = 'abbrev'"> + <xsl:apply-templates select="$target/*[1]"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="@id"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>]</xsl:text> + </xsl:template> + + + + <xsl:template match="bibliography|glossary|index" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:call-template name="cross-reference"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:template> + + + <xsl:template match="section|simplesect + |sect1|sect2|sect3|sect4|sect5 + |refsect1|refsect2|refsect3" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:call-template name="cross-reference"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:template> + + <xsl:template match="question|answer" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:call-template name="cross-reference"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:template> + + <xsl:template match="reference" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:call-template name="cross-reference"> + <xsl:with-param name="target" select="$target"/> + </xsl:call-template> + </xsl:template> + + <xsl:template match="co" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:apply-templates select="$target" mode="callout-bug"/> + </xsl:template> + + <xsl:template match="co" mode="conumber"> + <xsl:number from="literallayout|programlisting|screen|synopsis" + level="single" + format="1"/> + </xsl:template> + + + <xsl:template match="book" mode="xref-to"> + <xsl:param name="target" select="."/> + <xsl:param name="refelem" select="local-name($target)"/> + <xsl:variable name="title"> + <xsl:choose> + <xsl:when test="$target/title"> + <xsl:apply-templates select="$target/title" mode="xref"/> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="$target/bookinfo/title" mode="xref"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:text>{\em </xsl:text> <xsl:copy-of select="$title"/> <xsl:text>}</xsl:text> + </xsl:template> + + + <xsl:template match="command" mode="xref"> + <xsl:call-template name="inline.boldseq"/> + </xsl:template> + + <xsl:template match="function" mode="xref"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + + + +<!--############################################################################# --> +<doc:template match="ulink" xmlns=""> + <refpurpose>A link that addresses its target by means of a URL (Uniform Resource Locator)</refpurpose> + <refdescription> + <formalpara> + <title>Pertinent Variables</title> + <itemizedlist> + <listitem><simpara><xref linkend="param.ulink.show"/></simpara></listitem> + <listitem><simpara><xref linkend="param.ulink.footnotes"/></simpara></listitem> + <listitem><simpara><xref linkend="latex.hyphenation.tttricks"/></simpara></listitem> + </itemizedlist> + </formalpara> + </refdescription> +</doc:template> +<!--############################################################################# --> + + + <xsl:template match="ulink" name="ulink"> + <xsl:param name="hyphenation">\docbookhyphenateurl</xsl:param> + <xsl:param name="url" select="@url"/> + <xsl:choose> + <xsl:when test=". = '' or . = $url"> + <xsl:call-template name="generate.typeset.url"> + <xsl:with-param name="hyphenation" select="$hyphenation"/> + <xsl:with-param name="url" select="$url"/> + </xsl:call-template> + </xsl:when> + <xsl:when test="$latex.use.tabularx=1 and count(ancestor::table)>0"> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + <xsl:call-template name="generate.typeset.url"> + <xsl:with-param name="hyphenation" select="$hyphenation"/> + <xsl:with-param name="url" select="$url"/> + </xsl:call-template> + </xsl:when> + <xsl:when test="$ulink.footnotes='1' or $ulink.show='1'"> + <xsl:apply-templates/> + <xsl:if test="$ulink.footnotes='1' and count(ancestor::footnote)=0"> + <xsl:call-template name="footnote"> + <xsl:with-param name="hyphenation" select="$hyphenation"/> + <xsl:with-param name="url" select="$url"/> + </xsl:call-template> + </xsl:if> + <xsl:if test="$ulink.show='1' or ($ulink.footnotes='1' and ancestor::footnote)"> + <xsl:text> </xsl:text> + <xsl:call-template name="generate.typeset.url"> + <xsl:with-param name="hyphenation" select="$hyphenation"/> + <xsl:with-param name="url" select="$url"/> + </xsl:call-template> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <xsl:text>\href{</xsl:text> + <xsl:call-template name="scape-href"> + <xsl:with-param name="string" select="$url"/> + </xsl:call-template> + <xsl:text>}</xsl:text> + <xsl:text>{</xsl:text> + <xsl:apply-templates/> + <xsl:text>}</xsl:text><!-- End Of second argument of \href --> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + +<!--############################################################################# --> +<doc:template match="olink" xmlns=""> + <refpurpose>OLink XSL template</refpurpose> + <refdescription> + <para></para> + </refdescription> +</doc:template> +<!--############################################################################# --> + + <xsl:template match="olink"> + <xsl:apply-templates/> + </xsl:template> + + + + + + + +<!--############################################################################# --> + <xsl:template name="title.xref"> + <xsl:param name="target" select="."/> + <xsl:choose> + <xsl:when test="name($target) = 'figure' + or name($target) = 'example' + or name($target) = 'equation' + or name($target) = 'table' + or name($target) = 'dedication' + or name($target) = 'preface' + or name($target) = 'bibliography' + or name($target) = 'glossary' + or name($target) = 'index' + or name($target) = 'setindex' + or name($target) = 'colophon'"> + <xsl:call-template name="gentext.startquote"/> + <xsl:apply-templates select="$target" mode="title.content"/> + <xsl:call-template name="gentext.endquote"/> + </xsl:when> + <xsl:otherwise> + <xsl:text>{\em </xsl:text><xsl:apply-templates select="$target" mode="title.content"/><xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + +<!--############################################################################# --> + <xsl:template match="title" mode="xref"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="command" mode="xref"> + <xsl:call-template name="inline.boldseq"/> + </xsl:template> + + <xsl:template match="function" mode="xref"> + <xsl:call-template name="inline.monoseq"/> + </xsl:template> + + <xsl:template name="generate.typeset.url"> + <xsl:param name="hyphenation"/> + <xsl:param name="url" select="@url"/> + <xsl:choose> + <xsl:when test="$latex.use.url='1'"> + <xsl:text>\url{</xsl:text> + <xsl:value-of select="$url"/> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\href{</xsl:text> + <xsl:call-template name="scape-href"> + <xsl:with-param name="string" select="$url"/> + </xsl:call-template> + <xsl:text>}{\texttt{</xsl:text> + <xsl:call-template name="generate.string.url"> + <xsl:with-param name="hyphenation" select="$hyphenation"/> + <xsl:with-param name="string" select="$url"/> + </xsl:call-template> + <xsl:text>}}</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +<!--############################################################################# --> + <doc:template name="generate.string.url" xmlns=""> + <refpurpose>Escape and hyphenate a string as a teletype URL.</refpurpose> + <refdescription> + <para> + This template typsets teletype text using slash.hyphen if + $latex.hyphenation.tttricks is disabled. + Has two parameters: 'hyphenation' and 'string'. + </para> + </refdescription> + </doc:template> +<!--############################################################################# --> + <xsl:template name="generate.string.url"> + <xsl:param name="hyphenation" /> + <xsl:param name="string" /> + <xsl:param name="url" select="$string"/> + <xsl:choose> + <xsl:when test="$latex.hyphenation.tttricks=1"> + <xsl:value-of select="$hyphenation" /> + <xsl:text>{</xsl:text> + <xsl:call-template name="normalize-scape"><xsl:with-param name="string" select="$string"/></xsl:call-template> + <xsl:text>}</xsl:text> + </xsl:when> + <xsl:otherwise> + <!-- LaTeX chars are scaped. Each / except the :// is mapped to a /\- --> + <xsl:call-template name="scape.slash.hyphen"><xsl:with-param name="string" select="$url"/></xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/xslt/figures/caution.eps b/docs/docbook/xslt/figures/caution.eps new file mode 100644 index 0000000000..0c10b371b1 --- /dev/null +++ b/docs/docbook/xslt/figures/caution.eps @@ -0,0 +1 @@ +%!PS-Adobe-2.0 EPSF-1.2
%%Title: Untitled-3
%%Creator: FreeHand 9.0
%%CreationDate: 2002/12/05 8:20 PM
%%BoundingBox: 0 0 29 29
%%FHPathName:Untitled:FreeHand 9:English:Untitled-3
%ALDOriginalFile:Untitled:FreeHand 9:English:Untitled-3
%ALDBoundingBox: -2 -2 29 29
%%FHPageNum:1
%%DocumentSuppliedResources: procset Altsys_header 4 0
%%ColorUsage: Color
%%DocumentProcessColors: Black
%%EndComments
%%BeginResource: procset Altsys_header 4 0
userdict begin /AltsysDict 300 dict def end
AltsysDict begin
/bdf{bind def}bind def
/xdf{exch def}bdf
/defed{where{pop true}{false}ifelse}bdf
/ndf{1 index where{pop pop pop}{dup xcheck{bind}if def}ifelse}bdf
/d{setdash}bdf
/h{closepath}bdf
/H{}bdf
/J{setlinecap}bdf
/j{setlinejoin}bdf
/M{setmiterlimit}bdf
/n{newpath}bdf
/N{newpath}bdf
/q{gsave}bdf
/Q{grestore}bdf
/w{setlinewidth}bdf
/Xic{matrix invertmatrix concat}bdf
/Xq{matrix currentmatrix mark}bdf
/XQ{cleartomark setmatrix}bdf
/sepdef{
dup where not
{
AltsysSepDict
}
if
3 1 roll exch put
}bdf
/st{settransfer}bdf
/colorimage defed /_rci xdf
/cntr 0 def
/readbinarystring{
/cntr 0 def
2 copy readstring
{
{
dup
(\034) search
{
length exch pop exch
dup length 0 ne
{
dup dup 0 get 32 sub 0 exch put
/cntr cntr 1 add def
}
{
pop 1 string dup
0 6 index read pop 32 sub put
}ifelse
3 copy
putinterval pop
1 add
1 index length 1 sub
1 index sub
dup 0 le {pop pop exit}if
getinterval
}
{
pop exit
} ifelse
} loop
}if
cntr 0 gt
{
pop 2 copy
dup length cntr sub cntr getinterval
readbinarystring
} if
pop exch pop
} bdf
/_NXLevel2 defed {
_NXLevel2 not {
/colorimage where {
userdict eq {
/_rci false def
} if
} if
} if
} if
/md defed{
md type /dicttype eq {
/colorimage where {
md eq {
/_rci false def
}if
}if
/settransfer where {
md eq {
/st systemdict /settransfer get def
}if
}if
}if
}if
/setstrokeadjust defed
{
true setstrokeadjust
/C{curveto}bdf
/L{lineto}bdf
/m{moveto}bdf
}
{
/dr{transform .25 sub round .25 add
exch .25 sub round .25 add exch itransform}bdf
/C{dr curveto}bdf
/L{dr lineto}bdf
/m{dr moveto}bdf
/setstrokeadjust{pop}bdf
}ifelse
/privrectpath {
4 -2 roll m
dtransform round exch round exch idtransform
2 copy 0 lt exch 0 lt xor
{dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto}
{exch dup 0 rlineto exch 0 exch rlineto neg 0 rlineto}
ifelse
closepath
}bdf
/rectclip{newpath privrectpath clip newpath}def
/rectfill{gsave newpath privrectpath fill grestore}def
/rectstroke{gsave newpath privrectpath stroke grestore}def
/_fonthacksave false def
/currentpacking defed
{
/_bfh {/_fonthacksave currentpacking def false setpacking} bdf
/_efh {_fonthacksave setpacking} bdf
}
{
/_bfh {} bdf
/_efh {} bdf
}ifelse
/packedarray{array astore readonly}ndf
/`
{
false setoverprint
/-save0- save def
5 index concat
pop
storerect left bottom width height rectclip
pop
/MMdict_count countdictstack def
/MMop_count count 1 sub def
userdict begin
/showpage {} def
0 setgray 0 setlinecap 1 setlinewidth
0 setlinejoin 10 setmiterlimit [] 0 setdash newpath
} bdf
/currentpacking defed{true setpacking}if
/min{2 copy gt{exch}if pop}bdf
/max{2 copy lt{exch}if pop}bdf
/xformfont { currentfont exch makefont setfont } bdf
/fhnumcolors 1
statusdict begin
/processcolors defed
{
pop processcolors
}
{
/deviceinfo defed {
deviceinfo /Colors known {
pop deviceinfo /Colors get
} if
} if
} ifelse
end
def
/printerRes
gsave
matrix defaultmatrix setmatrix
72 72 dtransform
abs exch abs
max
grestore
def
/graycalcs
[
{Angle Frequency}
{GrayAngle GrayFrequency}
{0 Width Height matrix defaultmatrix idtransform
dup mul exch dup mul add sqrt 72 exch div}
{0 GrayWidth GrayHeight matrix defaultmatrix idtransform
dup mul exch dup mul add sqrt 72 exch div}
] def
/calcgraysteps {
forcemaxsteps
{
maxsteps
}
{
/currenthalftone defed
{currenthalftone /dicttype eq}{false}ifelse
{
currenthalftone begin
HalftoneType 4 le
{graycalcs HalftoneType 1 sub get exec}
{
HalftoneType 5 eq
{
Default begin
{graycalcs HalftoneType 1 sub get exec}
end
}
{0 60}
ifelse
}
ifelse
end
}
{
currentscreen pop exch
}
ifelse
printerRes 300 max exch div exch
2 copy
sin mul round dup mul
3 1 roll
cos mul round dup mul
add 1 add
dup maxsteps gt {pop maxsteps} if
dup minsteps lt {pop minsteps} if
}
ifelse
} bdf
/nextrelease defed {
/languagelevel defed not {
/framebuffer defed {
0 40 string framebuffer 9 1 roll 8 {pop} repeat
dup 516 eq exch 520 eq or
{
/fhnumcolors 3 def
/currentscreen {60 0 {pop pop 1}}bdf
/calcgraysteps {maxsteps} bdf
}if
}if
}if
}if
fhnumcolors 1 ne {
/calcgraysteps {maxsteps} bdf
} if
/currentpagedevice defed {
currentpagedevice /PreRenderingEnhance known
{
currentpagedevice /PreRenderingEnhance get
{
/calcgraysteps
{
forcemaxsteps
{maxsteps}
{256 maxsteps min}
ifelse
} def
} if
} if
} if
/gradfrequency 144 def
printerRes 1000 lt {
/gradfrequency 72 def
} if
/adjnumsteps {
dup dtransform abs exch abs max
printerRes div
gradfrequency mul
round
5 max
min
}bdf
/goodsep {
spots exch get 4 get dup sepname eq exch (_vc_Registration) eq or
}bdf
/BeginGradation defed
{/bb{BeginGradation}bdf}
{/bb{}bdf}
ifelse
/EndGradation defed
{/eb{EndGradation}bdf}
{/eb{}bdf}
ifelse
/bottom -0 def
/delta -0 def
/frac -0 def
/height -0 def
/left -0 def
/numsteps1 -0 def
/radius -0 def
/right -0 def
/top -0 def
/width -0 def
/xt -0 def
/yt -0 def
/df currentflat def
/tempstr 1 string def
/clipflatness currentflat def
/inverted?
0 currenttransfer exec .5 ge def
/tc1 [0 0 0 1] def
/tc2 [0 0 0 1] def
/storerect{/top xdf /right xdf /bottom xdf /left xdf
/width right left sub def /height top bottom sub def}bdf
/concatprocs{
systemdict /packedarray known
{dup type /packedarraytype eq 2 index type /packedarraytype eq or}{false}ifelse
{
/proc2 exch cvlit def /proc1 exch cvlit def
proc1 aload pop proc2 aload pop
proc1 length proc2 length add packedarray cvx
}
{
/proc2 exch cvlit def /proc1 exch cvlit def
/newproc proc1 length proc2 length add array def
newproc 0 proc1 putinterval newproc proc1 length proc2 putinterval
newproc cvx
}ifelse
}bdf
/i{dup 0 eq
{pop df dup}
{dup} ifelse
/clipflatness xdf setflat
}bdf
version cvr 38.0 le
{/setrgbcolor{
currenttransfer exec 3 1 roll
currenttransfer exec 3 1 roll
currenttransfer exec 3 1 roll
setrgbcolor}bdf}if
/vms {/vmsv save def} bdf
/vmr {vmsv restore} bdf
/vmrs{vmsv restore /vmsv save def}bdf
/eomode{
{/filler /eofill load def /clipper /eoclip load def}
{/filler /fill load def /clipper /clip load def}
ifelse
}bdf
/normtaper{}bdf
/logtaper{9 mul 1 add log}bdf
/CD{
/NF exch def
{
exch dup
/FID ne 1 index/UniqueID ne and
{exch NF 3 1 roll put}
{pop pop}
ifelse
}forall
NF
}bdf
/MN{
1 index length
/Len exch def
dup length Len add
string dup
Len
4 -1 roll
putinterval
dup
0
4 -1 roll
putinterval
}bdf
/RC{4 -1 roll /ourvec xdf 256 string cvs(|______)anchorsearch
{1 index MN cvn/NewN exch def cvn
findfont dup maxlength dict CD dup/FontName NewN put dup
/Encoding ourvec put NewN exch definefont pop}{pop}ifelse}bdf
/RF{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RC}
ifelse
}bdf
/FF{dup 256 string cvs(|______)exch MN cvn dup FontDirectory exch known
{exch pop findfont 3 -1 roll pop}
{pop dup findfont dup maxlength dict CD dup dup
/Encoding exch /Encoding get 256 array copy 7 -1 roll
{3 -1 roll dup 4 -2 roll put}forall put definefont}
ifelse}bdf
/RCJ{4 -1 roll
/ourvec xdf
256 string cvs
(|______) anchorsearch
{pop
cvn
dup FDFJ
exch
1 index
eq
{
_bfh findfont _efh
dup
maxlength dict
CD
dup
/FontName
3 index
put
dup
/Encoding ourvec put
1 index
exch
definefont
pop
}
{exch pop}
ifelse
}
{pop}
ifelse
}bdf
/RFJ{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RCJ}
ifelse
}bdf
/hasfont
{
/resourcestatus where
{
pop
/Font resourcestatus
{
pop pop true
}
{
false
}
ifelse
}
{
dup FontDirectory exch known
{pop true}
{
256 string
cvs
(fonts/) exch MN
status
{pop pop pop pop true}
{false}
ifelse
}
ifelse
}
ifelse
}bdf
/FDFJ
{
dup
hasfont
not
{
pop
/Ryumin-Light-83pv-RKSJ-H
hasfont
{
/Ryumin-Light-83pv-RKSJ-H
}
{
/Courier
}
ifelse
}
if
}bdf
/FFJ{
_bfh
dup
256 string cvs
(|______)exch MN
cvn
dup
FontDirectory
exch known
{
exch
pop
findfont
3 -1 roll
pop
}
{
pop
FDFJ
dup findfont
dup maxlength dict
CD
dup dup
/Encoding exch
/Encoding get
256 array copy
7 -1 roll
{
3 -1 roll
dup
4 -2 roll
put
}forall
put
definefont
}
ifelse
_efh
}bdf
/GS {
dup
hasfont
{
findfont
exch makesetfont
exch
pop
ts
}
{
pop pop pop
ts
} ifelse
} bdf
/RCK{4 -1 roll
/ourvec xdf
256 string cvs
(|______) anchorsearch
{pop
cvn
dup FDFK
exch
1 index
eq
{
_bfh findfont _efh
dup
maxlength dict
CD
dup
/FontName
3 index
put
dup
/Encoding ourvec put
1 index
exch
definefont
pop
}
{exch pop}
ifelse
}
{pop}
ifelse
}bdf
/RFK{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RCK}
ifelse
}bdf
/hasfont
{
/resourcestatus where
{
pop
/Font resourcestatus
{
pop pop true
}
{
false
}
ifelse
}
{
dup FontDirectory exch known
{pop true}
{
256 string
cvs
(fonts/) exch MN
status
{pop pop pop pop true}
{false}
ifelse
}
ifelse
}
ifelse
}bdf
/FDFK
{
dup
hasfont
not
{
pop
/JCsm
hasfont
{
/JCsm
}
{
/Courier
}
ifelse
}
if
}bdf
/FFK{
_bfh
dup
256 string cvs
(|______)exch MN
cvn
dup
FontDirectory
exch known
{
exch
pop
findfont
3 -1 roll
pop
}
{
pop
FDFK
dup findfont
dup maxlength dict
CD
dup dup
/Encoding exch
/Encoding get
256 array copy
7 -1 roll
{
3 -1 roll
dup
4 -2 roll
put
}forall
put
definefont
}
ifelse
_efh
}bdf
/RCTC{4 -1 roll
/ourvec xdf
256 string cvs
(|______) anchorsearch
{pop
cvn
dup FDFTC
exch
1 index
eq
{
_bfh findfont _efh
dup
maxlength dict
CD
dup
/FontName
3 index
put
dup
/Encoding ourvec put
1 index
exch
definefont
pop
}
{exch pop}
ifelse
}
{pop}
ifelse
}bdf
/RFTC{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RCTC}
ifelse
}bdf
/FDFTC
{
dup
hasfont
not
{
pop
/DFMing-Lt-HK-BF
hasfont
{
/DFMing-Lt-HK-BF
}
{
/Courier
}
ifelse
}
if
}bdf
/FFTC{
_bfh
dup
256 string cvs
(|______)exch MN
cvn
dup
FontDirectory
exch known
{
exch
pop
findfont
3 -1 roll
pop
}
{
pop
FDFTC
dup findfont
dup maxlength dict
CD
dup dup
/Encoding exch
/Encoding get
256 array copy
7 -1 roll
{
3 -1 roll
dup
4 -2 roll
put
}forall
put
definefont
}
ifelse
_efh
}bdf
/fps{
currentflat
exch
dup 0 le{pop 1}if
{
dup setflat 3 index stopped
{1.3 mul dup 3 index gt{pop setflat pop pop stop}if}
{exit}
ifelse
}loop
pop setflat pop pop
}bdf
/fp{100 currentflat fps}bdf
/clipper{clip}bdf
/W{/clipper load 100 clipflatness dup setflat fps}bdf
userdict begin /BDFontDict 29 dict def end
BDFontDict begin
/bu{}def
/bn{}def
/setTxMode{av 70 ge{pop}if pop}def
/gm{m}def
/show{pop}def
/gr{pop}def
/fnt{pop pop pop}def
/fs{pop}def
/fz{pop}def
/lin{pop pop}def
/:M {pop pop} def
/sf {pop} def
/S {pop} def
/@b {pop pop pop pop pop pop pop pop} def
/_bdsave /save load def
/_bdrestore /restore load def
/save { dup /fontsave eq {null} {_bdsave} ifelse } def
/restore { dup null eq { pop } { _bdrestore } ifelse } def
/fontsave null def
end
/MacVec 256 array def
MacVec 0 /Helvetica findfont
/Encoding get 0 128 getinterval putinterval
MacVec 127 /DEL put MacVec 16#27 /quotesingle put MacVec 16#60 /grave put
/NUL/SOH/STX/ETX/EOT/ENQ/ACK/BEL/BS/HT/LF/VT/FF/CR/SO/SI
/DLE/DC1/DC2/DC3/DC4/NAK/SYN/ETB/CAN/EM/SUB/ESC/FS/GS/RS/US
MacVec 0 32 getinterval astore pop
/Adieresis/Aring/Ccedilla/Eacute/Ntilde/Odieresis/Udieresis/aacute
/agrave/acircumflex/adieresis/atilde/aring/ccedilla/eacute/egrave
/ecircumflex/edieresis/iacute/igrave/icircumflex/idieresis/ntilde/oacute
/ograve/ocircumflex/odieresis/otilde/uacute/ugrave/ucircumflex/udieresis
/dagger/degree/cent/sterling/section/bullet/paragraph/germandbls
/registered/copyright/trademark/acute/dieresis/notequal/AE/Oslash
/infinity/plusminus/lessequal/greaterequal/yen/mu/partialdiff/summation
/product/pi/integral/ordfeminine/ordmasculine/Omega/ae/oslash
/questiondown/exclamdown/logicalnot/radical/florin/approxequal/Delta/guillemotleft
/guillemotright/ellipsis/nbspace/Agrave/Atilde/Otilde/OE/oe
/endash/emdash/quotedblleft/quotedblright/quoteleft/quoteright/divide/lozenge
/ydieresis/Ydieresis/fraction/currency/guilsinglleft/guilsinglright/fi/fl
/daggerdbl/periodcentered/quotesinglbase/quotedblbase
/perthousand/Acircumflex/Ecircumflex/Aacute
/Edieresis/Egrave/Iacute/Icircumflex/Idieresis/Igrave/Oacute/Ocircumflex
/apple/Ograve/Uacute/Ucircumflex/Ugrave/dotlessi/circumflex/tilde
/macron/breve/dotaccent/ring/cedilla/hungarumlaut/ogonek/caron
MacVec 128 128 getinterval astore pop
/findheaderfont {
/Helvetica findfont
} def
end %. AltsysDict
%%EndResource
%%EndProlog
%%BeginSetup
AltsysDict begin
_bfh
_efh
end %. AltsysDict
%%EndSetup
AltsysDict begin
/onlyk4{false}ndf
/ccmyk{dup 5 -1 roll sub 0 max exch}ndf
/cmyk2gray{
4 -1 roll 0.3 mul 4 -1 roll 0.59 mul 4 -1 roll 0.11 mul
add add add 1 min neg 1 add
}bdf
/setcmykcolor{1 exch sub ccmyk ccmyk ccmyk pop setrgbcolor}ndf
/maxcolor {
max max max
} ndf
/maxspot {
pop
} ndf
/setcmykcoloroverprint{4{dup -1 eq{pop 0}if 4 1 roll}repeat setcmykcolor}ndf
/findcmykcustomcolor{5 packedarray}ndf
/setcustomcolor{exch aload pop pop 4{4 index mul 4 1 roll}repeat setcmykcolor pop}ndf
/setseparationgray{setgray}ndf
/setoverprint{pop}ndf
/currentoverprint false ndf
/cmykbufs2gray{
0 1 2 index length 1 sub
{
4 index 1 index get 0.3 mul
4 index 2 index get 0.59 mul
4 index 3 index get 0.11 mul
4 index 4 index get
add add add cvi 255 min
255 exch sub
2 index 3 1 roll put
}for
4 1 roll pop pop pop
}bdf
/colorimage{
pop pop
[
5 -1 roll/exec cvx
6 -1 roll/exec cvx
7 -1 roll/exec cvx
8 -1 roll/exec cvx
/cmykbufs2gray cvx
]cvx
image
}
%. version 47.1 on Linotronic of Postscript defines colorimage incorrectly (rgb model only)
version cvr 47.1 le
statusdict /product get (Lino) anchorsearch{pop pop true}{pop false}ifelse
and{userdict begin bdf end}{ndf}ifelse
fhnumcolors 1 ne {/yt save def} if
/customcolorimage{
aload pop
(_vc_Registration) eq
{
pop pop pop pop separationimage
}
{
/ik xdf /iy xdf /im xdf /ic xdf
ic im iy ik cmyk2gray /xt xdf
currenttransfer
{dup 1.0 exch sub xt mul add}concatprocs
st
image
}
ifelse
}ndf
fhnumcolors 1 ne {yt restore} if
fhnumcolors 3 ne {/yt save def} if
/customcolorimage{
aload pop
(_vc_Registration) eq
{
pop pop pop pop separationimage
}
{
/ik xdf /iy xdf /im xdf /ic xdf
1.0 dup ic ik add min sub
1.0 dup im ik add min sub
1.0 dup iy ik add min sub
/ic xdf /iy xdf /im xdf
currentcolortransfer
4 1 roll
{dup 1.0 exch sub ic mul add}concatprocs 4 1 roll
{dup 1.0 exch sub iy mul add}concatprocs 4 1 roll
{dup 1.0 exch sub im mul add}concatprocs 4 1 roll
setcolortransfer
{/dummy xdf dummy}concatprocs{dummy}{dummy}true 3 colorimage
}
ifelse
}ndf
fhnumcolors 3 ne {yt restore} if
fhnumcolors 4 ne {/yt save def} if
/customcolorimage{
aload pop
(_vc_Registration) eq
{
pop pop pop pop separationimage
}
{
/ik xdf /iy xdf /im xdf /ic xdf
currentcolortransfer
{1.0 exch sub ik mul ik sub 1 add}concatprocs 4 1 roll
{1.0 exch sub iy mul iy sub 1 add}concatprocs 4 1 roll
{1.0 exch sub im mul im sub 1 add}concatprocs 4 1 roll
{1.0 exch sub ic mul ic sub 1 add}concatprocs 4 1 roll
setcolortransfer
{/dummy xdf dummy}concatprocs{dummy}{dummy}{dummy}
true 4 colorimage
}
ifelse
}ndf
fhnumcolors 4 ne {yt restore} if
/separationimage{image}ndf
/spotascmyk false ndf
/newcmykcustomcolor{6 packedarray}ndf
/inkoverprint false ndf
/setinkoverprint{pop}ndf
/setspotcolor {
spots exch get
dup 4 get (_vc_Registration) eq
{pop 1 exch sub setseparationgray}
{0 5 getinterval exch setcustomcolor}
ifelse
}ndf
/currentcolortransfer{currenttransfer dup dup dup}ndf
/setcolortransfer{st pop pop pop}ndf
/fas{}ndf
/sas{}ndf
/fhsetspreadsize{pop}ndf
/filler{fill}bdf
/F{gsave {filler}fp grestore}bdf
/f{closepath F}bdf
/S{gsave {stroke}fp grestore}bdf
/s{closepath S}bdf
userdict /islevel2
systemdict /languagelevel known dup
{
pop systemdict /languagelevel get 2 ge
} if
put
islevel2 not
{
/currentcmykcolor
{
0 0 0 1 currentgray sub
} ndf
} if
/tc
{
gsave
setcmykcolor currentcmykcolor
grestore
} bind def
/testCMYKColorThrough
{
tc add add add 0 ne
} bind def
/fhiscomposite where not {
userdict /fhiscomposite
islevel2
{
gsave 1 1 1 1 setcmykcolor currentcmykcolor grestore
add add add 4 eq
}
{
1 0 0 0 testCMYKColorThrough
0 1 0 0 testCMYKColorThrough
0 0 1 0 testCMYKColorThrough
0 0 0 1 testCMYKColorThrough
and and and
} ifelse
put
}
{ pop }
ifelse
/bc4 [0 0 0 0] def
/_lfp4 {
1 pop
/yt xdf
/xt xdf
/ang xdf
storerect
/taperfcn xdf
/k2 xdf /y2 xdf /m2 xdf /c2 xdf
/k1 xdf /y1 xdf /m1 xdf /c1 xdf
c1 c2 sub abs
m1 m2 sub abs
y1 y2 sub abs
k1 k2 sub abs
maxcolor
calcgraysteps mul abs round
height abs adjnumsteps
dup 1 lt {pop 1} if
1 sub /numsteps1 xdf
currentflat mark
currentflat clipflatness
/delta top bottom sub numsteps1 1 add div def
/right right left sub def
/botsv top delta sub def
{
{
W
xt yt translate
ang rotate
xt neg yt neg translate
dup setflat
/bottom botsv def
0 1 numsteps1
{
numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse
taperfcn /frac xdf
bc4 0 c2 c1 sub frac mul c1 add put
bc4 1 m2 m1 sub frac mul m1 add put
bc4 2 y2 y1 sub frac mul y1 add put
bc4 3 k2 k1 sub frac mul k1 add put
bc4 vc
1 index setflat
{
mark {newpath left bottom right delta rectfill}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
/bottom bottom delta sub def
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/bcs [0 0] def
/_lfs4 {
/yt xdf
/xt xdf
/ang xdf
storerect
/taperfcn xdf
/tint2 xdf
/tint1 xdf
bcs exch 1 exch put
tint1 tint2 sub abs
bcs 1 get maxspot
calcgraysteps mul abs round
height abs adjnumsteps
dup 2 lt {pop 2} if
1 sub /numsteps1 xdf
currentflat mark
currentflat clipflatness
/delta top bottom sub numsteps1 1 add div def
/right right left sub def
/botsv top delta sub def
{
{
W
xt yt translate
ang rotate
xt neg yt neg translate
dup setflat
/bottom botsv def
0 1 numsteps1
{
numsteps1 div taperfcn /frac xdf
bcs 0
1.0 tint2 tint1 sub frac mul tint1 add sub
put bcs vc
1 index setflat
{
mark {newpath left bottom right delta rectfill}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
/bottom bottom delta sub def
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/_rfs6 {
/tint2 xdf
/tint1 xdf
bcs exch 1 exch put
/inrad xdf
/radius xdf
/yt xdf
/xt xdf
tint1 tint2 sub abs
bcs 1 get maxspot
calcgraysteps mul abs round
radius inrad sub abs
adjnumsteps
dup 1 lt {pop 1} if
1 sub /numsteps1 xdf
radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse
2 div /halfstep xdf
currentflat mark
currentflat clipflatness
{
{
dup setflat
W
0 1 numsteps1
{
dup /radindex xdf
numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse
/frac xdf
bcs 0
tint2 tint1 sub frac mul tint1 add
put bcs vc
1 index setflat
{
newpath mark
xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360
{ arc
radindex numsteps1 ne
inrad 0 gt or
{
xt yt
numsteps1 0 eq
{ inrad }
{
radindex 1 add numsteps1 div 1 exch sub
radius inrad sub mul halfstep add inrad add
}ifelse
dup xt add yt moveto
360 0 arcn
} if
fill
}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/_rfp6 {
1 pop
/k2 xdf /y2 xdf /m2 xdf /c2 xdf
/k1 xdf /y1 xdf /m1 xdf /c1 xdf
/inrad xdf
/radius xdf
/yt xdf
/xt xdf
c1 c2 sub abs
m1 m2 sub abs
y1 y2 sub abs
k1 k2 sub abs
maxcolor
calcgraysteps mul abs round
radius inrad sub abs
adjnumsteps
dup 1 lt {pop 1} if
1 sub /numsteps1 xdf
radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse
2 div /halfstep xdf
currentflat mark
currentflat clipflatness
{
{
dup setflat
W
0 1 numsteps1
{
dup /radindex xdf
numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse
/frac xdf
bc4 0 c2 c1 sub frac mul c1 add put
bc4 1 m2 m1 sub frac mul m1 add put
bc4 2 y2 y1 sub frac mul y1 add put
bc4 3 k2 k1 sub frac mul k1 add put
bc4 vc
1 index setflat
{
newpath mark
xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360
{ arc
radindex numsteps1 ne
inrad 0 gt or
{
xt yt
numsteps1 0 eq
{ inrad }
{
radindex 1 add numsteps1 div 1 exch sub
radius inrad sub mul halfstep add inrad add
}ifelse
dup xt add yt moveto
360 0 arcn
} if
fill
}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/lfp4{_lfp4}ndf
/lfs4{_lfs4}ndf
/rfs6{_rfs6}ndf
/rfp6{_rfp6}ndf
/cvc [0 0 0 1] def
/vc{
AltsysDict /cvc 2 index put
aload length dup 4 eq
{pop dup -1 eq{pop setrgbcolor}{setcmykcolor}ifelse}
{6 eq {sethexcolor} {setspotcolor} ifelse }
ifelse
}bdf
0 setseparationgray
/imgr {1692.47 1570.59 1723.65 1601.77 } def
/bleed 0 def
/clpr {1692.47 1570.59 1723.65 1601.77 } def
/xs 1 def
/ys 1 def
/botx 0 def
/overlap 0 def
/wdist 18 def
0 2 mul fhsetspreadsize
0 0 ne {/df 0 def /clipflatness 0 def} if
/maxsteps 256 def
/forcemaxsteps false def
/minsteps 0 def
userdict begin /AGDOrigMtx matrix currentmatrix def end
vms
-1694 -1572 translate
/currentpacking defed{false setpacking}if
/spots[
1 0 0 0 (Process Cyan) false newcmykcustomcolor
0 1 0 0 (Process Magenta) false newcmykcustomcolor
0 0 1 0 (Process Yellow) false newcmykcustomcolor
0 0 0 1 (Process Black) false newcmykcustomcolor
]def
n
[] 0 d
3.863708 M
1 w
0 j
0 J
false setoverprint
0 i
false eomode
[0 0 0 1]vc
vms
q
[1 0 0 1 -249.981674 -586.867554] concat
vms
1946.9506 2177.5114 m
1954.4907 2185.0516 L
1956.7047 2187.2656 1960.2943 2187.2656 1962.5083 2185.0516 C
1970.0485 2177.5114 L
1972.2625 2175.2974 1972.2625 2171.7078 1970.0485 2169.4938 C
1962.5083 2161.9537 L
1960.2943 2159.7396 1956.7047 2159.7396 1954.4907 2161.9537 C
1946.9506 2169.4938 L
1944.7365 2171.7078 1944.7365 2175.2974 1946.9506 2177.5114 C
s
n
true eomode
1958.5469 2181.0039 m
1959.2148 2181.0039 1959.7012 2180.9296 1960.0059 2180.7813 C
1960.3142 2180.6326 1960.4684 2180.363 1960.4688 2179.9727 C
1960.4688 2179.7383 1960.3398 2178.8026 1960.082 2177.166 C
1959.0742 2170.4219 L
1958.9373 2170.3241 1958.7615 2170.2754 1958.5469 2170.2754 C
1958.3319 2170.2754 1958.1561 2170.3241 1958.0195 2170.4219 C
1957.0117 2177.166 L
1956.7539 2178.8026 1956.625 2179.7379 1956.625 2179.9727 C
1956.625 2180.363 1956.7792 2180.6326 1957.0879 2180.7813 C
1957.4003 2180.9296 1957.8866 2181.0035 1958.5469 2181.0039 C
h
1958.5469 2165.166 m
1958.0389 2165.166 1957.5878 2165.3499 1957.1934 2165.7168 C
1956.7986 2166.0837 1956.6016 2166.5485 1956.6016 2167.1113 C
1956.6016 2167.6698 1956.7891 2168.1404 1957.1641 2168.5234 C
1957.5427 2168.9102 1958.0038 2169.1035 1958.5469 2169.1035 C
1959.1094 2169.1035 1959.5741 2168.9043 1959.9414 2168.5059 C
1960.3083 2168.1074 1960.4918 2167.6423 1960.4922 2167.1113 C
1960.4922 2166.748 1960.4102 2166.4177 1960.2461 2166.1211 C
1960.082 2165.8241 1959.8513 2165.5916 1959.5547 2165.4238 C
1959.2577 2165.2521 1958.9219 2165.1664 1958.5469 2165.166 C
true setoverprint
f
false setoverprint
n
vmr
Q
false eomode
vmr
vmr
end
%%Trailer
\ No newline at end of file diff --git a/docs/docbook/xslt/figures/caution.pdf b/docs/docbook/xslt/figures/caution.pdf Binary files differnew file mode 100644 index 0000000000..a0afabfa23 --- /dev/null +++ b/docs/docbook/xslt/figures/caution.pdf diff --git a/docs/docbook/xslt/figures/important.eps b/docs/docbook/xslt/figures/important.eps new file mode 100644 index 0000000000..0c10b371b1 --- /dev/null +++ b/docs/docbook/xslt/figures/important.eps @@ -0,0 +1 @@ +%!PS-Adobe-2.0 EPSF-1.2
%%Title: Untitled-3
%%Creator: FreeHand 9.0
%%CreationDate: 2002/12/05 8:20 PM
%%BoundingBox: 0 0 29 29
%%FHPathName:Untitled:FreeHand 9:English:Untitled-3
%ALDOriginalFile:Untitled:FreeHand 9:English:Untitled-3
%ALDBoundingBox: -2 -2 29 29
%%FHPageNum:1
%%DocumentSuppliedResources: procset Altsys_header 4 0
%%ColorUsage: Color
%%DocumentProcessColors: Black
%%EndComments
%%BeginResource: procset Altsys_header 4 0
userdict begin /AltsysDict 300 dict def end
AltsysDict begin
/bdf{bind def}bind def
/xdf{exch def}bdf
/defed{where{pop true}{false}ifelse}bdf
/ndf{1 index where{pop pop pop}{dup xcheck{bind}if def}ifelse}bdf
/d{setdash}bdf
/h{closepath}bdf
/H{}bdf
/J{setlinecap}bdf
/j{setlinejoin}bdf
/M{setmiterlimit}bdf
/n{newpath}bdf
/N{newpath}bdf
/q{gsave}bdf
/Q{grestore}bdf
/w{setlinewidth}bdf
/Xic{matrix invertmatrix concat}bdf
/Xq{matrix currentmatrix mark}bdf
/XQ{cleartomark setmatrix}bdf
/sepdef{
dup where not
{
AltsysSepDict
}
if
3 1 roll exch put
}bdf
/st{settransfer}bdf
/colorimage defed /_rci xdf
/cntr 0 def
/readbinarystring{
/cntr 0 def
2 copy readstring
{
{
dup
(\034) search
{
length exch pop exch
dup length 0 ne
{
dup dup 0 get 32 sub 0 exch put
/cntr cntr 1 add def
}
{
pop 1 string dup
0 6 index read pop 32 sub put
}ifelse
3 copy
putinterval pop
1 add
1 index length 1 sub
1 index sub
dup 0 le {pop pop exit}if
getinterval
}
{
pop exit
} ifelse
} loop
}if
cntr 0 gt
{
pop 2 copy
dup length cntr sub cntr getinterval
readbinarystring
} if
pop exch pop
} bdf
/_NXLevel2 defed {
_NXLevel2 not {
/colorimage where {
userdict eq {
/_rci false def
} if
} if
} if
} if
/md defed{
md type /dicttype eq {
/colorimage where {
md eq {
/_rci false def
}if
}if
/settransfer where {
md eq {
/st systemdict /settransfer get def
}if
}if
}if
}if
/setstrokeadjust defed
{
true setstrokeadjust
/C{curveto}bdf
/L{lineto}bdf
/m{moveto}bdf
}
{
/dr{transform .25 sub round .25 add
exch .25 sub round .25 add exch itransform}bdf
/C{dr curveto}bdf
/L{dr lineto}bdf
/m{dr moveto}bdf
/setstrokeadjust{pop}bdf
}ifelse
/privrectpath {
4 -2 roll m
dtransform round exch round exch idtransform
2 copy 0 lt exch 0 lt xor
{dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto}
{exch dup 0 rlineto exch 0 exch rlineto neg 0 rlineto}
ifelse
closepath
}bdf
/rectclip{newpath privrectpath clip newpath}def
/rectfill{gsave newpath privrectpath fill grestore}def
/rectstroke{gsave newpath privrectpath stroke grestore}def
/_fonthacksave false def
/currentpacking defed
{
/_bfh {/_fonthacksave currentpacking def false setpacking} bdf
/_efh {_fonthacksave setpacking} bdf
}
{
/_bfh {} bdf
/_efh {} bdf
}ifelse
/packedarray{array astore readonly}ndf
/`
{
false setoverprint
/-save0- save def
5 index concat
pop
storerect left bottom width height rectclip
pop
/MMdict_count countdictstack def
/MMop_count count 1 sub def
userdict begin
/showpage {} def
0 setgray 0 setlinecap 1 setlinewidth
0 setlinejoin 10 setmiterlimit [] 0 setdash newpath
} bdf
/currentpacking defed{true setpacking}if
/min{2 copy gt{exch}if pop}bdf
/max{2 copy lt{exch}if pop}bdf
/xformfont { currentfont exch makefont setfont } bdf
/fhnumcolors 1
statusdict begin
/processcolors defed
{
pop processcolors
}
{
/deviceinfo defed {
deviceinfo /Colors known {
pop deviceinfo /Colors get
} if
} if
} ifelse
end
def
/printerRes
gsave
matrix defaultmatrix setmatrix
72 72 dtransform
abs exch abs
max
grestore
def
/graycalcs
[
{Angle Frequency}
{GrayAngle GrayFrequency}
{0 Width Height matrix defaultmatrix idtransform
dup mul exch dup mul add sqrt 72 exch div}
{0 GrayWidth GrayHeight matrix defaultmatrix idtransform
dup mul exch dup mul add sqrt 72 exch div}
] def
/calcgraysteps {
forcemaxsteps
{
maxsteps
}
{
/currenthalftone defed
{currenthalftone /dicttype eq}{false}ifelse
{
currenthalftone begin
HalftoneType 4 le
{graycalcs HalftoneType 1 sub get exec}
{
HalftoneType 5 eq
{
Default begin
{graycalcs HalftoneType 1 sub get exec}
end
}
{0 60}
ifelse
}
ifelse
end
}
{
currentscreen pop exch
}
ifelse
printerRes 300 max exch div exch
2 copy
sin mul round dup mul
3 1 roll
cos mul round dup mul
add 1 add
dup maxsteps gt {pop maxsteps} if
dup minsteps lt {pop minsteps} if
}
ifelse
} bdf
/nextrelease defed {
/languagelevel defed not {
/framebuffer defed {
0 40 string framebuffer 9 1 roll 8 {pop} repeat
dup 516 eq exch 520 eq or
{
/fhnumcolors 3 def
/currentscreen {60 0 {pop pop 1}}bdf
/calcgraysteps {maxsteps} bdf
}if
}if
}if
}if
fhnumcolors 1 ne {
/calcgraysteps {maxsteps} bdf
} if
/currentpagedevice defed {
currentpagedevice /PreRenderingEnhance known
{
currentpagedevice /PreRenderingEnhance get
{
/calcgraysteps
{
forcemaxsteps
{maxsteps}
{256 maxsteps min}
ifelse
} def
} if
} if
} if
/gradfrequency 144 def
printerRes 1000 lt {
/gradfrequency 72 def
} if
/adjnumsteps {
dup dtransform abs exch abs max
printerRes div
gradfrequency mul
round
5 max
min
}bdf
/goodsep {
spots exch get 4 get dup sepname eq exch (_vc_Registration) eq or
}bdf
/BeginGradation defed
{/bb{BeginGradation}bdf}
{/bb{}bdf}
ifelse
/EndGradation defed
{/eb{EndGradation}bdf}
{/eb{}bdf}
ifelse
/bottom -0 def
/delta -0 def
/frac -0 def
/height -0 def
/left -0 def
/numsteps1 -0 def
/radius -0 def
/right -0 def
/top -0 def
/width -0 def
/xt -0 def
/yt -0 def
/df currentflat def
/tempstr 1 string def
/clipflatness currentflat def
/inverted?
0 currenttransfer exec .5 ge def
/tc1 [0 0 0 1] def
/tc2 [0 0 0 1] def
/storerect{/top xdf /right xdf /bottom xdf /left xdf
/width right left sub def /height top bottom sub def}bdf
/concatprocs{
systemdict /packedarray known
{dup type /packedarraytype eq 2 index type /packedarraytype eq or}{false}ifelse
{
/proc2 exch cvlit def /proc1 exch cvlit def
proc1 aload pop proc2 aload pop
proc1 length proc2 length add packedarray cvx
}
{
/proc2 exch cvlit def /proc1 exch cvlit def
/newproc proc1 length proc2 length add array def
newproc 0 proc1 putinterval newproc proc1 length proc2 putinterval
newproc cvx
}ifelse
}bdf
/i{dup 0 eq
{pop df dup}
{dup} ifelse
/clipflatness xdf setflat
}bdf
version cvr 38.0 le
{/setrgbcolor{
currenttransfer exec 3 1 roll
currenttransfer exec 3 1 roll
currenttransfer exec 3 1 roll
setrgbcolor}bdf}if
/vms {/vmsv save def} bdf
/vmr {vmsv restore} bdf
/vmrs{vmsv restore /vmsv save def}bdf
/eomode{
{/filler /eofill load def /clipper /eoclip load def}
{/filler /fill load def /clipper /clip load def}
ifelse
}bdf
/normtaper{}bdf
/logtaper{9 mul 1 add log}bdf
/CD{
/NF exch def
{
exch dup
/FID ne 1 index/UniqueID ne and
{exch NF 3 1 roll put}
{pop pop}
ifelse
}forall
NF
}bdf
/MN{
1 index length
/Len exch def
dup length Len add
string dup
Len
4 -1 roll
putinterval
dup
0
4 -1 roll
putinterval
}bdf
/RC{4 -1 roll /ourvec xdf 256 string cvs(|______)anchorsearch
{1 index MN cvn/NewN exch def cvn
findfont dup maxlength dict CD dup/FontName NewN put dup
/Encoding ourvec put NewN exch definefont pop}{pop}ifelse}bdf
/RF{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RC}
ifelse
}bdf
/FF{dup 256 string cvs(|______)exch MN cvn dup FontDirectory exch known
{exch pop findfont 3 -1 roll pop}
{pop dup findfont dup maxlength dict CD dup dup
/Encoding exch /Encoding get 256 array copy 7 -1 roll
{3 -1 roll dup 4 -2 roll put}forall put definefont}
ifelse}bdf
/RCJ{4 -1 roll
/ourvec xdf
256 string cvs
(|______) anchorsearch
{pop
cvn
dup FDFJ
exch
1 index
eq
{
_bfh findfont _efh
dup
maxlength dict
CD
dup
/FontName
3 index
put
dup
/Encoding ourvec put
1 index
exch
definefont
pop
}
{exch pop}
ifelse
}
{pop}
ifelse
}bdf
/RFJ{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RCJ}
ifelse
}bdf
/hasfont
{
/resourcestatus where
{
pop
/Font resourcestatus
{
pop pop true
}
{
false
}
ifelse
}
{
dup FontDirectory exch known
{pop true}
{
256 string
cvs
(fonts/) exch MN
status
{pop pop pop pop true}
{false}
ifelse
}
ifelse
}
ifelse
}bdf
/FDFJ
{
dup
hasfont
not
{
pop
/Ryumin-Light-83pv-RKSJ-H
hasfont
{
/Ryumin-Light-83pv-RKSJ-H
}
{
/Courier
}
ifelse
}
if
}bdf
/FFJ{
_bfh
dup
256 string cvs
(|______)exch MN
cvn
dup
FontDirectory
exch known
{
exch
pop
findfont
3 -1 roll
pop
}
{
pop
FDFJ
dup findfont
dup maxlength dict
CD
dup dup
/Encoding exch
/Encoding get
256 array copy
7 -1 roll
{
3 -1 roll
dup
4 -2 roll
put
}forall
put
definefont
}
ifelse
_efh
}bdf
/GS {
dup
hasfont
{
findfont
exch makesetfont
exch
pop
ts
}
{
pop pop pop
ts
} ifelse
} bdf
/RCK{4 -1 roll
/ourvec xdf
256 string cvs
(|______) anchorsearch
{pop
cvn
dup FDFK
exch
1 index
eq
{
_bfh findfont _efh
dup
maxlength dict
CD
dup
/FontName
3 index
put
dup
/Encoding ourvec put
1 index
exch
definefont
pop
}
{exch pop}
ifelse
}
{pop}
ifelse
}bdf
/RFK{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RCK}
ifelse
}bdf
/hasfont
{
/resourcestatus where
{
pop
/Font resourcestatus
{
pop pop true
}
{
false
}
ifelse
}
{
dup FontDirectory exch known
{pop true}
{
256 string
cvs
(fonts/) exch MN
status
{pop pop pop pop true}
{false}
ifelse
}
ifelse
}
ifelse
}bdf
/FDFK
{
dup
hasfont
not
{
pop
/JCsm
hasfont
{
/JCsm
}
{
/Courier
}
ifelse
}
if
}bdf
/FFK{
_bfh
dup
256 string cvs
(|______)exch MN
cvn
dup
FontDirectory
exch known
{
exch
pop
findfont
3 -1 roll
pop
}
{
pop
FDFK
dup findfont
dup maxlength dict
CD
dup dup
/Encoding exch
/Encoding get
256 array copy
7 -1 roll
{
3 -1 roll
dup
4 -2 roll
put
}forall
put
definefont
}
ifelse
_efh
}bdf
/RCTC{4 -1 roll
/ourvec xdf
256 string cvs
(|______) anchorsearch
{pop
cvn
dup FDFTC
exch
1 index
eq
{
_bfh findfont _efh
dup
maxlength dict
CD
dup
/FontName
3 index
put
dup
/Encoding ourvec put
1 index
exch
definefont
pop
}
{exch pop}
ifelse
}
{pop}
ifelse
}bdf
/RFTC{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RCTC}
ifelse
}bdf
/FDFTC
{
dup
hasfont
not
{
pop
/DFMing-Lt-HK-BF
hasfont
{
/DFMing-Lt-HK-BF
}
{
/Courier
}
ifelse
}
if
}bdf
/FFTC{
_bfh
dup
256 string cvs
(|______)exch MN
cvn
dup
FontDirectory
exch known
{
exch
pop
findfont
3 -1 roll
pop
}
{
pop
FDFTC
dup findfont
dup maxlength dict
CD
dup dup
/Encoding exch
/Encoding get
256 array copy
7 -1 roll
{
3 -1 roll
dup
4 -2 roll
put
}forall
put
definefont
}
ifelse
_efh
}bdf
/fps{
currentflat
exch
dup 0 le{pop 1}if
{
dup setflat 3 index stopped
{1.3 mul dup 3 index gt{pop setflat pop pop stop}if}
{exit}
ifelse
}loop
pop setflat pop pop
}bdf
/fp{100 currentflat fps}bdf
/clipper{clip}bdf
/W{/clipper load 100 clipflatness dup setflat fps}bdf
userdict begin /BDFontDict 29 dict def end
BDFontDict begin
/bu{}def
/bn{}def
/setTxMode{av 70 ge{pop}if pop}def
/gm{m}def
/show{pop}def
/gr{pop}def
/fnt{pop pop pop}def
/fs{pop}def
/fz{pop}def
/lin{pop pop}def
/:M {pop pop} def
/sf {pop} def
/S {pop} def
/@b {pop pop pop pop pop pop pop pop} def
/_bdsave /save load def
/_bdrestore /restore load def
/save { dup /fontsave eq {null} {_bdsave} ifelse } def
/restore { dup null eq { pop } { _bdrestore } ifelse } def
/fontsave null def
end
/MacVec 256 array def
MacVec 0 /Helvetica findfont
/Encoding get 0 128 getinterval putinterval
MacVec 127 /DEL put MacVec 16#27 /quotesingle put MacVec 16#60 /grave put
/NUL/SOH/STX/ETX/EOT/ENQ/ACK/BEL/BS/HT/LF/VT/FF/CR/SO/SI
/DLE/DC1/DC2/DC3/DC4/NAK/SYN/ETB/CAN/EM/SUB/ESC/FS/GS/RS/US
MacVec 0 32 getinterval astore pop
/Adieresis/Aring/Ccedilla/Eacute/Ntilde/Odieresis/Udieresis/aacute
/agrave/acircumflex/adieresis/atilde/aring/ccedilla/eacute/egrave
/ecircumflex/edieresis/iacute/igrave/icircumflex/idieresis/ntilde/oacute
/ograve/ocircumflex/odieresis/otilde/uacute/ugrave/ucircumflex/udieresis
/dagger/degree/cent/sterling/section/bullet/paragraph/germandbls
/registered/copyright/trademark/acute/dieresis/notequal/AE/Oslash
/infinity/plusminus/lessequal/greaterequal/yen/mu/partialdiff/summation
/product/pi/integral/ordfeminine/ordmasculine/Omega/ae/oslash
/questiondown/exclamdown/logicalnot/radical/florin/approxequal/Delta/guillemotleft
/guillemotright/ellipsis/nbspace/Agrave/Atilde/Otilde/OE/oe
/endash/emdash/quotedblleft/quotedblright/quoteleft/quoteright/divide/lozenge
/ydieresis/Ydieresis/fraction/currency/guilsinglleft/guilsinglright/fi/fl
/daggerdbl/periodcentered/quotesinglbase/quotedblbase
/perthousand/Acircumflex/Ecircumflex/Aacute
/Edieresis/Egrave/Iacute/Icircumflex/Idieresis/Igrave/Oacute/Ocircumflex
/apple/Ograve/Uacute/Ucircumflex/Ugrave/dotlessi/circumflex/tilde
/macron/breve/dotaccent/ring/cedilla/hungarumlaut/ogonek/caron
MacVec 128 128 getinterval astore pop
/findheaderfont {
/Helvetica findfont
} def
end %. AltsysDict
%%EndResource
%%EndProlog
%%BeginSetup
AltsysDict begin
_bfh
_efh
end %. AltsysDict
%%EndSetup
AltsysDict begin
/onlyk4{false}ndf
/ccmyk{dup 5 -1 roll sub 0 max exch}ndf
/cmyk2gray{
4 -1 roll 0.3 mul 4 -1 roll 0.59 mul 4 -1 roll 0.11 mul
add add add 1 min neg 1 add
}bdf
/setcmykcolor{1 exch sub ccmyk ccmyk ccmyk pop setrgbcolor}ndf
/maxcolor {
max max max
} ndf
/maxspot {
pop
} ndf
/setcmykcoloroverprint{4{dup -1 eq{pop 0}if 4 1 roll}repeat setcmykcolor}ndf
/findcmykcustomcolor{5 packedarray}ndf
/setcustomcolor{exch aload pop pop 4{4 index mul 4 1 roll}repeat setcmykcolor pop}ndf
/setseparationgray{setgray}ndf
/setoverprint{pop}ndf
/currentoverprint false ndf
/cmykbufs2gray{
0 1 2 index length 1 sub
{
4 index 1 index get 0.3 mul
4 index 2 index get 0.59 mul
4 index 3 index get 0.11 mul
4 index 4 index get
add add add cvi 255 min
255 exch sub
2 index 3 1 roll put
}for
4 1 roll pop pop pop
}bdf
/colorimage{
pop pop
[
5 -1 roll/exec cvx
6 -1 roll/exec cvx
7 -1 roll/exec cvx
8 -1 roll/exec cvx
/cmykbufs2gray cvx
]cvx
image
}
%. version 47.1 on Linotronic of Postscript defines colorimage incorrectly (rgb model only)
version cvr 47.1 le
statusdict /product get (Lino) anchorsearch{pop pop true}{pop false}ifelse
and{userdict begin bdf end}{ndf}ifelse
fhnumcolors 1 ne {/yt save def} if
/customcolorimage{
aload pop
(_vc_Registration) eq
{
pop pop pop pop separationimage
}
{
/ik xdf /iy xdf /im xdf /ic xdf
ic im iy ik cmyk2gray /xt xdf
currenttransfer
{dup 1.0 exch sub xt mul add}concatprocs
st
image
}
ifelse
}ndf
fhnumcolors 1 ne {yt restore} if
fhnumcolors 3 ne {/yt save def} if
/customcolorimage{
aload pop
(_vc_Registration) eq
{
pop pop pop pop separationimage
}
{
/ik xdf /iy xdf /im xdf /ic xdf
1.0 dup ic ik add min sub
1.0 dup im ik add min sub
1.0 dup iy ik add min sub
/ic xdf /iy xdf /im xdf
currentcolortransfer
4 1 roll
{dup 1.0 exch sub ic mul add}concatprocs 4 1 roll
{dup 1.0 exch sub iy mul add}concatprocs 4 1 roll
{dup 1.0 exch sub im mul add}concatprocs 4 1 roll
setcolortransfer
{/dummy xdf dummy}concatprocs{dummy}{dummy}true 3 colorimage
}
ifelse
}ndf
fhnumcolors 3 ne {yt restore} if
fhnumcolors 4 ne {/yt save def} if
/customcolorimage{
aload pop
(_vc_Registration) eq
{
pop pop pop pop separationimage
}
{
/ik xdf /iy xdf /im xdf /ic xdf
currentcolortransfer
{1.0 exch sub ik mul ik sub 1 add}concatprocs 4 1 roll
{1.0 exch sub iy mul iy sub 1 add}concatprocs 4 1 roll
{1.0 exch sub im mul im sub 1 add}concatprocs 4 1 roll
{1.0 exch sub ic mul ic sub 1 add}concatprocs 4 1 roll
setcolortransfer
{/dummy xdf dummy}concatprocs{dummy}{dummy}{dummy}
true 4 colorimage
}
ifelse
}ndf
fhnumcolors 4 ne {yt restore} if
/separationimage{image}ndf
/spotascmyk false ndf
/newcmykcustomcolor{6 packedarray}ndf
/inkoverprint false ndf
/setinkoverprint{pop}ndf
/setspotcolor {
spots exch get
dup 4 get (_vc_Registration) eq
{pop 1 exch sub setseparationgray}
{0 5 getinterval exch setcustomcolor}
ifelse
}ndf
/currentcolortransfer{currenttransfer dup dup dup}ndf
/setcolortransfer{st pop pop pop}ndf
/fas{}ndf
/sas{}ndf
/fhsetspreadsize{pop}ndf
/filler{fill}bdf
/F{gsave {filler}fp grestore}bdf
/f{closepath F}bdf
/S{gsave {stroke}fp grestore}bdf
/s{closepath S}bdf
userdict /islevel2
systemdict /languagelevel known dup
{
pop systemdict /languagelevel get 2 ge
} if
put
islevel2 not
{
/currentcmykcolor
{
0 0 0 1 currentgray sub
} ndf
} if
/tc
{
gsave
setcmykcolor currentcmykcolor
grestore
} bind def
/testCMYKColorThrough
{
tc add add add 0 ne
} bind def
/fhiscomposite where not {
userdict /fhiscomposite
islevel2
{
gsave 1 1 1 1 setcmykcolor currentcmykcolor grestore
add add add 4 eq
}
{
1 0 0 0 testCMYKColorThrough
0 1 0 0 testCMYKColorThrough
0 0 1 0 testCMYKColorThrough
0 0 0 1 testCMYKColorThrough
and and and
} ifelse
put
}
{ pop }
ifelse
/bc4 [0 0 0 0] def
/_lfp4 {
1 pop
/yt xdf
/xt xdf
/ang xdf
storerect
/taperfcn xdf
/k2 xdf /y2 xdf /m2 xdf /c2 xdf
/k1 xdf /y1 xdf /m1 xdf /c1 xdf
c1 c2 sub abs
m1 m2 sub abs
y1 y2 sub abs
k1 k2 sub abs
maxcolor
calcgraysteps mul abs round
height abs adjnumsteps
dup 1 lt {pop 1} if
1 sub /numsteps1 xdf
currentflat mark
currentflat clipflatness
/delta top bottom sub numsteps1 1 add div def
/right right left sub def
/botsv top delta sub def
{
{
W
xt yt translate
ang rotate
xt neg yt neg translate
dup setflat
/bottom botsv def
0 1 numsteps1
{
numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse
taperfcn /frac xdf
bc4 0 c2 c1 sub frac mul c1 add put
bc4 1 m2 m1 sub frac mul m1 add put
bc4 2 y2 y1 sub frac mul y1 add put
bc4 3 k2 k1 sub frac mul k1 add put
bc4 vc
1 index setflat
{
mark {newpath left bottom right delta rectfill}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
/bottom bottom delta sub def
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/bcs [0 0] def
/_lfs4 {
/yt xdf
/xt xdf
/ang xdf
storerect
/taperfcn xdf
/tint2 xdf
/tint1 xdf
bcs exch 1 exch put
tint1 tint2 sub abs
bcs 1 get maxspot
calcgraysteps mul abs round
height abs adjnumsteps
dup 2 lt {pop 2} if
1 sub /numsteps1 xdf
currentflat mark
currentflat clipflatness
/delta top bottom sub numsteps1 1 add div def
/right right left sub def
/botsv top delta sub def
{
{
W
xt yt translate
ang rotate
xt neg yt neg translate
dup setflat
/bottom botsv def
0 1 numsteps1
{
numsteps1 div taperfcn /frac xdf
bcs 0
1.0 tint2 tint1 sub frac mul tint1 add sub
put bcs vc
1 index setflat
{
mark {newpath left bottom right delta rectfill}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
/bottom bottom delta sub def
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/_rfs6 {
/tint2 xdf
/tint1 xdf
bcs exch 1 exch put
/inrad xdf
/radius xdf
/yt xdf
/xt xdf
tint1 tint2 sub abs
bcs 1 get maxspot
calcgraysteps mul abs round
radius inrad sub abs
adjnumsteps
dup 1 lt {pop 1} if
1 sub /numsteps1 xdf
radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse
2 div /halfstep xdf
currentflat mark
currentflat clipflatness
{
{
dup setflat
W
0 1 numsteps1
{
dup /radindex xdf
numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse
/frac xdf
bcs 0
tint2 tint1 sub frac mul tint1 add
put bcs vc
1 index setflat
{
newpath mark
xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360
{ arc
radindex numsteps1 ne
inrad 0 gt or
{
xt yt
numsteps1 0 eq
{ inrad }
{
radindex 1 add numsteps1 div 1 exch sub
radius inrad sub mul halfstep add inrad add
}ifelse
dup xt add yt moveto
360 0 arcn
} if
fill
}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/_rfp6 {
1 pop
/k2 xdf /y2 xdf /m2 xdf /c2 xdf
/k1 xdf /y1 xdf /m1 xdf /c1 xdf
/inrad xdf
/radius xdf
/yt xdf
/xt xdf
c1 c2 sub abs
m1 m2 sub abs
y1 y2 sub abs
k1 k2 sub abs
maxcolor
calcgraysteps mul abs round
radius inrad sub abs
adjnumsteps
dup 1 lt {pop 1} if
1 sub /numsteps1 xdf
radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse
2 div /halfstep xdf
currentflat mark
currentflat clipflatness
{
{
dup setflat
W
0 1 numsteps1
{
dup /radindex xdf
numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse
/frac xdf
bc4 0 c2 c1 sub frac mul c1 add put
bc4 1 m2 m1 sub frac mul m1 add put
bc4 2 y2 y1 sub frac mul y1 add put
bc4 3 k2 k1 sub frac mul k1 add put
bc4 vc
1 index setflat
{
newpath mark
xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360
{ arc
radindex numsteps1 ne
inrad 0 gt or
{
xt yt
numsteps1 0 eq
{ inrad }
{
radindex 1 add numsteps1 div 1 exch sub
radius inrad sub mul halfstep add inrad add
}ifelse
dup xt add yt moveto
360 0 arcn
} if
fill
}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/lfp4{_lfp4}ndf
/lfs4{_lfs4}ndf
/rfs6{_rfs6}ndf
/rfp6{_rfp6}ndf
/cvc [0 0 0 1] def
/vc{
AltsysDict /cvc 2 index put
aload length dup 4 eq
{pop dup -1 eq{pop setrgbcolor}{setcmykcolor}ifelse}
{6 eq {sethexcolor} {setspotcolor} ifelse }
ifelse
}bdf
0 setseparationgray
/imgr {1692.47 1570.59 1723.65 1601.77 } def
/bleed 0 def
/clpr {1692.47 1570.59 1723.65 1601.77 } def
/xs 1 def
/ys 1 def
/botx 0 def
/overlap 0 def
/wdist 18 def
0 2 mul fhsetspreadsize
0 0 ne {/df 0 def /clipflatness 0 def} if
/maxsteps 256 def
/forcemaxsteps false def
/minsteps 0 def
userdict begin /AGDOrigMtx matrix currentmatrix def end
vms
-1694 -1572 translate
/currentpacking defed{false setpacking}if
/spots[
1 0 0 0 (Process Cyan) false newcmykcustomcolor
0 1 0 0 (Process Magenta) false newcmykcustomcolor
0 0 1 0 (Process Yellow) false newcmykcustomcolor
0 0 0 1 (Process Black) false newcmykcustomcolor
]def
n
[] 0 d
3.863708 M
1 w
0 j
0 J
false setoverprint
0 i
false eomode
[0 0 0 1]vc
vms
q
[1 0 0 1 -249.981674 -586.867554] concat
vms
1946.9506 2177.5114 m
1954.4907 2185.0516 L
1956.7047 2187.2656 1960.2943 2187.2656 1962.5083 2185.0516 C
1970.0485 2177.5114 L
1972.2625 2175.2974 1972.2625 2171.7078 1970.0485 2169.4938 C
1962.5083 2161.9537 L
1960.2943 2159.7396 1956.7047 2159.7396 1954.4907 2161.9537 C
1946.9506 2169.4938 L
1944.7365 2171.7078 1944.7365 2175.2974 1946.9506 2177.5114 C
s
n
true eomode
1958.5469 2181.0039 m
1959.2148 2181.0039 1959.7012 2180.9296 1960.0059 2180.7813 C
1960.3142 2180.6326 1960.4684 2180.363 1960.4688 2179.9727 C
1960.4688 2179.7383 1960.3398 2178.8026 1960.082 2177.166 C
1959.0742 2170.4219 L
1958.9373 2170.3241 1958.7615 2170.2754 1958.5469 2170.2754 C
1958.3319 2170.2754 1958.1561 2170.3241 1958.0195 2170.4219 C
1957.0117 2177.166 L
1956.7539 2178.8026 1956.625 2179.7379 1956.625 2179.9727 C
1956.625 2180.363 1956.7792 2180.6326 1957.0879 2180.7813 C
1957.4003 2180.9296 1957.8866 2181.0035 1958.5469 2181.0039 C
h
1958.5469 2165.166 m
1958.0389 2165.166 1957.5878 2165.3499 1957.1934 2165.7168 C
1956.7986 2166.0837 1956.6016 2166.5485 1956.6016 2167.1113 C
1956.6016 2167.6698 1956.7891 2168.1404 1957.1641 2168.5234 C
1957.5427 2168.9102 1958.0038 2169.1035 1958.5469 2169.1035 C
1959.1094 2169.1035 1959.5741 2168.9043 1959.9414 2168.5059 C
1960.3083 2168.1074 1960.4918 2167.6423 1960.4922 2167.1113 C
1960.4922 2166.748 1960.4102 2166.4177 1960.2461 2166.1211 C
1960.082 2165.8241 1959.8513 2165.5916 1959.5547 2165.4238 C
1959.2577 2165.2521 1958.9219 2165.1664 1958.5469 2165.166 C
true setoverprint
f
false setoverprint
n
vmr
Q
false eomode
vmr
vmr
end
%%Trailer
\ No newline at end of file diff --git a/docs/docbook/xslt/figures/important.pdf b/docs/docbook/xslt/figures/important.pdf Binary files differnew file mode 100644 index 0000000000..a0afabfa23 --- /dev/null +++ b/docs/docbook/xslt/figures/important.pdf diff --git a/docs/docbook/xslt/figures/note.eps b/docs/docbook/xslt/figures/note.eps new file mode 100644 index 0000000000..39be23fa77 --- /dev/null +++ b/docs/docbook/xslt/figures/note.eps @@ -0,0 +1,1387 @@ +%!PS-Adobe-2.0 EPSF-1.2 +%%Title: Untitled-1 +%%Creator: FreeHand 9.0 +%%CreationDate: 2002/07/16 10:41 PM +%%BoundingBox: 0 0 27 27 +%%FHPathName:Untitled:FreeHand 9:English:Untitled-1 +%ALDOriginalFile:Untitled:FreeHand 9:English:Untitled-1 +%ALDBoundingBox: -153 -436 442 406 +%%FHPageNum:1 +%%DocumentSuppliedResources: procset Altsys_header 4 0 +%%ColorUsage: Color +%%DocumentProcessColors: Black +%%EndComments +%%BeginResource: procset Altsys_header 4 0 +userdict begin /AltsysDict 300 dict def end +AltsysDict begin +/bdf{bind def}bind def +/xdf{exch def}bdf +/defed{where{pop true}{false}ifelse}bdf +/ndf{1 index where{pop pop pop}{dup xcheck{bind}if def}ifelse}bdf +/d{setdash}bdf +/h{closepath}bdf +/H{}bdf +/J{setlinecap}bdf +/j{setlinejoin}bdf +/M{setmiterlimit}bdf +/n{newpath}bdf +/N{newpath}bdf +/q{gsave}bdf +/Q{grestore}bdf +/w{setlinewidth}bdf +/Xic{matrix invertmatrix concat}bdf +/Xq{matrix currentmatrix mark}bdf +/XQ{cleartomark setmatrix}bdf +/sepdef{ +dup where not +{ +AltsysSepDict +} +if +3 1 roll exch put +}bdf +/st{settransfer}bdf +/colorimage defed /_rci xdf +/cntr 0 def +/readbinarystring{ +/cntr 0 def +2 copy readstring +{ +{ +dup +(\034) search +{ +length exch pop exch +dup length 0 ne +{ +dup dup 0 get 32 sub 0 exch put +/cntr cntr 1 add def +} +{ +pop 1 string dup +0 6 index read pop 32 sub put +}ifelse +3 copy +putinterval pop +1 add +1 index length 1 sub +1 index sub +dup 0 le {pop pop exit}if +getinterval +} +{ +pop exit +} ifelse +} loop +}if +cntr 0 gt +{ +pop 2 copy +dup length cntr sub cntr getinterval +readbinarystring +} if +pop exch pop +} bdf +/_NXLevel2 defed { +_NXLevel2 not { +/colorimage where { +userdict eq { +/_rci false def +} if +} if +} if +} if +/md defed{ +md type /dicttype eq { +/colorimage where { +md eq { +/_rci false def +}if +}if +/settransfer where { +md eq { +/st systemdict /settransfer get def +}if +}if +}if +}if +/setstrokeadjust defed +{ +true setstrokeadjust +/C{curveto}bdf +/L{lineto}bdf +/m{moveto}bdf +} +{ +/dr{transform .25 sub round .25 add +exch .25 sub round .25 add exch itransform}bdf +/C{dr curveto}bdf +/L{dr lineto}bdf +/m{dr moveto}bdf +/setstrokeadjust{pop}bdf +}ifelse +/privrectpath { +4 -2 roll m +dtransform round exch round exch idtransform +2 copy 0 lt exch 0 lt xor +{dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto} +{exch dup 0 rlineto exch 0 exch rlineto neg 0 rlineto} +ifelse +closepath +}bdf +/rectclip{newpath privrectpath clip newpath}def +/rectfill{gsave newpath privrectpath fill grestore}def +/rectstroke{gsave newpath privrectpath stroke grestore}def +/_fonthacksave false def +/currentpacking defed +{ +/_bfh {/_fonthacksave currentpacking def false setpacking} bdf +/_efh {_fonthacksave setpacking} bdf +} +{ +/_bfh {} bdf +/_efh {} bdf +}ifelse +/packedarray{array astore readonly}ndf +/` +{ +false setoverprint +/-save0- save def +5 index concat +pop +storerect left bottom width height rectclip +pop +/MMdict_count countdictstack def +/MMop_count count 1 sub def +userdict begin +/showpage {} def +0 setgray 0 setlinecap 1 setlinewidth +0 setlinejoin 10 setmiterlimit [] 0 setdash newpath +} bdf +/currentpacking defed{true setpacking}if +/min{2 copy gt{exch}if pop}bdf +/max{2 copy lt{exch}if pop}bdf +/xformfont { currentfont exch makefont setfont } bdf +/fhnumcolors 1 +statusdict begin +/processcolors defed +{ +pop processcolors +} +{ +/deviceinfo defed { +deviceinfo /Colors known { +pop deviceinfo /Colors get +} if +} if +} ifelse +end +def +/printerRes +gsave +matrix defaultmatrix setmatrix +72 72 dtransform +abs exch abs +max +grestore +def +/graycalcs +[ +{Angle Frequency} +{GrayAngle GrayFrequency} +{0 Width Height matrix defaultmatrix idtransform +dup mul exch dup mul add sqrt 72 exch div} +{0 GrayWidth GrayHeight matrix defaultmatrix idtransform +dup mul exch dup mul add sqrt 72 exch div} +] def +/calcgraysteps { +forcemaxsteps +{ +maxsteps +} +{ +/currenthalftone defed +{currenthalftone /dicttype eq}{false}ifelse +{ +currenthalftone begin +HalftoneType 4 le +{graycalcs HalftoneType 1 sub get exec} +{ +HalftoneType 5 eq +{ +Default begin +{graycalcs HalftoneType 1 sub get exec} +end +} +{0 60} +ifelse +} +ifelse +end +} +{ +currentscreen pop exch +} +ifelse +printerRes 300 max exch div exch +2 copy +sin mul round dup mul +3 1 roll +cos mul round dup mul +add 1 add +dup maxsteps gt {pop maxsteps} if +dup minsteps lt {pop minsteps} if +} +ifelse +} bdf +/nextrelease defed { +/languagelevel defed not { +/framebuffer defed { +0 40 string framebuffer 9 1 roll 8 {pop} repeat +dup 516 eq exch 520 eq or +{ +/fhnumcolors 3 def +/currentscreen {60 0 {pop pop 1}}bdf +/calcgraysteps {maxsteps} bdf +}if +}if +}if +}if +fhnumcolors 1 ne { +/calcgraysteps {maxsteps} bdf +} if +/currentpagedevice defed { +currentpagedevice /PreRenderingEnhance known +{ +currentpagedevice /PreRenderingEnhance get +{ +/calcgraysteps +{ +forcemaxsteps +{maxsteps} +{256 maxsteps min} +ifelse +} def +} if +} if +} if +/gradfrequency 144 def +printerRes 1000 lt { +/gradfrequency 72 def +} if +/adjnumsteps { +dup dtransform abs exch abs max +printerRes div +gradfrequency mul +round +5 max +min +}bdf +/goodsep { +spots exch get 4 get dup sepname eq exch (_vc_Registration) eq or +}bdf +/BeginGradation defed +{/bb{BeginGradation}bdf} +{/bb{}bdf} +ifelse +/EndGradation defed +{/eb{EndGradation}bdf} +{/eb{}bdf} +ifelse +/bottom -0 def +/delta -0 def +/frac -0 def +/height -0 def +/left -0 def +/numsteps1 -0 def +/radius -0 def +/right -0 def +/top -0 def +/width -0 def +/xt -0 def +/yt -0 def +/df currentflat def +/tempstr 1 string def +/clipflatness currentflat def +/inverted? +0 currenttransfer exec .5 ge def +/tc1 [0 0 0 1] def +/tc2 [0 0 0 1] def +/storerect{/top xdf /right xdf /bottom xdf /left xdf +/width right left sub def /height top bottom sub def}bdf +/concatprocs{ +systemdict /packedarray known +{dup type /packedarraytype eq 2 index type /packedarraytype eq or}{false}ifelse +{ +/proc2 exch cvlit def /proc1 exch cvlit def +proc1 aload pop proc2 aload pop +proc1 length proc2 length add packedarray cvx +} +{ +/proc2 exch cvlit def /proc1 exch cvlit def +/newproc proc1 length proc2 length add array def +newproc 0 proc1 putinterval newproc proc1 length proc2 putinterval +newproc cvx +}ifelse +}bdf +/i{dup 0 eq +{pop df dup} +{dup} ifelse +/clipflatness xdf setflat +}bdf +version cvr 38.0 le +{/setrgbcolor{ +currenttransfer exec 3 1 roll +currenttransfer exec 3 1 roll +currenttransfer exec 3 1 roll +setrgbcolor}bdf}if +/vms {/vmsv save def} bdf +/vmr {vmsv restore} bdf +/vmrs{vmsv restore /vmsv save def}bdf +/eomode{ +{/filler /eofill load def /clipper /eoclip load def} +{/filler /fill load def /clipper /clip load def} +ifelse +}bdf +/normtaper{}bdf +/logtaper{9 mul 1 add log}bdf +/CD{ +/NF exch def +{ +exch dup +/FID ne 1 index/UniqueID ne and +{exch NF 3 1 roll put} +{pop pop} +ifelse +}forall +NF +}bdf +/MN{ +1 index length +/Len exch def +dup length Len add +string dup +Len +4 -1 roll +putinterval +dup +0 +4 -1 roll +putinterval +}bdf +/RC{4 -1 roll /ourvec xdf 256 string cvs(|______)anchorsearch +{1 index MN cvn/NewN exch def cvn +findfont dup maxlength dict CD dup/FontName NewN put dup +/Encoding ourvec put NewN exch definefont pop}{pop}ifelse}bdf +/RF{ +dup +FontDirectory exch +known +{pop 3 -1 roll pop} +{RC} +ifelse +}bdf +/FF{dup 256 string cvs(|______)exch MN cvn dup FontDirectory exch known +{exch pop findfont 3 -1 roll pop} +{pop dup findfont dup maxlength dict CD dup dup +/Encoding exch /Encoding get 256 array copy 7 -1 roll +{3 -1 roll dup 4 -2 roll put}forall put definefont} +ifelse}bdf +/RCJ{4 -1 roll +/ourvec xdf +256 string cvs +(|______) anchorsearch +{pop +cvn +dup FDFJ +exch +1 index +eq +{ +_bfh findfont _efh +dup +maxlength dict +CD +dup +/FontName +3 index +put +dup +/Encoding ourvec put +1 index +exch +definefont +pop +} +{exch pop} +ifelse +} +{pop} +ifelse +}bdf +/RFJ{ +dup +FontDirectory exch +known +{pop 3 -1 roll pop} +{RCJ} +ifelse +}bdf +/hasfont +{ +/resourcestatus where +{ +pop +/Font resourcestatus +{ +pop pop true +} +{ +false +} +ifelse +} +{ +dup FontDirectory exch known +{pop true} +{ +256 string +cvs +(fonts/) exch MN +status +{pop pop pop pop true} +{false} +ifelse +} +ifelse +} +ifelse +}bdf +/FDFJ +{ +dup +hasfont +not +{ +pop +/Ryumin-Light-83pv-RKSJ-H +hasfont +{ +/Ryumin-Light-83pv-RKSJ-H +} +{ +/Courier +} +ifelse +} +if +}bdf +/FFJ{ +_bfh +dup +256 string cvs +(|______)exch MN +cvn +dup +FontDirectory +exch known +{ +exch +pop +findfont +3 -1 roll +pop +} +{ +pop +FDFJ +dup findfont +dup maxlength dict +CD +dup dup +/Encoding exch +/Encoding get +256 array copy +7 -1 roll +{ +3 -1 roll +dup +4 -2 roll +put +}forall +put +definefont +} +ifelse +_efh +}bdf +/GS { +dup +hasfont +{ +findfont +exch makesetfont +exch +pop +ts +} +{ +pop pop pop +ts +} ifelse +} bdf +/RCK{4 -1 roll +/ourvec xdf +256 string cvs +(|______) anchorsearch +{pop +cvn +dup FDFK +exch +1 index +eq +{ +_bfh findfont _efh +dup +maxlength dict +CD +dup +/FontName +3 index +put +dup +/Encoding ourvec put +1 index +exch +definefont +pop +} +{exch pop} +ifelse +} +{pop} +ifelse +}bdf +/RFK{ +dup +FontDirectory exch +known +{pop 3 -1 roll pop} +{RCK} +ifelse +}bdf +/hasfont +{ +/resourcestatus where +{ +pop +/Font resourcestatus +{ +pop pop true +} +{ +false +} +ifelse +} +{ +dup FontDirectory exch known +{pop true} +{ +256 string +cvs +(fonts/) exch MN +status +{pop pop pop pop true} +{false} +ifelse +} +ifelse +} +ifelse +}bdf +/FDFK +{ +dup +hasfont +not +{ +pop +/JCsm +hasfont +{ +/JCsm +} +{ +/Courier +} +ifelse +} +if +}bdf +/FFK{ +_bfh +dup +256 string cvs +(|______)exch MN +cvn +dup +FontDirectory +exch known +{ +exch +pop +findfont +3 -1 roll +pop +} +{ +pop +FDFK +dup findfont +dup maxlength dict +CD +dup dup +/Encoding exch +/Encoding get +256 array copy +7 -1 roll +{ +3 -1 roll +dup +4 -2 roll +put +}forall +put +definefont +} +ifelse +_efh +}bdf +/RCTC{4 -1 roll +/ourvec xdf +256 string cvs +(|______) anchorsearch +{pop +cvn +dup FDFTC +exch +1 index +eq +{ +_bfh findfont _efh +dup +maxlength dict +CD +dup +/FontName +3 index +put +dup +/Encoding ourvec put +1 index +exch +definefont +pop +} +{exch pop} +ifelse +} +{pop} +ifelse +}bdf +/RFTC{ +dup +FontDirectory exch +known +{pop 3 -1 roll pop} +{RCTC} +ifelse +}bdf +/FDFTC +{ +dup +hasfont +not +{ +pop +/DFMing-Lt-HK-BF +hasfont +{ +/DFMing-Lt-HK-BF +} +{ +/Courier +} +ifelse +} +if +}bdf +/FFTC{ +_bfh +dup +256 string cvs +(|______)exch MN +cvn +dup +FontDirectory +exch known +{ +exch +pop +findfont +3 -1 roll +pop +} +{ +pop +FDFTC +dup findfont +dup maxlength dict +CD +dup dup +/Encoding exch +/Encoding get +256 array copy +7 -1 roll +{ +3 -1 roll +dup +4 -2 roll +put +}forall +put +definefont +} +ifelse +_efh +}bdf +/fps{ +currentflat +exch +dup 0 le{pop 1}if +{ +dup setflat 3 index stopped +{1.3 mul dup 3 index gt{pop setflat pop pop stop}if} +{exit} +ifelse +}loop +pop setflat pop pop +}bdf +/fp{100 currentflat fps}bdf +/clipper{clip}bdf +/W{/clipper load 100 clipflatness dup setflat fps}bdf + +userdict begin /BDFontDict 29 dict def end +BDFontDict begin +/bu{}def +/bn{}def +/setTxMode{av 70 ge{pop}if pop}def +/gm{m}def +/show{pop}def +/gr{pop}def +/fnt{pop pop pop}def +/fs{pop}def +/fz{pop}def +/lin{pop pop}def +/:M {pop pop} def +/sf {pop} def +/S {pop} def +/@b {pop pop pop pop pop pop pop pop} def +/_bdsave /save load def +/_bdrestore /restore load def +/save { dup /fontsave eq {null} {_bdsave} ifelse } def +/restore { dup null eq { pop } { _bdrestore } ifelse } def +/fontsave null def +end +/MacVec 256 array def +MacVec 0 /Helvetica findfont +/Encoding get 0 128 getinterval putinterval +MacVec 127 /DEL put MacVec 16#27 /quotesingle put MacVec 16#60 /grave put +/NUL/SOH/STX/ETX/EOT/ENQ/ACK/BEL/BS/HT/LF/VT/FF/CR/SO/SI +/DLE/DC1/DC2/DC3/DC4/NAK/SYN/ETB/CAN/EM/SUB/ESC/FS/GS/RS/US +MacVec 0 32 getinterval astore pop +/Adieresis/Aring/Ccedilla/Eacute/Ntilde/Odieresis/Udieresis/aacute +/agrave/acircumflex/adieresis/atilde/aring/ccedilla/eacute/egrave +/ecircumflex/edieresis/iacute/igrave/icircumflex/idieresis/ntilde/oacute +/ograve/ocircumflex/odieresis/otilde/uacute/ugrave/ucircumflex/udieresis +/dagger/degree/cent/sterling/section/bullet/paragraph/germandbls +/registered/copyright/trademark/acute/dieresis/notequal/AE/Oslash +/infinity/plusminus/lessequal/greaterequal/yen/mu/partialdiff/summation +/product/pi/integral/ordfeminine/ordmasculine/Omega/ae/oslash +/questiondown/exclamdown/logicalnot/radical/florin/approxequal/Delta/guillemotleft +/guillemotright/ellipsis/nbspace/Agrave/Atilde/Otilde/OE/oe +/endash/emdash/quotedblleft/quotedblright/quoteleft/quoteright/divide/lozenge +/ydieresis/Ydieresis/fraction/currency/guilsinglleft/guilsinglright/fi/fl +/daggerdbl/periodcentered/quotesinglbase/quotedblbase +/perthousand/Acircumflex/Ecircumflex/Aacute +/Edieresis/Egrave/Iacute/Icircumflex/Idieresis/Igrave/Oacute/Ocircumflex +/apple/Ograve/Uacute/Ucircumflex/Ugrave/dotlessi/circumflex/tilde +/macron/breve/dotaccent/ring/cedilla/hungarumlaut/ogonek/caron +MacVec 128 128 getinterval astore pop +/findheaderfont { +/Helvetica findfont +} def +end %. AltsysDict +%%EndResource +%%EndProlog + +%%BeginSetup + +AltsysDict begin +_bfh + +_efh +end %. AltsysDict + +%%EndSetup +AltsysDict begin + +/onlyk4{false}ndf +/ccmyk{dup 5 -1 roll sub 0 max exch}ndf +/cmyk2gray{ +4 -1 roll 0.3 mul 4 -1 roll 0.59 mul 4 -1 roll 0.11 mul +add add add 1 min neg 1 add +}bdf +/setcmykcolor{1 exch sub ccmyk ccmyk ccmyk pop setrgbcolor}ndf +/maxcolor { +max max max +} ndf +/maxspot { +pop +} ndf +/setcmykcoloroverprint{4{dup -1 eq{pop 0}if 4 1 roll}repeat setcmykcolor}ndf +/findcmykcustomcolor{5 packedarray}ndf +/setcustomcolor{exch aload pop pop 4{4 index mul 4 1 roll}repeat setcmykcolor pop}ndf +/setseparationgray{setgray}ndf +/setoverprint{pop}ndf +/currentoverprint false ndf +/cmykbufs2gray{ +0 1 2 index length 1 sub +{ +4 index 1 index get 0.3 mul +4 index 2 index get 0.59 mul +4 index 3 index get 0.11 mul +4 index 4 index get +add add add cvi 255 min +255 exch sub +2 index 3 1 roll put +}for +4 1 roll pop pop pop +}bdf +/colorimage{ +pop pop +[ +5 -1 roll/exec cvx +6 -1 roll/exec cvx +7 -1 roll/exec cvx +8 -1 roll/exec cvx +/cmykbufs2gray cvx +]cvx +image +} +%. version 47.1 on Linotronic of Postscript defines colorimage incorrectly (rgb model only) +version cvr 47.1 le +statusdict /product get (Lino) anchorsearch{pop pop true}{pop false}ifelse +and{userdict begin bdf end}{ndf}ifelse +fhnumcolors 1 ne {/yt save def} if +/customcolorimage{ +aload pop +(_vc_Registration) eq +{ +pop pop pop pop separationimage +} +{ +/ik xdf /iy xdf /im xdf /ic xdf +ic im iy ik cmyk2gray /xt xdf +currenttransfer +{dup 1.0 exch sub xt mul add}concatprocs +st +image +} +ifelse +}ndf +fhnumcolors 1 ne {yt restore} if +fhnumcolors 3 ne {/yt save def} if +/customcolorimage{ +aload pop +(_vc_Registration) eq +{ +pop pop pop pop separationimage +} +{ +/ik xdf /iy xdf /im xdf /ic xdf +1.0 dup ic ik add min sub +1.0 dup im ik add min sub +1.0 dup iy ik add min sub +/ic xdf /iy xdf /im xdf +currentcolortransfer +4 1 roll +{dup 1.0 exch sub ic mul add}concatprocs 4 1 roll +{dup 1.0 exch sub iy mul add}concatprocs 4 1 roll +{dup 1.0 exch sub im mul add}concatprocs 4 1 roll +setcolortransfer +{/dummy xdf dummy}concatprocs{dummy}{dummy}true 3 colorimage +} +ifelse +}ndf +fhnumcolors 3 ne {yt restore} if +fhnumcolors 4 ne {/yt save def} if +/customcolorimage{ +aload pop +(_vc_Registration) eq +{ +pop pop pop pop separationimage +} +{ +/ik xdf /iy xdf /im xdf /ic xdf +currentcolortransfer +{1.0 exch sub ik mul ik sub 1 add}concatprocs 4 1 roll +{1.0 exch sub iy mul iy sub 1 add}concatprocs 4 1 roll +{1.0 exch sub im mul im sub 1 add}concatprocs 4 1 roll +{1.0 exch sub ic mul ic sub 1 add}concatprocs 4 1 roll +setcolortransfer +{/dummy xdf dummy}concatprocs{dummy}{dummy}{dummy} +true 4 colorimage +} +ifelse +}ndf +fhnumcolors 4 ne {yt restore} if +/separationimage{image}ndf +/spotascmyk false ndf +/newcmykcustomcolor{6 packedarray}ndf +/inkoverprint false ndf +/setinkoverprint{pop}ndf +/setspotcolor { +spots exch get +dup 4 get (_vc_Registration) eq +{pop 1 exch sub setseparationgray} +{0 5 getinterval exch setcustomcolor} +ifelse +}ndf +/currentcolortransfer{currenttransfer dup dup dup}ndf +/setcolortransfer{st pop pop pop}ndf +/fas{}ndf +/sas{}ndf +/fhsetspreadsize{pop}ndf +/filler{fill}bdf +/F{gsave {filler}fp grestore}bdf +/f{closepath F}bdf +/S{gsave {stroke}fp grestore}bdf +/s{closepath S}bdf +userdict /islevel2 +systemdict /languagelevel known dup +{ +pop systemdict /languagelevel get 2 ge +} if +put +islevel2 not +{ +/currentcmykcolor +{ +0 0 0 1 currentgray sub +} ndf +} if +/tc +{ +gsave +setcmykcolor currentcmykcolor +grestore +} bind def +/testCMYKColorThrough +{ +tc add add add 0 ne +} bind def +/fhiscomposite where not { +userdict /fhiscomposite +islevel2 +{ +gsave 1 1 1 1 setcmykcolor currentcmykcolor grestore +add add add 4 eq +} +{ +1 0 0 0 testCMYKColorThrough +0 1 0 0 testCMYKColorThrough +0 0 1 0 testCMYKColorThrough +0 0 0 1 testCMYKColorThrough +and and and +} ifelse +put +} +{ pop } +ifelse +/bc4 [0 0 0 0] def +/_lfp4 { +1 pop +/yt xdf +/xt xdf +/ang xdf +storerect +/taperfcn xdf +/k2 xdf /y2 xdf /m2 xdf /c2 xdf +/k1 xdf /y1 xdf /m1 xdf /c1 xdf +c1 c2 sub abs +m1 m2 sub abs +y1 y2 sub abs +k1 k2 sub abs +maxcolor +calcgraysteps mul abs round +height abs adjnumsteps +dup 1 lt {pop 1} if +1 sub /numsteps1 xdf +currentflat mark +currentflat clipflatness +/delta top bottom sub numsteps1 1 add div def +/right right left sub def +/botsv top delta sub def +{ +{ +W +xt yt translate +ang rotate +xt neg yt neg translate +dup setflat +/bottom botsv def +0 1 numsteps1 +{ +numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse +taperfcn /frac xdf +bc4 0 c2 c1 sub frac mul c1 add put +bc4 1 m2 m1 sub frac mul m1 add put +bc4 2 y2 y1 sub frac mul y1 add put +bc4 3 k2 k1 sub frac mul k1 add put +bc4 vc +1 index setflat +{ +mark {newpath left bottom right delta rectfill}stopped +{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if} +{cleartomark exit}ifelse +}loop +/bottom bottom delta sub def +}for +} +gsave stopped grestore +{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if} +{exit}ifelse +}loop +cleartomark setflat +}bdf +/bcs [0 0] def +/_lfs4 { +/yt xdf +/xt xdf +/ang xdf +storerect +/taperfcn xdf +/tint2 xdf +/tint1 xdf +bcs exch 1 exch put +tint1 tint2 sub abs +bcs 1 get maxspot +calcgraysteps mul abs round +height abs adjnumsteps +dup 2 lt {pop 2} if +1 sub /numsteps1 xdf +currentflat mark +currentflat clipflatness +/delta top bottom sub numsteps1 1 add div def +/right right left sub def +/botsv top delta sub def +{ +{ +W +xt yt translate +ang rotate +xt neg yt neg translate +dup setflat +/bottom botsv def +0 1 numsteps1 +{ +numsteps1 div taperfcn /frac xdf +bcs 0 +1.0 tint2 tint1 sub frac mul tint1 add sub +put bcs vc +1 index setflat +{ +mark {newpath left bottom right delta rectfill}stopped +{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if} +{cleartomark exit}ifelse +}loop +/bottom bottom delta sub def +}for +} +gsave stopped grestore +{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if} +{exit}ifelse +}loop +cleartomark setflat +}bdf +/_rfs6 { +/tint2 xdf +/tint1 xdf +bcs exch 1 exch put +/inrad xdf +/radius xdf +/yt xdf +/xt xdf +tint1 tint2 sub abs +bcs 1 get maxspot +calcgraysteps mul abs round +radius inrad sub abs +adjnumsteps +dup 1 lt {pop 1} if +1 sub /numsteps1 xdf +radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse +2 div /halfstep xdf +currentflat mark +currentflat clipflatness +{ +{ +dup setflat +W +0 1 numsteps1 +{ +dup /radindex xdf +numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse +/frac xdf +bcs 0 +tint2 tint1 sub frac mul tint1 add +put bcs vc +1 index setflat +{ +newpath mark +xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360 +{ arc +radindex numsteps1 ne +inrad 0 gt or +{ +xt yt +numsteps1 0 eq +{ inrad } +{ +radindex 1 add numsteps1 div 1 exch sub +radius inrad sub mul halfstep add inrad add +}ifelse +dup xt add yt moveto +360 0 arcn +} if +fill +}stopped +{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if} +{cleartomark exit}ifelse +}loop +}for +} +gsave stopped grestore +{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if} +{exit}ifelse +}loop +cleartomark setflat +}bdf +/_rfp6 { +1 pop +/k2 xdf /y2 xdf /m2 xdf /c2 xdf +/k1 xdf /y1 xdf /m1 xdf /c1 xdf +/inrad xdf +/radius xdf +/yt xdf +/xt xdf +c1 c2 sub abs +m1 m2 sub abs +y1 y2 sub abs +k1 k2 sub abs +maxcolor +calcgraysteps mul abs round +radius inrad sub abs +adjnumsteps +dup 1 lt {pop 1} if +1 sub /numsteps1 xdf +radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse +2 div /halfstep xdf +currentflat mark +currentflat clipflatness +{ +{ +dup setflat +W +0 1 numsteps1 +{ +dup /radindex xdf +numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse +/frac xdf +bc4 0 c2 c1 sub frac mul c1 add put +bc4 1 m2 m1 sub frac mul m1 add put +bc4 2 y2 y1 sub frac mul y1 add put +bc4 3 k2 k1 sub frac mul k1 add put +bc4 vc +1 index setflat +{ +newpath mark +xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360 +{ arc +radindex numsteps1 ne +inrad 0 gt or +{ +xt yt +numsteps1 0 eq +{ inrad } +{ +radindex 1 add numsteps1 div 1 exch sub +radius inrad sub mul halfstep add inrad add +}ifelse +dup xt add yt moveto +360 0 arcn +} if +fill +}stopped +{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if} +{cleartomark exit}ifelse +}loop +}for +} +gsave stopped grestore +{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if} +{exit}ifelse +}loop +cleartomark setflat +}bdf +/lfp4{_lfp4}ndf +/lfs4{_lfs4}ndf +/rfs6{_rfs6}ndf +/rfp6{_rfp6}ndf +/cvc [0 0 0 1] def +/vc{ +AltsysDict /cvc 2 index put +aload length dup 4 eq +{pop dup -1 eq{pop setrgbcolor}{setcmykcolor}ifelse} +{6 eq {sethexcolor} {setspotcolor} ifelse } +ifelse +}bdf +0 setseparationgray +/imgr {1692.47 1570.59 2287.75 2412.48 } def +/bleed 0 def +/clpr {1692.47 1570.59 2287.75 2412.48 } def +/xs 1 def +/ys 1 def +/botx 0 def +/overlap 0 def +/wdist 18 def +0 2 mul fhsetspreadsize +0 0 ne {/df 0 def /clipflatness 0 def} if +/maxsteps 256 def +/forcemaxsteps false def +/minsteps 0 def + +userdict begin /AGDOrigMtx matrix currentmatrix def end +vms +0.15 0.15 scale %JND +-1845 -2006 translate + +/currentpacking defed{false setpacking}if +/spots[ + +1 0 0 0 (Process Cyan) false newcmykcustomcolor + +0 1 0 0 (Process Magenta) false newcmykcustomcolor + +0 0 1 0 (Process Yellow) false newcmykcustomcolor + +0 0 0 1 (Process Black) false newcmykcustomcolor +]def +n +[] 0 d +3.863708 M +1 w +0 j +0 J +false setoverprint +0 i +false eomode +[0 0 0 1]vc +vms +1848.4365 2094.0422 m +1848.4365 2140.987 1886.4917 2179.0422 1933.4365 2179.0422 C +1980.3813 2179.0422 2018.4365 2140.987 2018.4365 2094.0422 C +2018.4365 2047.0974 1980.3813 2009.0422 1933.4365 2009.0422 C +1886.4917 2009.0422 1848.4365 2047.0974 1848.4365 2094.0422 C +5.3858 w +3.863693 M +s +n +true eomode +1880.5612 2118.7403 m +1880.5612 2121.7396 1881.6862 2124.8795 1883.9362 2128.1622 C +1886.1862 2131.4889 1888.4581 2133.1522 1890.7565 2133.1544 C +1892.2089 2133.1544 1893.4042 2132.5677 1894.3424 2131.3966 C +1895.3268 2130.2233 1895.819 2128.7467 1895.819 2126.9669 C +1895.819 2124.0599 1894.6237 2121.0826 1892.233 2118.0372 C +1889.8885 2114.9896 1887.6144 2113.4669 1885.4127 2113.4669 C +1884.0526 2113.4669 1882.9034 2113.9591 1881.9674 2114.9435 C +1881.0292 2115.974 1880.5612 2117.2396 1880.5612 2118.7403 C +h +1948.2018 2061.1544 m +1978.4362 2061.0138 L +1980.451 2062.6068 1981.9034 2064.3163 1982.7955 2066.1466 C +1983.7316 2068.0209 1984.1996 2070.2005 1984.2018 2072.6857 C +1984.2018 2073.2482 L +1969.2252 2099.6153 L +1969.2252 2099.3341 1969.2472 2098.8639 1969.2955 2098.2091 C +1969.3417 2097.5983 1969.3636 2097.1544 1969.3658 2096.8732 C +1969.3658 2089.888 1967.5597 2083.3732 1963.9518 2077.3263 C +1960.3878 2071.2794 1955.1385 2065.8873 1948.2018 2061.1544 C +h +1905.8737 2139.4825 m +1910.0924 2124.2247 L +1964.233 2092.5841 L +1964.6066 2094.3177 1964.8636 2095.724 1965.0065 2096.8028 C +1965.1471 2097.9278 1965.2174 2098.9122 1965.2174 2099.756 C +1965.2174 2100.4108 1965.1691 2101.5599 1965.0768 2103.2013 C +1964.9823 2103.5748 1964.9362 2103.8561 1964.9362 2104.045 C +1905.8737 2139.4825 L +h +1908.4752 2120.3575 m +1898.983 2105.5216 L +1954.3893 2072.8263 L +1956.4987 2074.7005 1958.2565 2076.8561 1959.6627 2079.295 C +1961.1151 2081.7779 1962.2863 2084.6608 1963.1783 2087.9435 C +1908.4752 2120.3575 L +h +1896.2408 2102.3575 m +1880.5612 2099.0528 L +1942.9283 2062.631 L +1944.5675 2063.5209 1946.0682 2064.5272 1947.4283 2065.6544 C +1948.7863 2066.7794 1950.0057 2068.0209 1951.0846 2069.381 C +1896.2408 2102.3575 L +h +1871.2096 2120.7794 m +1876.3424 2102.3575 L +1894.2018 2105.9435 L +1906.1549 2125.2794 L +1900.8815 2142.506 L +1882.7408 2139.2013 L +1871.2096 2120.7794 L +h +1866.7096 2121.4825 m +1880.1393 2142.3653 L +1901.3033 2146.5841 L +1963.6705 2109.3888 L +1968.0299 2106.8092 1971.005 2103.9747 1972.6002 2100.881 C +1972.8815 2100.2701 1973.1144 2099.8021 1973.3033 2099.4747 C +1991.444 2068.256 L +1991.6769 2067.8341 1992.0043 2067.2474 1992.4283 2066.4982 C +1994.0675 2064.013 1994.8871 2062.0904 1994.8893 2060.7325 C +1994.8893 2059.4186 1994.3971 2058.4825 1993.4127 2057.92 C +1992.4745 2057.4037 1990.6705 2057.1466 1987.9987 2057.1466 C +1948.0612 2057.1466 L +1946.4198 2057.1466 1944.7784 2057.4037 1943.1393 2057.92 C +1941.4979 2058.4825 1939.4127 2059.513 1936.8815 2061.0138 C +1873.6705 2098.631 L +1866.7096 2121.4825 L +true setoverprint +f +false setoverprint +n +vmr +vmr +end +%%Trailer diff --git a/docs/docbook/xslt/figures/note.pdf b/docs/docbook/xslt/figures/note.pdf Binary files differnew file mode 100644 index 0000000000..ec6c248a2a --- /dev/null +++ b/docs/docbook/xslt/figures/note.pdf diff --git a/docs/docbook/xslt/figures/tip.eps b/docs/docbook/xslt/figures/tip.eps new file mode 100644 index 0000000000..a28ad883eb --- /dev/null +++ b/docs/docbook/xslt/figures/tip.eps @@ -0,0 +1,1503 @@ +%!PS-Adobe-2.0 EPSF-1.2 +%%Title: Untitled-1 +%%Creator: FreeHand 9.0 +%%CreationDate: 2002/07/16 10:41 PM +%%BoundingBox: 0 0 27 27 +%%FHPathName:Untitled:FreeHand 9:English:Untitled-1 +%ALDOriginalFile:Untitled:FreeHand 9:English:Untitled-1 +%ALDBoundingBox: -153 -436 442 406 +%%FHPageNum:1 +%%DocumentSuppliedResources: procset Altsys_header 4 0 +%%ColorUsage: Color +%%DocumentProcessColors: Black +%%EndComments +%%BeginResource: procset Altsys_header 4 0 +userdict begin /AltsysDict 300 dict def end +AltsysDict begin +/bdf{bind def}bind def +/xdf{exch def}bdf +/defed{where{pop true}{false}ifelse}bdf +/ndf{1 index where{pop pop pop}{dup xcheck{bind}if def}ifelse}bdf +/d{setdash}bdf +/h{closepath}bdf +/H{}bdf +/J{setlinecap}bdf +/j{setlinejoin}bdf +/M{setmiterlimit}bdf +/n{newpath}bdf +/N{newpath}bdf +/q{gsave}bdf +/Q{grestore}bdf +/w{setlinewidth}bdf +/Xic{matrix invertmatrix concat}bdf +/Xq{matrix currentmatrix mark}bdf +/XQ{cleartomark setmatrix}bdf +/sepdef{ +dup where not +{ +AltsysSepDict +} +if +3 1 roll exch put +}bdf +/st{settransfer}bdf +/colorimage defed /_rci xdf +/cntr 0 def +/readbinarystring{ +/cntr 0 def +2 copy readstring +{ +{ +dup +(\034) search +{ +length exch pop exch +dup length 0 ne +{ +dup dup 0 get 32 sub 0 exch put +/cntr cntr 1 add def +} +{ +pop 1 string dup +0 6 index read pop 32 sub put +}ifelse +3 copy +putinterval pop +1 add +1 index length 1 sub +1 index sub +dup 0 le {pop pop exit}if +getinterval +} +{ +pop exit +} ifelse +} loop +}if +cntr 0 gt +{ +pop 2 copy +dup length cntr sub cntr getinterval +readbinarystring +} if +pop exch pop +} bdf +/_NXLevel2 defed { +_NXLevel2 not { +/colorimage where { +userdict eq { +/_rci false def +} if +} if +} if +} if +/md defed{ +md type /dicttype eq { +/colorimage where { +md eq { +/_rci false def +}if +}if +/settransfer where { +md eq { +/st systemdict /settransfer get def +}if +}if +}if +}if +/setstrokeadjust defed +{ +true setstrokeadjust +/C{curveto}bdf +/L{lineto}bdf +/m{moveto}bdf +} +{ +/dr{transform .25 sub round .25 add +exch .25 sub round .25 add exch itransform}bdf +/C{dr curveto}bdf +/L{dr lineto}bdf +/m{dr moveto}bdf +/setstrokeadjust{pop}bdf +}ifelse +/privrectpath { +4 -2 roll m +dtransform round exch round exch idtransform +2 copy 0 lt exch 0 lt xor +{dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto} +{exch dup 0 rlineto exch 0 exch rlineto neg 0 rlineto} +ifelse +closepath +}bdf +/rectclip{newpath privrectpath clip newpath}def +/rectfill{gsave newpath privrectpath fill grestore}def +/rectstroke{gsave newpath privrectpath stroke grestore}def +/_fonthacksave false def +/currentpacking defed +{ +/_bfh {/_fonthacksave currentpacking def false setpacking} bdf +/_efh {_fonthacksave setpacking} bdf +} +{ +/_bfh {} bdf +/_efh {} bdf +}ifelse +/packedarray{array astore readonly}ndf +/` +{ +false setoverprint +/-save0- save def +5 index concat +pop +storerect left bottom width height rectclip +pop +/MMdict_count countdictstack def +/MMop_count count 1 sub def +userdict begin +/showpage {} def +0 setgray 0 setlinecap 1 setlinewidth +0 setlinejoin 10 setmiterlimit [] 0 setdash newpath +} bdf +/currentpacking defed{true setpacking}if +/min{2 copy gt{exch}if pop}bdf +/max{2 copy lt{exch}if pop}bdf +/xformfont { currentfont exch makefont setfont } bdf +/fhnumcolors 1 +statusdict begin +/processcolors defed +{ +pop processcolors +} +{ +/deviceinfo defed { +deviceinfo /Colors known { +pop deviceinfo /Colors get +} if +} if +} ifelse +end +def +/printerRes +gsave +matrix defaultmatrix setmatrix +72 72 dtransform +abs exch abs +max +grestore +def +/graycalcs +[ +{Angle Frequency} +{GrayAngle GrayFrequency} +{0 Width Height matrix defaultmatrix idtransform +dup mul exch dup mul add sqrt 72 exch div} +{0 GrayWidth GrayHeight matrix defaultmatrix idtransform +dup mul exch dup mul add sqrt 72 exch div} +] def +/calcgraysteps { +forcemaxsteps +{ +maxsteps +} +{ +/currenthalftone defed +{currenthalftone /dicttype eq}{false}ifelse +{ +currenthalftone begin +HalftoneType 4 le +{graycalcs HalftoneType 1 sub get exec} +{ +HalftoneType 5 eq +{ +Default begin +{graycalcs HalftoneType 1 sub get exec} +end +} +{0 60} +ifelse +} +ifelse +end +} +{ +currentscreen pop exch +} +ifelse +printerRes 300 max exch div exch +2 copy +sin mul round dup mul +3 1 roll +cos mul round dup mul +add 1 add +dup maxsteps gt {pop maxsteps} if +dup minsteps lt {pop minsteps} if +} +ifelse +} bdf +/nextrelease defed { +/languagelevel defed not { +/framebuffer defed { +0 40 string framebuffer 9 1 roll 8 {pop} repeat +dup 516 eq exch 520 eq or +{ +/fhnumcolors 3 def +/currentscreen {60 0 {pop pop 1}}bdf +/calcgraysteps {maxsteps} bdf +}if +}if +}if +}if +fhnumcolors 1 ne { +/calcgraysteps {maxsteps} bdf +} if +/currentpagedevice defed { +currentpagedevice /PreRenderingEnhance known +{ +currentpagedevice /PreRenderingEnhance get +{ +/calcgraysteps +{ +forcemaxsteps +{maxsteps} +{256 maxsteps min} +ifelse +} def +} if +} if +} if +/gradfrequency 144 def +printerRes 1000 lt { +/gradfrequency 72 def +} if +/adjnumsteps { +dup dtransform abs exch abs max +printerRes div +gradfrequency mul +round +5 max +min +}bdf +/goodsep { +spots exch get 4 get dup sepname eq exch (_vc_Registration) eq or +}bdf +/BeginGradation defed +{/bb{BeginGradation}bdf} +{/bb{}bdf} +ifelse +/EndGradation defed +{/eb{EndGradation}bdf} +{/eb{}bdf} +ifelse +/bottom -0 def +/delta -0 def +/frac -0 def +/height -0 def +/left -0 def +/numsteps1 -0 def +/radius -0 def +/right -0 def +/top -0 def +/width -0 def +/xt -0 def +/yt -0 def +/df currentflat def +/tempstr 1 string def +/clipflatness currentflat def +/inverted? +0 currenttransfer exec .5 ge def +/tc1 [0 0 0 1] def +/tc2 [0 0 0 1] def +/storerect{/top xdf /right xdf /bottom xdf /left xdf +/width right left sub def /height top bottom sub def}bdf +/concatprocs{ +systemdict /packedarray known +{dup type /packedarraytype eq 2 index type /packedarraytype eq or}{false}ifelse +{ +/proc2 exch cvlit def /proc1 exch cvlit def +proc1 aload pop proc2 aload pop +proc1 length proc2 length add packedarray cvx +} +{ +/proc2 exch cvlit def /proc1 exch cvlit def +/newproc proc1 length proc2 length add array def +newproc 0 proc1 putinterval newproc proc1 length proc2 putinterval +newproc cvx +}ifelse +}bdf +/i{dup 0 eq +{pop df dup} +{dup} ifelse +/clipflatness xdf setflat +}bdf +version cvr 38.0 le +{/setrgbcolor{ +currenttransfer exec 3 1 roll +currenttransfer exec 3 1 roll +currenttransfer exec 3 1 roll +setrgbcolor}bdf}if +/vms {/vmsv save def} bdf +/vmr {vmsv restore} bdf +/vmrs{vmsv restore /vmsv save def}bdf +/eomode{ +{/filler /eofill load def /clipper /eoclip load def} +{/filler /fill load def /clipper /clip load def} +ifelse +}bdf +/normtaper{}bdf +/logtaper{9 mul 1 add log}bdf +/CD{ +/NF exch def +{ +exch dup +/FID ne 1 index/UniqueID ne and +{exch NF 3 1 roll put} +{pop pop} +ifelse +}forall +NF +}bdf +/MN{ +1 index length +/Len exch def +dup length Len add +string dup +Len +4 -1 roll +putinterval +dup +0 +4 -1 roll +putinterval +}bdf +/RC{4 -1 roll /ourvec xdf 256 string cvs(|______)anchorsearch +{1 index MN cvn/NewN exch def cvn +findfont dup maxlength dict CD dup/FontName NewN put dup +/Encoding ourvec put NewN exch definefont pop}{pop}ifelse}bdf +/RF{ +dup +FontDirectory exch +known +{pop 3 -1 roll pop} +{RC} +ifelse +}bdf +/FF{dup 256 string cvs(|______)exch MN cvn dup FontDirectory exch known +{exch pop findfont 3 -1 roll pop} +{pop dup findfont dup maxlength dict CD dup dup +/Encoding exch /Encoding get 256 array copy 7 -1 roll +{3 -1 roll dup 4 -2 roll put}forall put definefont} +ifelse}bdf +/RCJ{4 -1 roll +/ourvec xdf +256 string cvs +(|______) anchorsearch +{pop +cvn +dup FDFJ +exch +1 index +eq +{ +_bfh findfont _efh +dup +maxlength dict +CD +dup +/FontName +3 index +put +dup +/Encoding ourvec put +1 index +exch +definefont +pop +} +{exch pop} +ifelse +} +{pop} +ifelse +}bdf +/RFJ{ +dup +FontDirectory exch +known +{pop 3 -1 roll pop} +{RCJ} +ifelse +}bdf +/hasfont +{ +/resourcestatus where +{ +pop +/Font resourcestatus +{ +pop pop true +} +{ +false +} +ifelse +} +{ +dup FontDirectory exch known +{pop true} +{ +256 string +cvs +(fonts/) exch MN +status +{pop pop pop pop true} +{false} +ifelse +} +ifelse +} +ifelse +}bdf +/FDFJ +{ +dup +hasfont +not +{ +pop +/Ryumin-Light-83pv-RKSJ-H +hasfont +{ +/Ryumin-Light-83pv-RKSJ-H +} +{ +/Courier +} +ifelse +} +if +}bdf +/FFJ{ +_bfh +dup +256 string cvs +(|______)exch MN +cvn +dup +FontDirectory +exch known +{ +exch +pop +findfont +3 -1 roll +pop +} +{ +pop +FDFJ +dup findfont +dup maxlength dict +CD +dup dup +/Encoding exch +/Encoding get +256 array copy +7 -1 roll +{ +3 -1 roll +dup +4 -2 roll +put +}forall +put +definefont +} +ifelse +_efh +}bdf +/GS { +dup +hasfont +{ +findfont +exch makesetfont +exch +pop +ts +} +{ +pop pop pop +ts +} ifelse +} bdf +/RCK{4 -1 roll +/ourvec xdf +256 string cvs +(|______) anchorsearch +{pop +cvn +dup FDFK +exch +1 index +eq +{ +_bfh findfont _efh +dup +maxlength dict +CD +dup +/FontName +3 index +put +dup +/Encoding ourvec put +1 index +exch +definefont +pop +} +{exch pop} +ifelse +} +{pop} +ifelse +}bdf +/RFK{ +dup +FontDirectory exch +known +{pop 3 -1 roll pop} +{RCK} +ifelse +}bdf +/hasfont +{ +/resourcestatus where +{ +pop +/Font resourcestatus +{ +pop pop true +} +{ +false +} +ifelse +} +{ +dup FontDirectory exch known +{pop true} +{ +256 string +cvs +(fonts/) exch MN +status +{pop pop pop pop true} +{false} +ifelse +} +ifelse +} +ifelse +}bdf +/FDFK +{ +dup +hasfont +not +{ +pop +/JCsm +hasfont +{ +/JCsm +} +{ +/Courier +} +ifelse +} +if +}bdf +/FFK{ +_bfh +dup +256 string cvs +(|______)exch MN +cvn +dup +FontDirectory +exch known +{ +exch +pop +findfont +3 -1 roll +pop +} +{ +pop +FDFK +dup findfont +dup maxlength dict +CD +dup dup +/Encoding exch +/Encoding get +256 array copy +7 -1 roll +{ +3 -1 roll +dup +4 -2 roll +put +}forall +put +definefont +} +ifelse +_efh +}bdf +/RCTC{4 -1 roll +/ourvec xdf +256 string cvs +(|______) anchorsearch +{pop +cvn +dup FDFTC +exch +1 index +eq +{ +_bfh findfont _efh +dup +maxlength dict +CD +dup +/FontName +3 index +put +dup +/Encoding ourvec put +1 index +exch +definefont +pop +} +{exch pop} +ifelse +} +{pop} +ifelse +}bdf +/RFTC{ +dup +FontDirectory exch +known +{pop 3 -1 roll pop} +{RCTC} +ifelse +}bdf +/FDFTC +{ +dup +hasfont +not +{ +pop +/DFMing-Lt-HK-BF +hasfont +{ +/DFMing-Lt-HK-BF +} +{ +/Courier +} +ifelse +} +if +}bdf +/FFTC{ +_bfh +dup +256 string cvs +(|______)exch MN +cvn +dup +FontDirectory +exch known +{ +exch +pop +findfont +3 -1 roll +pop +} +{ +pop +FDFTC +dup findfont +dup maxlength dict +CD +dup dup +/Encoding exch +/Encoding get +256 array copy +7 -1 roll +{ +3 -1 roll +dup +4 -2 roll +put +}forall +put +definefont +} +ifelse +_efh +}bdf +/fps{ +currentflat +exch +dup 0 le{pop 1}if +{ +dup setflat 3 index stopped +{1.3 mul dup 3 index gt{pop setflat pop pop stop}if} +{exit} +ifelse +}loop +pop setflat pop pop +}bdf +/fp{100 currentflat fps}bdf +/clipper{clip}bdf +/W{/clipper load 100 clipflatness dup setflat fps}bdf + +userdict begin /BDFontDict 29 dict def end +BDFontDict begin +/bu{}def +/bn{}def +/setTxMode{av 70 ge{pop}if pop}def +/gm{m}def +/show{pop}def +/gr{pop}def +/fnt{pop pop pop}def +/fs{pop}def +/fz{pop}def +/lin{pop pop}def +/:M {pop pop} def +/sf {pop} def +/S {pop} def +/@b {pop pop pop pop pop pop pop pop} def +/_bdsave /save load def +/_bdrestore /restore load def +/save { dup /fontsave eq {null} {_bdsave} ifelse } def +/restore { dup null eq { pop } { _bdrestore } ifelse } def +/fontsave null def +end +/MacVec 256 array def +MacVec 0 /Helvetica findfont +/Encoding get 0 128 getinterval putinterval +MacVec 127 /DEL put MacVec 16#27 /quotesingle put MacVec 16#60 /grave put +/NUL/SOH/STX/ETX/EOT/ENQ/ACK/BEL/BS/HT/LF/VT/FF/CR/SO/SI +/DLE/DC1/DC2/DC3/DC4/NAK/SYN/ETB/CAN/EM/SUB/ESC/FS/GS/RS/US +MacVec 0 32 getinterval astore pop +/Adieresis/Aring/Ccedilla/Eacute/Ntilde/Odieresis/Udieresis/aacute +/agrave/acircumflex/adieresis/atilde/aring/ccedilla/eacute/egrave +/ecircumflex/edieresis/iacute/igrave/icircumflex/idieresis/ntilde/oacute +/ograve/ocircumflex/odieresis/otilde/uacute/ugrave/ucircumflex/udieresis +/dagger/degree/cent/sterling/section/bullet/paragraph/germandbls +/registered/copyright/trademark/acute/dieresis/notequal/AE/Oslash +/infinity/plusminus/lessequal/greaterequal/yen/mu/partialdiff/summation +/product/pi/integral/ordfeminine/ordmasculine/Omega/ae/oslash +/questiondown/exclamdown/logicalnot/radical/florin/approxequal/Delta/guillemotleft +/guillemotright/ellipsis/nbspace/Agrave/Atilde/Otilde/OE/oe +/endash/emdash/quotedblleft/quotedblright/quoteleft/quoteright/divide/lozenge +/ydieresis/Ydieresis/fraction/currency/guilsinglleft/guilsinglright/fi/fl +/daggerdbl/periodcentered/quotesinglbase/quotedblbase +/perthousand/Acircumflex/Ecircumflex/Aacute +/Edieresis/Egrave/Iacute/Icircumflex/Idieresis/Igrave/Oacute/Ocircumflex +/apple/Ograve/Uacute/Ucircumflex/Ugrave/dotlessi/circumflex/tilde +/macron/breve/dotaccent/ring/cedilla/hungarumlaut/ogonek/caron +MacVec 128 128 getinterval astore pop +/findheaderfont { +/Helvetica findfont +} def +end %. AltsysDict +%%EndResource +%%EndProlog + +%%BeginSetup + +AltsysDict begin +_bfh + +_efh +end %. AltsysDict + +%%EndSetup +AltsysDict begin + +/onlyk4{false}ndf +/ccmyk{dup 5 -1 roll sub 0 max exch}ndf +/cmyk2gray{ +4 -1 roll 0.3 mul 4 -1 roll 0.59 mul 4 -1 roll 0.11 mul +add add add 1 min neg 1 add +}bdf +/setcmykcolor{1 exch sub ccmyk ccmyk ccmyk pop setrgbcolor}ndf +/maxcolor { +max max max +} ndf +/maxspot { +pop +} ndf +/setcmykcoloroverprint{4{dup -1 eq{pop 0}if 4 1 roll}repeat setcmykcolor}ndf +/findcmykcustomcolor{5 packedarray}ndf +/setcustomcolor{exch aload pop pop 4{4 index mul 4 1 roll}repeat setcmykcolor pop}ndf +/setseparationgray{setgray}ndf +/setoverprint{pop}ndf +/currentoverprint false ndf +/cmykbufs2gray{ +0 1 2 index length 1 sub +{ +4 index 1 index get 0.3 mul +4 index 2 index get 0.59 mul +4 index 3 index get 0.11 mul +4 index 4 index get +add add add cvi 255 min +255 exch sub +2 index 3 1 roll put +}for +4 1 roll pop pop pop +}bdf +/colorimage{ +pop pop +[ +5 -1 roll/exec cvx +6 -1 roll/exec cvx +7 -1 roll/exec cvx +8 -1 roll/exec cvx +/cmykbufs2gray cvx +]cvx +image +} +%. version 47.1 on Linotronic of Postscript defines colorimage incorrectly (rgb model only) +version cvr 47.1 le +statusdict /product get (Lino) anchorsearch{pop pop true}{pop false}ifelse +and{userdict begin bdf end}{ndf}ifelse +fhnumcolors 1 ne {/yt save def} if +/customcolorimage{ +aload pop +(_vc_Registration) eq +{ +pop pop pop pop separationimage +} +{ +/ik xdf /iy xdf /im xdf /ic xdf +ic im iy ik cmyk2gray /xt xdf +currenttransfer +{dup 1.0 exch sub xt mul add}concatprocs +st +image +} +ifelse +}ndf +fhnumcolors 1 ne {yt restore} if +fhnumcolors 3 ne {/yt save def} if +/customcolorimage{ +aload pop +(_vc_Registration) eq +{ +pop pop pop pop separationimage +} +{ +/ik xdf /iy xdf /im xdf /ic xdf +1.0 dup ic ik add min sub +1.0 dup im ik add min sub +1.0 dup iy ik add min sub +/ic xdf /iy xdf /im xdf +currentcolortransfer +4 1 roll +{dup 1.0 exch sub ic mul add}concatprocs 4 1 roll +{dup 1.0 exch sub iy mul add}concatprocs 4 1 roll +{dup 1.0 exch sub im mul add}concatprocs 4 1 roll +setcolortransfer +{/dummy xdf dummy}concatprocs{dummy}{dummy}true 3 colorimage +} +ifelse +}ndf +fhnumcolors 3 ne {yt restore} if +fhnumcolors 4 ne {/yt save def} if +/customcolorimage{ +aload pop +(_vc_Registration) eq +{ +pop pop pop pop separationimage +} +{ +/ik xdf /iy xdf /im xdf /ic xdf +currentcolortransfer +{1.0 exch sub ik mul ik sub 1 add}concatprocs 4 1 roll +{1.0 exch sub iy mul iy sub 1 add}concatprocs 4 1 roll +{1.0 exch sub im mul im sub 1 add}concatprocs 4 1 roll +{1.0 exch sub ic mul ic sub 1 add}concatprocs 4 1 roll +setcolortransfer +{/dummy xdf dummy}concatprocs{dummy}{dummy}{dummy} +true 4 colorimage +} +ifelse +}ndf +fhnumcolors 4 ne {yt restore} if +/separationimage{image}ndf +/spotascmyk false ndf +/newcmykcustomcolor{6 packedarray}ndf +/inkoverprint false ndf +/setinkoverprint{pop}ndf +/setspotcolor { +spots exch get +dup 4 get (_vc_Registration) eq +{pop 1 exch sub setseparationgray} +{0 5 getinterval exch setcustomcolor} +ifelse +}ndf +/currentcolortransfer{currenttransfer dup dup dup}ndf +/setcolortransfer{st pop pop pop}ndf +/fas{}ndf +/sas{}ndf +/fhsetspreadsize{pop}ndf +/filler{fill}bdf +/F{gsave {filler}fp grestore}bdf +/f{closepath F}bdf +/S{gsave {stroke}fp grestore}bdf +/s{closepath S}bdf +userdict /islevel2 +systemdict /languagelevel known dup +{ +pop systemdict /languagelevel get 2 ge +} if +put +islevel2 not +{ +/currentcmykcolor +{ +0 0 0 1 currentgray sub +} ndf +} if +/tc +{ +gsave +setcmykcolor currentcmykcolor +grestore +} bind def +/testCMYKColorThrough +{ +tc add add add 0 ne +} bind def +/fhiscomposite where not { +userdict /fhiscomposite +islevel2 +{ +gsave 1 1 1 1 setcmykcolor currentcmykcolor grestore +add add add 4 eq +} +{ +1 0 0 0 testCMYKColorThrough +0 1 0 0 testCMYKColorThrough +0 0 1 0 testCMYKColorThrough +0 0 0 1 testCMYKColorThrough +and and and +} ifelse +put +} +{ pop } +ifelse +/bc4 [0 0 0 0] def +/_lfp4 { +1 pop +/yt xdf +/xt xdf +/ang xdf +storerect +/taperfcn xdf +/k2 xdf /y2 xdf /m2 xdf /c2 xdf +/k1 xdf /y1 xdf /m1 xdf /c1 xdf +c1 c2 sub abs +m1 m2 sub abs +y1 y2 sub abs +k1 k2 sub abs +maxcolor +calcgraysteps mul abs round +height abs adjnumsteps +dup 1 lt {pop 1} if +1 sub /numsteps1 xdf +currentflat mark +currentflat clipflatness +/delta top bottom sub numsteps1 1 add div def +/right right left sub def +/botsv top delta sub def +{ +{ +W +xt yt translate +ang rotate +xt neg yt neg translate +dup setflat +/bottom botsv def +0 1 numsteps1 +{ +numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse +taperfcn /frac xdf +bc4 0 c2 c1 sub frac mul c1 add put +bc4 1 m2 m1 sub frac mul m1 add put +bc4 2 y2 y1 sub frac mul y1 add put +bc4 3 k2 k1 sub frac mul k1 add put +bc4 vc +1 index setflat +{ +mark {newpath left bottom right delta rectfill}stopped +{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if} +{cleartomark exit}ifelse +}loop +/bottom bottom delta sub def +}for +} +gsave stopped grestore +{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if} +{exit}ifelse +}loop +cleartomark setflat +}bdf +/bcs [0 0] def +/_lfs4 { +/yt xdf +/xt xdf +/ang xdf +storerect +/taperfcn xdf +/tint2 xdf +/tint1 xdf +bcs exch 1 exch put +tint1 tint2 sub abs +bcs 1 get maxspot +calcgraysteps mul abs round +height abs adjnumsteps +dup 2 lt {pop 2} if +1 sub /numsteps1 xdf +currentflat mark +currentflat clipflatness +/delta top bottom sub numsteps1 1 add div def +/right right left sub def +/botsv top delta sub def +{ +{ +W +xt yt translate +ang rotate +xt neg yt neg translate +dup setflat +/bottom botsv def +0 1 numsteps1 +{ +numsteps1 div taperfcn /frac xdf +bcs 0 +1.0 tint2 tint1 sub frac mul tint1 add sub +put bcs vc +1 index setflat +{ +mark {newpath left bottom right delta rectfill}stopped +{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if} +{cleartomark exit}ifelse +}loop +/bottom bottom delta sub def +}for +} +gsave stopped grestore +{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if} +{exit}ifelse +}loop +cleartomark setflat +}bdf +/_rfs6 { +/tint2 xdf +/tint1 xdf +bcs exch 1 exch put +/inrad xdf +/radius xdf +/yt xdf +/xt xdf +tint1 tint2 sub abs +bcs 1 get maxspot +calcgraysteps mul abs round +radius inrad sub abs +adjnumsteps +dup 1 lt {pop 1} if +1 sub /numsteps1 xdf +radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse +2 div /halfstep xdf +currentflat mark +currentflat clipflatness +{ +{ +dup setflat +W +0 1 numsteps1 +{ +dup /radindex xdf +numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse +/frac xdf +bcs 0 +tint2 tint1 sub frac mul tint1 add +put bcs vc +1 index setflat +{ +newpath mark +xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360 +{ arc +radindex numsteps1 ne +inrad 0 gt or +{ +xt yt +numsteps1 0 eq +{ inrad } +{ +radindex 1 add numsteps1 div 1 exch sub +radius inrad sub mul halfstep add inrad add +}ifelse +dup xt add yt moveto +360 0 arcn +} if +fill +}stopped +{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if} +{cleartomark exit}ifelse +}loop +}for +} +gsave stopped grestore +{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if} +{exit}ifelse +}loop +cleartomark setflat +}bdf +/_rfp6 { +1 pop +/k2 xdf /y2 xdf /m2 xdf /c2 xdf +/k1 xdf /y1 xdf /m1 xdf /c1 xdf +/inrad xdf +/radius xdf +/yt xdf +/xt xdf +c1 c2 sub abs +m1 m2 sub abs +y1 y2 sub abs +k1 k2 sub abs +maxcolor +calcgraysteps mul abs round +radius inrad sub abs +adjnumsteps +dup 1 lt {pop 1} if +1 sub /numsteps1 xdf +radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse +2 div /halfstep xdf +currentflat mark +currentflat clipflatness +{ +{ +dup setflat +W +0 1 numsteps1 +{ +dup /radindex xdf +numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse +/frac xdf +bc4 0 c2 c1 sub frac mul c1 add put +bc4 1 m2 m1 sub frac mul m1 add put +bc4 2 y2 y1 sub frac mul y1 add put +bc4 3 k2 k1 sub frac mul k1 add put +bc4 vc +1 index setflat +{ +newpath mark +xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360 +{ arc +radindex numsteps1 ne +inrad 0 gt or +{ +xt yt +numsteps1 0 eq +{ inrad } +{ +radindex 1 add numsteps1 div 1 exch sub +radius inrad sub mul halfstep add inrad add +}ifelse +dup xt add yt moveto +360 0 arcn +} if +fill +}stopped +{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if} +{cleartomark exit}ifelse +}loop +}for +} +gsave stopped grestore +{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if} +{exit}ifelse +}loop +cleartomark setflat +}bdf +/lfp4{_lfp4}ndf +/lfs4{_lfs4}ndf +/rfs6{_rfs6}ndf +/rfp6{_rfp6}ndf +/cvc [0 0 0 1] def +/vc{ +AltsysDict /cvc 2 index put +aload length dup 4 eq +{pop dup -1 eq{pop setrgbcolor}{setcmykcolor}ifelse} +{6 eq {sethexcolor} {setspotcolor} ifelse } +ifelse +}bdf +0 setseparationgray +/imgr {1692.47 1570.59 2287.75 2412.48 } def +/bleed 0 def +/clpr {1692.47 1570.59 2287.75 2412.48 } def +/xs 1 def +/ys 1 def +/botx 0 def +/overlap 0 def +/wdist 18 def +0 2 mul fhsetspreadsize +0 0 ne {/df 0 def /clipflatness 0 def} if +/maxsteps 256 def +/forcemaxsteps false def +/minsteps 0 def + +userdict begin /AGDOrigMtx matrix currentmatrix def end +vms +0.15 0.15 scale %JND +-1845 -2006 translate + +/currentpacking defed{false setpacking}if +/spots[ + +1 0 0 0 (Process Cyan) false newcmykcustomcolor + +0 1 0 0 (Process Magenta) false newcmykcustomcolor + +0 0 1 0 (Process Yellow) false newcmykcustomcolor + +0 0 0 1 (Process Black) false newcmykcustomcolor +]def +n +[] 0 d +3.863708 M +1 w +0 j +0 J +false setoverprint +0 i +false eomode +[0 0 0 1]vc +vms +1848.4365 2094.0422 m +1848.4365 2140.987 1886.4917 2179.0422 1933.4365 2179.0422 C +1980.3813 2179.0422 2018.4365 2140.987 2018.4365 2094.0422 C +2018.4365 2047.0974 1980.3813 2009.0422 1933.4365 2009.0422 C +1886.4917 2009.0422 1848.4365 2047.0974 1848.4365 2094.0422 C +5.3858 w +3.863693 M +s +n +true eomode +1897.6516 2067.1709 m +1897.6087 2066.5538 L +1885.3743 2066.1319 L +1883.1946 2062.4053 L +1869.9055 2063.9522 L +1869.9055 2067.1712 L +1897.6516 2067.1709 L +h +1944.0852 2067.1709 m +1944.0852 2067.0077 1944.0852 2066.8741 1944.0852 2066.7647 C +1944.1314 2066.5757 1944.1775 2066.4131 1944.2258 2066.2725 C +1945.0213 2065.0992 1946.0056 2064.2554 1947.179 2063.7413 C +1948.3963 2063.2249 1950.0134 2062.9678 1952.0305 2062.9678 C +1956.0142 2062.9678 1959.7627 2063.9522 1963.2805 2065.9209 C +1964.0204 2066.3353 1964.6824 2066.7527 1965.2665 2067.1732 C +1971.313 2067.1709 L +1970.2122 2065.693 1968.5893 2064.3153 1966.4446 2063.0381 C +1962.0369 2060.4585 1956.8821 2059.1709 1950.9758 2059.1709 C +1948.6775 2059.1709 1946.7791 2059.5445 1945.2805 2060.2959 C +1943.7798 2061.0914 1942.5142 2062.357 1941.4837 2064.0928 C +1941.2486 2064.0928 1940.8728 2064.0928 1940.3587 2064.0928 C +1937.5462 2063.9039 1935.4829 2063.8116 1934.1712 2063.8116 C +1929.2954 2063.8116 1925.1228 2064.2796 1921.6555 2065.2178 C +1919.9787 2065.6936 1918.2362 2066.3443 1916.4282 2067.1704 C +1944.0852 2067.1709 L +true setoverprint +f +false setoverprint +n +1884.4125 2075.1709 m +1884.4602 2073.585 L +1893.1087 2073.0225 L +1893.1087 2075.1712 L +1910.8456 2075.1709 L +1910.98 2075.0913 1911.1146 2075.0069 1911.2493 2074.9209 C +1911.9986 2074.3584 1912.583 2073.9585 1913.0071 2073.7256 C +1916.804 2071.4756 1920.2954 2069.9288 1923.4837 2069.085 C +1926.718 2068.2413 1931.0071 2067.8194 1936.3508 2067.8194 C +1940.3587 2067.8194 L +1940.7805 2070.7022 L +1938.9524 2070.8428 1937.522 2071.4053 1936.4915 2072.3897 C +1935.7726 2073.1422 1935.3163 2074.0693 1935.1223 2075.1726 C +1940.1696 2075.1709 L +1940.3293 2074.9768 1940.5095 2074.8018 1940.7102 2074.6397 C +1941.7407 2073.8421 1943.147 2073.4444 1944.929 2073.4444 C +1948.4128 2073.4444 1951.8259 2074.0193 1955.1674 2075.169 C +1963.5704 2075.1709 L +1962.8877 2074.843 1962.0411 2074.4337 1961.0305 2073.9366 C +1958.1697 2072.5303 1955.2166 2071.4976 1952.1712 2070.8428 C +1951.3274 2070.7022 1950.2244 2070.5132 1948.8665 2070.2803 C +1945.6782 2069.7178 1944.0852 2068.8038 1944.0852 2067.5381 C +1944.0852 2067.4017 1944.0852 2067.2776 1944.0852 2067.1658 C +1916.4282 2067.1709 L +1914.4953 2068.0535 1912.4877 2069.1369 1910.4055 2070.4209 C +1910.0759 2070.6539 1909.6321 2070.9593 1909.0696 2071.335 C +1905.9275 2073.5367 1902.9041 2074.6375 1899.9993 2074.6397 C +1899.9509 2074.6397 1899.6939 2074.6155 1899.2258 2074.5694 C +1898.7556 2074.521 1898.4041 2074.5452 1898.1712 2074.6397 C +1897.6516 2067.1709 L +1869.9055 2067.1709 L +1869.9055 2075.1714 L +1884.4125 2075.1709 L +h +1972.5022 2075.1709 m +1972.8687 2074.2606 1973.0523 2073.2652 1973.054 2072.1788 C +1973.054 2070.3983 1972.4736 2068.7289 1971.313 2067.1709 C +1965.2666 2067.1709 L +1967.4581 2068.751 1968.554 2070.3727 1968.554 2072.0381 C +1968.554 2073.0686 1968.2486 2073.9827 1967.6399 2074.7803 C +1967.5373 2074.922 1967.4334 2075.0518 1967.3283 2075.1698 C +1972.5022 2075.1709 L +true setoverprint +f +false setoverprint +n +1869.9055 2075.1709 m +1869.9055 2119.0772 L +1897.1868 2119.8506 L +1897.8899 2114.2256 L +1899.2962 2114.2256 L +1901.0759 2114.2256 1902.7876 2114.5069 1904.429 2115.0694 C +1906.1165 2115.678 1908.2478 2116.825 1910.8274 2118.5147 C +1911.9524 2119.2178 L +1919.5923 2124.1397 1925.4041 2126.6006 1929.3899 2126.6006 C +1930.8423 2126.6006 1932.3408 2126.3655 1933.8899 2125.8975 C +1935.4368 2125.4756 1937.1463 2124.7945 1939.0227 2123.8584 C +1940.1939 2123.9046 1941.8814 2123.9507 1944.0852 2123.9991 C +1950.0376 2124.0914 1954.0674 2124.1375 1956.179 2124.1397 C +1972.7244 2124.1397 1984.583 2123.1311 1991.7571 2121.1163 C +1998.9751 2119.1475 2002.583 2115.9351 2002.5852 2111.4834 C +2002.5852 2107.8272 2000.2869 2105.2959 1995.6946 2103.8897 C +1991.1463 2102.5296 1981.865 2101.8506 1967.8508 2101.8506 C +1963.5618 2101.8506 L +1964.6384 2100.8179 1965.4361 2099.8116 1965.9524 2098.8272 C +1966.4666 2097.8428 1966.7236 2096.8343 1966.7258 2095.8038 C +1966.7258 2095.3335 1966.6314 2094.7952 1966.4446 2094.1866 C +1966.2556 2093.6241 1965.9041 2092.8506 1965.3899 2091.8663 C +1967.1697 2091.1631 1968.5056 2090.1788 1969.3977 2088.9131 C +1970.2876 2087.6936 1970.7315 2086.1929 1970.7337 2084.4131 C +1970.7337 2083.521 1970.615 2082.6311 1970.3821 2081.7413 C +1970.147 2080.8492 1969.7954 2079.9593 1969.3274 2079.0694 C +1970.5447 2078.2256 1971.4588 2077.2171 1972.0696 2076.0459 C +1972.2346 2075.7625 1972.3788 2075.4685 1972.5022 2075.1642 C +1967.3284 2075.1709 L +1966.8077 2075.7539 1966.2562 2076.0459 1965.6712 2076.0459 C +1965.5191 2076.0459 1964.8189 2075.7521 1963.5704 2075.1643 C +1955.1674 2075.1709 L +1956.5004 2075.6277 1957.8219 2076.1778 1959.1321 2076.8194 C +1963.7727 2079.1155 1966.093 2081.5523 1966.093 2084.1319 C +1966.093 2085.303 1965.7173 2086.2632 1964.968 2087.0147 C +1964.2649 2087.764 1963.3508 2088.1375 1962.2258 2088.1397 C +1961.7556 2088.1397 1959.0838 2086.9905 1954.2102 2084.6944 C +1949.3806 2082.396 1944.4368 2080.6624 1939.3743 2079.4913 C +1939.2798 2079.3023 1939.2337 2079.0914 1939.2337 2078.8584 C +1939.2337 2078.6695 1939.2337 2078.3663 1939.2337 2077.9444 C +1939.2337 2076.8248 1939.5456 2075.8974 1940.1695 2075.1644 C +1935.1224 2075.1709 L +1935.0507 2075.5803 1935.0149 2076.012 1935.0149 2076.4678 C +1935.0149 2076.8414 1935.0369 2077.2391 1935.0852 2077.6631 C +1935.1775 2078.085 1935.294 2078.5992 1935.4368 2079.21 C +1934.7337 2079.21 L +1931.9673 2079.21 1929.7876 2080.0296 1928.1946 2081.6709 C +1926.5994 2083.3101 1925.804 2085.514 1925.804 2088.2803 C +1925.804 2088.9834 L +1924.3032 2088.6077 1922.9673 2088.3265 1921.7962 2088.1397 C +1920.6712 2087.9507 1919.6626 2087.8584 1918.7727 2087.8584 C +1916.8501 2087.8584 1914.9517 2088.232 1913.0774 2088.9834 C +1911.2493 2089.7789 1909.2102 2091.0906 1906.9602 2092.9209 C +1906.8196 2094.6084 L +1909.1619 2093.7647 1911.2713 2093.1077 1913.1477 2092.6397 C +1915.022 2092.2178 1916.7556 2092.0069 1918.3508 2092.0069 C +1920.6931 2092.0069 1922.9431 2092.521 1925.1008 2093.5538 C +1927.3025 2094.5843 1929.5986 2096.2476 1931.9915 2098.5459 C +1925.804 2107.7569 L +1927.0696 2109.4444 L +1928.4275 2108.3655 1930.2556 2106.7945 1932.554 2104.7334 C +1938.2251 2099.6226 1942.9361 2097.0694 1946.6868 2097.0694 C +1948.5149 2097.0694 1950.1782 2097.5132 1951.679 2098.4053 C +1953.2258 2099.2952 1953.9993 2100.1851 1953.9993 2101.0772 C +1953.9993 2101.6397 1952.9446 2103.1866 1950.8352 2105.7178 C +1948.772 2108.2491 1946.1946 2111.0374 1943.1008 2114.085 C +1939.4446 2117.6006 1936.7244 2119.8023 1934.9446 2120.6944 C +1933.2088 2121.6304 1931.3103 2122.0984 1929.2493 2122.1006 C +1925.3579 2122.1006 1920.3657 2120.0374 1914.2727 2115.9131 C +1913.5696 2115.4913 1913.0532 2115.1617 1912.7258 2114.9288 C +1909.6321 2112.8194 1907.1228 2111.4131 1905.2024 2110.71 C +1903.2798 2110.053 1901.2166 2109.7256 1899.0149 2109.7256 C +1898.0305 2109.7256 L +1898.0305 2078.6475 L +1899.8587 2078.6475 L +1903.4329 2078.6475 1907.0952 2077.4884 1910.8456 2075.1742 C +1893.1087 2075.1709 L +1893.1087 2115.7725 L +1883.1946 2115.6319 L +1884.4125 2075.171 L +1869.9055 2075.1709 L +h +1957.9368 2101.0772 m +1957.3259 2098.5459 1956.0603 2096.6695 1954.1399 2095.4522 C +1952.2634 2094.2327 1949.6399 2093.6241 1946.2649 2093.6241 C +1945.1861 2093.6241 1943.615 2093.9273 1941.554 2094.5381 C +1939.5369 2095.1929 1938.0383 2095.5203 1937.054 2095.5225 C +1935.3665 2095.5225 1933.679 2094.8194 1931.9915 2093.4131 C +1930.3501 2092.0069 1929.5305 2090.5765 1929.5305 2089.1241 C +1929.5305 2087.107 1930.0447 2085.5601 1931.0774 2084.4834 C +1932.1079 2083.4507 1933.6065 2082.9366 1935.5774 2082.9366 C +1937.5462 2082.9366 1940.1477 2083.4046 1943.3821 2084.3428 C +1946.6626 2085.3272 1949.9673 2086.5928 1953.2962 2088.1397 C +1956.3416 2089.5459 1958.5674 2090.8819 1959.9758 2092.1475 C +1961.3821 2093.4131 1962.0852 2094.6788 1962.0852 2095.9444 C +1962.0852 2096.8343 1961.7556 2097.678 1961.1008 2098.4756 C +1960.4439 2099.3194 1959.3892 2100.1851 1957.9368 2101.0772 C +h +1943.3821 2119.71 m +1946.054 2117.1788 1948.3501 2114.8584 1950.2727 2112.7491 C +1952.2415 2110.6397 1954.0213 2108.5303 1955.6165 2106.4209 C +1958.5696 2106.1397 1961.2876 2105.9288 1963.7727 2105.7881 C +1966.304 2105.6475 1968.6243 2105.5772 1970.7337 2105.5772 C +1980.7642 2105.5772 1987.7471 2106.021 1991.6868 2106.9131 C +1995.6704 2107.803 1997.6611 2109.3719 1997.6633 2111.6241 C +1997.6633 2114.4366 1994.2883 2116.5459 1987.5383 2117.9522 C +1980.8345 2119.4046 1970.8259 2120.1297 1957.5149 2120.1319 C +1955.4055 2120.1319 1953.1555 2120.0835 1950.7649 2119.9913 C +1948.4204 2119.9429 1945.9595 2119.8506 1943.3821 2119.71 C +true setoverprint +f +false setoverprint +n +vmr +vmr +end +%%Trailer diff --git a/docs/docbook/xslt/figures/tip.pdf b/docs/docbook/xslt/figures/tip.pdf Binary files differnew file mode 100644 index 0000000000..54f5dedb5d --- /dev/null +++ b/docs/docbook/xslt/figures/tip.pdf diff --git a/docs/docbook/xslt/figures/warning.eps b/docs/docbook/xslt/figures/warning.eps new file mode 100644 index 0000000000..0c10b371b1 --- /dev/null +++ b/docs/docbook/xslt/figures/warning.eps @@ -0,0 +1 @@ +%!PS-Adobe-2.0 EPSF-1.2
%%Title: Untitled-3
%%Creator: FreeHand 9.0
%%CreationDate: 2002/12/05 8:20 PM
%%BoundingBox: 0 0 29 29
%%FHPathName:Untitled:FreeHand 9:English:Untitled-3
%ALDOriginalFile:Untitled:FreeHand 9:English:Untitled-3
%ALDBoundingBox: -2 -2 29 29
%%FHPageNum:1
%%DocumentSuppliedResources: procset Altsys_header 4 0
%%ColorUsage: Color
%%DocumentProcessColors: Black
%%EndComments
%%BeginResource: procset Altsys_header 4 0
userdict begin /AltsysDict 300 dict def end
AltsysDict begin
/bdf{bind def}bind def
/xdf{exch def}bdf
/defed{where{pop true}{false}ifelse}bdf
/ndf{1 index where{pop pop pop}{dup xcheck{bind}if def}ifelse}bdf
/d{setdash}bdf
/h{closepath}bdf
/H{}bdf
/J{setlinecap}bdf
/j{setlinejoin}bdf
/M{setmiterlimit}bdf
/n{newpath}bdf
/N{newpath}bdf
/q{gsave}bdf
/Q{grestore}bdf
/w{setlinewidth}bdf
/Xic{matrix invertmatrix concat}bdf
/Xq{matrix currentmatrix mark}bdf
/XQ{cleartomark setmatrix}bdf
/sepdef{
dup where not
{
AltsysSepDict
}
if
3 1 roll exch put
}bdf
/st{settransfer}bdf
/colorimage defed /_rci xdf
/cntr 0 def
/readbinarystring{
/cntr 0 def
2 copy readstring
{
{
dup
(\034) search
{
length exch pop exch
dup length 0 ne
{
dup dup 0 get 32 sub 0 exch put
/cntr cntr 1 add def
}
{
pop 1 string dup
0 6 index read pop 32 sub put
}ifelse
3 copy
putinterval pop
1 add
1 index length 1 sub
1 index sub
dup 0 le {pop pop exit}if
getinterval
}
{
pop exit
} ifelse
} loop
}if
cntr 0 gt
{
pop 2 copy
dup length cntr sub cntr getinterval
readbinarystring
} if
pop exch pop
} bdf
/_NXLevel2 defed {
_NXLevel2 not {
/colorimage where {
userdict eq {
/_rci false def
} if
} if
} if
} if
/md defed{
md type /dicttype eq {
/colorimage where {
md eq {
/_rci false def
}if
}if
/settransfer where {
md eq {
/st systemdict /settransfer get def
}if
}if
}if
}if
/setstrokeadjust defed
{
true setstrokeadjust
/C{curveto}bdf
/L{lineto}bdf
/m{moveto}bdf
}
{
/dr{transform .25 sub round .25 add
exch .25 sub round .25 add exch itransform}bdf
/C{dr curveto}bdf
/L{dr lineto}bdf
/m{dr moveto}bdf
/setstrokeadjust{pop}bdf
}ifelse
/privrectpath {
4 -2 roll m
dtransform round exch round exch idtransform
2 copy 0 lt exch 0 lt xor
{dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto}
{exch dup 0 rlineto exch 0 exch rlineto neg 0 rlineto}
ifelse
closepath
}bdf
/rectclip{newpath privrectpath clip newpath}def
/rectfill{gsave newpath privrectpath fill grestore}def
/rectstroke{gsave newpath privrectpath stroke grestore}def
/_fonthacksave false def
/currentpacking defed
{
/_bfh {/_fonthacksave currentpacking def false setpacking} bdf
/_efh {_fonthacksave setpacking} bdf
}
{
/_bfh {} bdf
/_efh {} bdf
}ifelse
/packedarray{array astore readonly}ndf
/`
{
false setoverprint
/-save0- save def
5 index concat
pop
storerect left bottom width height rectclip
pop
/MMdict_count countdictstack def
/MMop_count count 1 sub def
userdict begin
/showpage {} def
0 setgray 0 setlinecap 1 setlinewidth
0 setlinejoin 10 setmiterlimit [] 0 setdash newpath
} bdf
/currentpacking defed{true setpacking}if
/min{2 copy gt{exch}if pop}bdf
/max{2 copy lt{exch}if pop}bdf
/xformfont { currentfont exch makefont setfont } bdf
/fhnumcolors 1
statusdict begin
/processcolors defed
{
pop processcolors
}
{
/deviceinfo defed {
deviceinfo /Colors known {
pop deviceinfo /Colors get
} if
} if
} ifelse
end
def
/printerRes
gsave
matrix defaultmatrix setmatrix
72 72 dtransform
abs exch abs
max
grestore
def
/graycalcs
[
{Angle Frequency}
{GrayAngle GrayFrequency}
{0 Width Height matrix defaultmatrix idtransform
dup mul exch dup mul add sqrt 72 exch div}
{0 GrayWidth GrayHeight matrix defaultmatrix idtransform
dup mul exch dup mul add sqrt 72 exch div}
] def
/calcgraysteps {
forcemaxsteps
{
maxsteps
}
{
/currenthalftone defed
{currenthalftone /dicttype eq}{false}ifelse
{
currenthalftone begin
HalftoneType 4 le
{graycalcs HalftoneType 1 sub get exec}
{
HalftoneType 5 eq
{
Default begin
{graycalcs HalftoneType 1 sub get exec}
end
}
{0 60}
ifelse
}
ifelse
end
}
{
currentscreen pop exch
}
ifelse
printerRes 300 max exch div exch
2 copy
sin mul round dup mul
3 1 roll
cos mul round dup mul
add 1 add
dup maxsteps gt {pop maxsteps} if
dup minsteps lt {pop minsteps} if
}
ifelse
} bdf
/nextrelease defed {
/languagelevel defed not {
/framebuffer defed {
0 40 string framebuffer 9 1 roll 8 {pop} repeat
dup 516 eq exch 520 eq or
{
/fhnumcolors 3 def
/currentscreen {60 0 {pop pop 1}}bdf
/calcgraysteps {maxsteps} bdf
}if
}if
}if
}if
fhnumcolors 1 ne {
/calcgraysteps {maxsteps} bdf
} if
/currentpagedevice defed {
currentpagedevice /PreRenderingEnhance known
{
currentpagedevice /PreRenderingEnhance get
{
/calcgraysteps
{
forcemaxsteps
{maxsteps}
{256 maxsteps min}
ifelse
} def
} if
} if
} if
/gradfrequency 144 def
printerRes 1000 lt {
/gradfrequency 72 def
} if
/adjnumsteps {
dup dtransform abs exch abs max
printerRes div
gradfrequency mul
round
5 max
min
}bdf
/goodsep {
spots exch get 4 get dup sepname eq exch (_vc_Registration) eq or
}bdf
/BeginGradation defed
{/bb{BeginGradation}bdf}
{/bb{}bdf}
ifelse
/EndGradation defed
{/eb{EndGradation}bdf}
{/eb{}bdf}
ifelse
/bottom -0 def
/delta -0 def
/frac -0 def
/height -0 def
/left -0 def
/numsteps1 -0 def
/radius -0 def
/right -0 def
/top -0 def
/width -0 def
/xt -0 def
/yt -0 def
/df currentflat def
/tempstr 1 string def
/clipflatness currentflat def
/inverted?
0 currenttransfer exec .5 ge def
/tc1 [0 0 0 1] def
/tc2 [0 0 0 1] def
/storerect{/top xdf /right xdf /bottom xdf /left xdf
/width right left sub def /height top bottom sub def}bdf
/concatprocs{
systemdict /packedarray known
{dup type /packedarraytype eq 2 index type /packedarraytype eq or}{false}ifelse
{
/proc2 exch cvlit def /proc1 exch cvlit def
proc1 aload pop proc2 aload pop
proc1 length proc2 length add packedarray cvx
}
{
/proc2 exch cvlit def /proc1 exch cvlit def
/newproc proc1 length proc2 length add array def
newproc 0 proc1 putinterval newproc proc1 length proc2 putinterval
newproc cvx
}ifelse
}bdf
/i{dup 0 eq
{pop df dup}
{dup} ifelse
/clipflatness xdf setflat
}bdf
version cvr 38.0 le
{/setrgbcolor{
currenttransfer exec 3 1 roll
currenttransfer exec 3 1 roll
currenttransfer exec 3 1 roll
setrgbcolor}bdf}if
/vms {/vmsv save def} bdf
/vmr {vmsv restore} bdf
/vmrs{vmsv restore /vmsv save def}bdf
/eomode{
{/filler /eofill load def /clipper /eoclip load def}
{/filler /fill load def /clipper /clip load def}
ifelse
}bdf
/normtaper{}bdf
/logtaper{9 mul 1 add log}bdf
/CD{
/NF exch def
{
exch dup
/FID ne 1 index/UniqueID ne and
{exch NF 3 1 roll put}
{pop pop}
ifelse
}forall
NF
}bdf
/MN{
1 index length
/Len exch def
dup length Len add
string dup
Len
4 -1 roll
putinterval
dup
0
4 -1 roll
putinterval
}bdf
/RC{4 -1 roll /ourvec xdf 256 string cvs(|______)anchorsearch
{1 index MN cvn/NewN exch def cvn
findfont dup maxlength dict CD dup/FontName NewN put dup
/Encoding ourvec put NewN exch definefont pop}{pop}ifelse}bdf
/RF{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RC}
ifelse
}bdf
/FF{dup 256 string cvs(|______)exch MN cvn dup FontDirectory exch known
{exch pop findfont 3 -1 roll pop}
{pop dup findfont dup maxlength dict CD dup dup
/Encoding exch /Encoding get 256 array copy 7 -1 roll
{3 -1 roll dup 4 -2 roll put}forall put definefont}
ifelse}bdf
/RCJ{4 -1 roll
/ourvec xdf
256 string cvs
(|______) anchorsearch
{pop
cvn
dup FDFJ
exch
1 index
eq
{
_bfh findfont _efh
dup
maxlength dict
CD
dup
/FontName
3 index
put
dup
/Encoding ourvec put
1 index
exch
definefont
pop
}
{exch pop}
ifelse
}
{pop}
ifelse
}bdf
/RFJ{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RCJ}
ifelse
}bdf
/hasfont
{
/resourcestatus where
{
pop
/Font resourcestatus
{
pop pop true
}
{
false
}
ifelse
}
{
dup FontDirectory exch known
{pop true}
{
256 string
cvs
(fonts/) exch MN
status
{pop pop pop pop true}
{false}
ifelse
}
ifelse
}
ifelse
}bdf
/FDFJ
{
dup
hasfont
not
{
pop
/Ryumin-Light-83pv-RKSJ-H
hasfont
{
/Ryumin-Light-83pv-RKSJ-H
}
{
/Courier
}
ifelse
}
if
}bdf
/FFJ{
_bfh
dup
256 string cvs
(|______)exch MN
cvn
dup
FontDirectory
exch known
{
exch
pop
findfont
3 -1 roll
pop
}
{
pop
FDFJ
dup findfont
dup maxlength dict
CD
dup dup
/Encoding exch
/Encoding get
256 array copy
7 -1 roll
{
3 -1 roll
dup
4 -2 roll
put
}forall
put
definefont
}
ifelse
_efh
}bdf
/GS {
dup
hasfont
{
findfont
exch makesetfont
exch
pop
ts
}
{
pop pop pop
ts
} ifelse
} bdf
/RCK{4 -1 roll
/ourvec xdf
256 string cvs
(|______) anchorsearch
{pop
cvn
dup FDFK
exch
1 index
eq
{
_bfh findfont _efh
dup
maxlength dict
CD
dup
/FontName
3 index
put
dup
/Encoding ourvec put
1 index
exch
definefont
pop
}
{exch pop}
ifelse
}
{pop}
ifelse
}bdf
/RFK{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RCK}
ifelse
}bdf
/hasfont
{
/resourcestatus where
{
pop
/Font resourcestatus
{
pop pop true
}
{
false
}
ifelse
}
{
dup FontDirectory exch known
{pop true}
{
256 string
cvs
(fonts/) exch MN
status
{pop pop pop pop true}
{false}
ifelse
}
ifelse
}
ifelse
}bdf
/FDFK
{
dup
hasfont
not
{
pop
/JCsm
hasfont
{
/JCsm
}
{
/Courier
}
ifelse
}
if
}bdf
/FFK{
_bfh
dup
256 string cvs
(|______)exch MN
cvn
dup
FontDirectory
exch known
{
exch
pop
findfont
3 -1 roll
pop
}
{
pop
FDFK
dup findfont
dup maxlength dict
CD
dup dup
/Encoding exch
/Encoding get
256 array copy
7 -1 roll
{
3 -1 roll
dup
4 -2 roll
put
}forall
put
definefont
}
ifelse
_efh
}bdf
/RCTC{4 -1 roll
/ourvec xdf
256 string cvs
(|______) anchorsearch
{pop
cvn
dup FDFTC
exch
1 index
eq
{
_bfh findfont _efh
dup
maxlength dict
CD
dup
/FontName
3 index
put
dup
/Encoding ourvec put
1 index
exch
definefont
pop
}
{exch pop}
ifelse
}
{pop}
ifelse
}bdf
/RFTC{
dup
FontDirectory exch
known
{pop 3 -1 roll pop}
{RCTC}
ifelse
}bdf
/FDFTC
{
dup
hasfont
not
{
pop
/DFMing-Lt-HK-BF
hasfont
{
/DFMing-Lt-HK-BF
}
{
/Courier
}
ifelse
}
if
}bdf
/FFTC{
_bfh
dup
256 string cvs
(|______)exch MN
cvn
dup
FontDirectory
exch known
{
exch
pop
findfont
3 -1 roll
pop
}
{
pop
FDFTC
dup findfont
dup maxlength dict
CD
dup dup
/Encoding exch
/Encoding get
256 array copy
7 -1 roll
{
3 -1 roll
dup
4 -2 roll
put
}forall
put
definefont
}
ifelse
_efh
}bdf
/fps{
currentflat
exch
dup 0 le{pop 1}if
{
dup setflat 3 index stopped
{1.3 mul dup 3 index gt{pop setflat pop pop stop}if}
{exit}
ifelse
}loop
pop setflat pop pop
}bdf
/fp{100 currentflat fps}bdf
/clipper{clip}bdf
/W{/clipper load 100 clipflatness dup setflat fps}bdf
userdict begin /BDFontDict 29 dict def end
BDFontDict begin
/bu{}def
/bn{}def
/setTxMode{av 70 ge{pop}if pop}def
/gm{m}def
/show{pop}def
/gr{pop}def
/fnt{pop pop pop}def
/fs{pop}def
/fz{pop}def
/lin{pop pop}def
/:M {pop pop} def
/sf {pop} def
/S {pop} def
/@b {pop pop pop pop pop pop pop pop} def
/_bdsave /save load def
/_bdrestore /restore load def
/save { dup /fontsave eq {null} {_bdsave} ifelse } def
/restore { dup null eq { pop } { _bdrestore } ifelse } def
/fontsave null def
end
/MacVec 256 array def
MacVec 0 /Helvetica findfont
/Encoding get 0 128 getinterval putinterval
MacVec 127 /DEL put MacVec 16#27 /quotesingle put MacVec 16#60 /grave put
/NUL/SOH/STX/ETX/EOT/ENQ/ACK/BEL/BS/HT/LF/VT/FF/CR/SO/SI
/DLE/DC1/DC2/DC3/DC4/NAK/SYN/ETB/CAN/EM/SUB/ESC/FS/GS/RS/US
MacVec 0 32 getinterval astore pop
/Adieresis/Aring/Ccedilla/Eacute/Ntilde/Odieresis/Udieresis/aacute
/agrave/acircumflex/adieresis/atilde/aring/ccedilla/eacute/egrave
/ecircumflex/edieresis/iacute/igrave/icircumflex/idieresis/ntilde/oacute
/ograve/ocircumflex/odieresis/otilde/uacute/ugrave/ucircumflex/udieresis
/dagger/degree/cent/sterling/section/bullet/paragraph/germandbls
/registered/copyright/trademark/acute/dieresis/notequal/AE/Oslash
/infinity/plusminus/lessequal/greaterequal/yen/mu/partialdiff/summation
/product/pi/integral/ordfeminine/ordmasculine/Omega/ae/oslash
/questiondown/exclamdown/logicalnot/radical/florin/approxequal/Delta/guillemotleft
/guillemotright/ellipsis/nbspace/Agrave/Atilde/Otilde/OE/oe
/endash/emdash/quotedblleft/quotedblright/quoteleft/quoteright/divide/lozenge
/ydieresis/Ydieresis/fraction/currency/guilsinglleft/guilsinglright/fi/fl
/daggerdbl/periodcentered/quotesinglbase/quotedblbase
/perthousand/Acircumflex/Ecircumflex/Aacute
/Edieresis/Egrave/Iacute/Icircumflex/Idieresis/Igrave/Oacute/Ocircumflex
/apple/Ograve/Uacute/Ucircumflex/Ugrave/dotlessi/circumflex/tilde
/macron/breve/dotaccent/ring/cedilla/hungarumlaut/ogonek/caron
MacVec 128 128 getinterval astore pop
/findheaderfont {
/Helvetica findfont
} def
end %. AltsysDict
%%EndResource
%%EndProlog
%%BeginSetup
AltsysDict begin
_bfh
_efh
end %. AltsysDict
%%EndSetup
AltsysDict begin
/onlyk4{false}ndf
/ccmyk{dup 5 -1 roll sub 0 max exch}ndf
/cmyk2gray{
4 -1 roll 0.3 mul 4 -1 roll 0.59 mul 4 -1 roll 0.11 mul
add add add 1 min neg 1 add
}bdf
/setcmykcolor{1 exch sub ccmyk ccmyk ccmyk pop setrgbcolor}ndf
/maxcolor {
max max max
} ndf
/maxspot {
pop
} ndf
/setcmykcoloroverprint{4{dup -1 eq{pop 0}if 4 1 roll}repeat setcmykcolor}ndf
/findcmykcustomcolor{5 packedarray}ndf
/setcustomcolor{exch aload pop pop 4{4 index mul 4 1 roll}repeat setcmykcolor pop}ndf
/setseparationgray{setgray}ndf
/setoverprint{pop}ndf
/currentoverprint false ndf
/cmykbufs2gray{
0 1 2 index length 1 sub
{
4 index 1 index get 0.3 mul
4 index 2 index get 0.59 mul
4 index 3 index get 0.11 mul
4 index 4 index get
add add add cvi 255 min
255 exch sub
2 index 3 1 roll put
}for
4 1 roll pop pop pop
}bdf
/colorimage{
pop pop
[
5 -1 roll/exec cvx
6 -1 roll/exec cvx
7 -1 roll/exec cvx
8 -1 roll/exec cvx
/cmykbufs2gray cvx
]cvx
image
}
%. version 47.1 on Linotronic of Postscript defines colorimage incorrectly (rgb model only)
version cvr 47.1 le
statusdict /product get (Lino) anchorsearch{pop pop true}{pop false}ifelse
and{userdict begin bdf end}{ndf}ifelse
fhnumcolors 1 ne {/yt save def} if
/customcolorimage{
aload pop
(_vc_Registration) eq
{
pop pop pop pop separationimage
}
{
/ik xdf /iy xdf /im xdf /ic xdf
ic im iy ik cmyk2gray /xt xdf
currenttransfer
{dup 1.0 exch sub xt mul add}concatprocs
st
image
}
ifelse
}ndf
fhnumcolors 1 ne {yt restore} if
fhnumcolors 3 ne {/yt save def} if
/customcolorimage{
aload pop
(_vc_Registration) eq
{
pop pop pop pop separationimage
}
{
/ik xdf /iy xdf /im xdf /ic xdf
1.0 dup ic ik add min sub
1.0 dup im ik add min sub
1.0 dup iy ik add min sub
/ic xdf /iy xdf /im xdf
currentcolortransfer
4 1 roll
{dup 1.0 exch sub ic mul add}concatprocs 4 1 roll
{dup 1.0 exch sub iy mul add}concatprocs 4 1 roll
{dup 1.0 exch sub im mul add}concatprocs 4 1 roll
setcolortransfer
{/dummy xdf dummy}concatprocs{dummy}{dummy}true 3 colorimage
}
ifelse
}ndf
fhnumcolors 3 ne {yt restore} if
fhnumcolors 4 ne {/yt save def} if
/customcolorimage{
aload pop
(_vc_Registration) eq
{
pop pop pop pop separationimage
}
{
/ik xdf /iy xdf /im xdf /ic xdf
currentcolortransfer
{1.0 exch sub ik mul ik sub 1 add}concatprocs 4 1 roll
{1.0 exch sub iy mul iy sub 1 add}concatprocs 4 1 roll
{1.0 exch sub im mul im sub 1 add}concatprocs 4 1 roll
{1.0 exch sub ic mul ic sub 1 add}concatprocs 4 1 roll
setcolortransfer
{/dummy xdf dummy}concatprocs{dummy}{dummy}{dummy}
true 4 colorimage
}
ifelse
}ndf
fhnumcolors 4 ne {yt restore} if
/separationimage{image}ndf
/spotascmyk false ndf
/newcmykcustomcolor{6 packedarray}ndf
/inkoverprint false ndf
/setinkoverprint{pop}ndf
/setspotcolor {
spots exch get
dup 4 get (_vc_Registration) eq
{pop 1 exch sub setseparationgray}
{0 5 getinterval exch setcustomcolor}
ifelse
}ndf
/currentcolortransfer{currenttransfer dup dup dup}ndf
/setcolortransfer{st pop pop pop}ndf
/fas{}ndf
/sas{}ndf
/fhsetspreadsize{pop}ndf
/filler{fill}bdf
/F{gsave {filler}fp grestore}bdf
/f{closepath F}bdf
/S{gsave {stroke}fp grestore}bdf
/s{closepath S}bdf
userdict /islevel2
systemdict /languagelevel known dup
{
pop systemdict /languagelevel get 2 ge
} if
put
islevel2 not
{
/currentcmykcolor
{
0 0 0 1 currentgray sub
} ndf
} if
/tc
{
gsave
setcmykcolor currentcmykcolor
grestore
} bind def
/testCMYKColorThrough
{
tc add add add 0 ne
} bind def
/fhiscomposite where not {
userdict /fhiscomposite
islevel2
{
gsave 1 1 1 1 setcmykcolor currentcmykcolor grestore
add add add 4 eq
}
{
1 0 0 0 testCMYKColorThrough
0 1 0 0 testCMYKColorThrough
0 0 1 0 testCMYKColorThrough
0 0 0 1 testCMYKColorThrough
and and and
} ifelse
put
}
{ pop }
ifelse
/bc4 [0 0 0 0] def
/_lfp4 {
1 pop
/yt xdf
/xt xdf
/ang xdf
storerect
/taperfcn xdf
/k2 xdf /y2 xdf /m2 xdf /c2 xdf
/k1 xdf /y1 xdf /m1 xdf /c1 xdf
c1 c2 sub abs
m1 m2 sub abs
y1 y2 sub abs
k1 k2 sub abs
maxcolor
calcgraysteps mul abs round
height abs adjnumsteps
dup 1 lt {pop 1} if
1 sub /numsteps1 xdf
currentflat mark
currentflat clipflatness
/delta top bottom sub numsteps1 1 add div def
/right right left sub def
/botsv top delta sub def
{
{
W
xt yt translate
ang rotate
xt neg yt neg translate
dup setflat
/bottom botsv def
0 1 numsteps1
{
numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse
taperfcn /frac xdf
bc4 0 c2 c1 sub frac mul c1 add put
bc4 1 m2 m1 sub frac mul m1 add put
bc4 2 y2 y1 sub frac mul y1 add put
bc4 3 k2 k1 sub frac mul k1 add put
bc4 vc
1 index setflat
{
mark {newpath left bottom right delta rectfill}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
/bottom bottom delta sub def
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/bcs [0 0] def
/_lfs4 {
/yt xdf
/xt xdf
/ang xdf
storerect
/taperfcn xdf
/tint2 xdf
/tint1 xdf
bcs exch 1 exch put
tint1 tint2 sub abs
bcs 1 get maxspot
calcgraysteps mul abs round
height abs adjnumsteps
dup 2 lt {pop 2} if
1 sub /numsteps1 xdf
currentflat mark
currentflat clipflatness
/delta top bottom sub numsteps1 1 add div def
/right right left sub def
/botsv top delta sub def
{
{
W
xt yt translate
ang rotate
xt neg yt neg translate
dup setflat
/bottom botsv def
0 1 numsteps1
{
numsteps1 div taperfcn /frac xdf
bcs 0
1.0 tint2 tint1 sub frac mul tint1 add sub
put bcs vc
1 index setflat
{
mark {newpath left bottom right delta rectfill}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
/bottom bottom delta sub def
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/_rfs6 {
/tint2 xdf
/tint1 xdf
bcs exch 1 exch put
/inrad xdf
/radius xdf
/yt xdf
/xt xdf
tint1 tint2 sub abs
bcs 1 get maxspot
calcgraysteps mul abs round
radius inrad sub abs
adjnumsteps
dup 1 lt {pop 1} if
1 sub /numsteps1 xdf
radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse
2 div /halfstep xdf
currentflat mark
currentflat clipflatness
{
{
dup setflat
W
0 1 numsteps1
{
dup /radindex xdf
numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse
/frac xdf
bcs 0
tint2 tint1 sub frac mul tint1 add
put bcs vc
1 index setflat
{
newpath mark
xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360
{ arc
radindex numsteps1 ne
inrad 0 gt or
{
xt yt
numsteps1 0 eq
{ inrad }
{
radindex 1 add numsteps1 div 1 exch sub
radius inrad sub mul halfstep add inrad add
}ifelse
dup xt add yt moveto
360 0 arcn
} if
fill
}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/_rfp6 {
1 pop
/k2 xdf /y2 xdf /m2 xdf /c2 xdf
/k1 xdf /y1 xdf /m1 xdf /c1 xdf
/inrad xdf
/radius xdf
/yt xdf
/xt xdf
c1 c2 sub abs
m1 m2 sub abs
y1 y2 sub abs
k1 k2 sub abs
maxcolor
calcgraysteps mul abs round
radius inrad sub abs
adjnumsteps
dup 1 lt {pop 1} if
1 sub /numsteps1 xdf
radius inrad sub numsteps1 dup 0 eq {pop} {div} ifelse
2 div /halfstep xdf
currentflat mark
currentflat clipflatness
{
{
dup setflat
W
0 1 numsteps1
{
dup /radindex xdf
numsteps1 dup 0 eq {pop pop 0.5} {div} ifelse
/frac xdf
bc4 0 c2 c1 sub frac mul c1 add put
bc4 1 m2 m1 sub frac mul m1 add put
bc4 2 y2 y1 sub frac mul y1 add put
bc4 3 k2 k1 sub frac mul k1 add put
bc4 vc
1 index setflat
{
newpath mark
xt yt radius inrad sub 1 frac sub mul halfstep add inrad add 0 360
{ arc
radindex numsteps1 ne
inrad 0 gt or
{
xt yt
numsteps1 0 eq
{ inrad }
{
radindex 1 add numsteps1 div 1 exch sub
radius inrad sub mul halfstep add inrad add
}ifelse
dup xt add yt moveto
360 0 arcn
} if
fill
}stopped
{cleartomark exch 1.3 mul dup setflat exch 2 copy gt{stop}if}
{cleartomark exit}ifelse
}loop
}for
}
gsave stopped grestore
{exch pop 2 index exch 1.3 mul dup 100 gt{cleartomark setflat stop}if}
{exit}ifelse
}loop
cleartomark setflat
}bdf
/lfp4{_lfp4}ndf
/lfs4{_lfs4}ndf
/rfs6{_rfs6}ndf
/rfp6{_rfp6}ndf
/cvc [0 0 0 1] def
/vc{
AltsysDict /cvc 2 index put
aload length dup 4 eq
{pop dup -1 eq{pop setrgbcolor}{setcmykcolor}ifelse}
{6 eq {sethexcolor} {setspotcolor} ifelse }
ifelse
}bdf
0 setseparationgray
/imgr {1692.47 1570.59 1723.65 1601.77 } def
/bleed 0 def
/clpr {1692.47 1570.59 1723.65 1601.77 } def
/xs 1 def
/ys 1 def
/botx 0 def
/overlap 0 def
/wdist 18 def
0 2 mul fhsetspreadsize
0 0 ne {/df 0 def /clipflatness 0 def} if
/maxsteps 256 def
/forcemaxsteps false def
/minsteps 0 def
userdict begin /AGDOrigMtx matrix currentmatrix def end
vms
-1694 -1572 translate
/currentpacking defed{false setpacking}if
/spots[
1 0 0 0 (Process Cyan) false newcmykcustomcolor
0 1 0 0 (Process Magenta) false newcmykcustomcolor
0 0 1 0 (Process Yellow) false newcmykcustomcolor
0 0 0 1 (Process Black) false newcmykcustomcolor
]def
n
[] 0 d
3.863708 M
1 w
0 j
0 J
false setoverprint
0 i
false eomode
[0 0 0 1]vc
vms
q
[1 0 0 1 -249.981674 -586.867554] concat
vms
1946.9506 2177.5114 m
1954.4907 2185.0516 L
1956.7047 2187.2656 1960.2943 2187.2656 1962.5083 2185.0516 C
1970.0485 2177.5114 L
1972.2625 2175.2974 1972.2625 2171.7078 1970.0485 2169.4938 C
1962.5083 2161.9537 L
1960.2943 2159.7396 1956.7047 2159.7396 1954.4907 2161.9537 C
1946.9506 2169.4938 L
1944.7365 2171.7078 1944.7365 2175.2974 1946.9506 2177.5114 C
s
n
true eomode
1958.5469 2181.0039 m
1959.2148 2181.0039 1959.7012 2180.9296 1960.0059 2180.7813 C
1960.3142 2180.6326 1960.4684 2180.363 1960.4688 2179.9727 C
1960.4688 2179.7383 1960.3398 2178.8026 1960.082 2177.166 C
1959.0742 2170.4219 L
1958.9373 2170.3241 1958.7615 2170.2754 1958.5469 2170.2754 C
1958.3319 2170.2754 1958.1561 2170.3241 1958.0195 2170.4219 C
1957.0117 2177.166 L
1956.7539 2178.8026 1956.625 2179.7379 1956.625 2179.9727 C
1956.625 2180.363 1956.7792 2180.6326 1957.0879 2180.7813 C
1957.4003 2180.9296 1957.8866 2181.0035 1958.5469 2181.0039 C
h
1958.5469 2165.166 m
1958.0389 2165.166 1957.5878 2165.3499 1957.1934 2165.7168 C
1956.7986 2166.0837 1956.6016 2166.5485 1956.6016 2167.1113 C
1956.6016 2167.6698 1956.7891 2168.1404 1957.1641 2168.5234 C
1957.5427 2168.9102 1958.0038 2169.1035 1958.5469 2169.1035 C
1959.1094 2169.1035 1959.5741 2168.9043 1959.9414 2168.5059 C
1960.3083 2168.1074 1960.4918 2167.6423 1960.4922 2167.1113 C
1960.4922 2166.748 1960.4102 2166.4177 1960.2461 2166.1211 C
1960.082 2165.8241 1959.8513 2165.5916 1959.5547 2165.4238 C
1959.2577 2165.2521 1958.9219 2165.1664 1958.5469 2165.166 C
true setoverprint
f
false setoverprint
n
vmr
Q
false eomode
vmr
vmr
end
%%Trailer
\ No newline at end of file diff --git a/docs/docbook/xslt/figures/warning.pdf b/docs/docbook/xslt/figures/warning.pdf Binary files differnew file mode 100644 index 0000000000..a0afabfa23 --- /dev/null +++ b/docs/docbook/xslt/figures/warning.pdf diff --git a/docs/docbook/xslt/html-chunk.xsl b/docs/docbook/xslt/html-chunk.xsl new file mode 100644 index 0000000000..2bc8b426b5 --- /dev/null +++ b/docs/docbook/xslt/html-chunk.xsl @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is generated from param.xweb; do not edit this file! --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + +<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/> +<xsl:import href="html-common.xsl"/> +<xsl:param name="chunk.first.sections" select="1"/> +<xsl:param name="chunk.quietly" select="0"/> +<xsl:param name="chunk.section.depth" select="0"/> +<xsl:param name="chunk.toc" select="''"/> +<xsl:param name="chunk.tocs.and.lots" select="0"/> + +</xsl:stylesheet>
\ No newline at end of file diff --git a/docs/docbook/xslt/html-common.xsl b/docs/docbook/xslt/html-common.xsl new file mode 100644 index 0000000000..03fa5d5ec1 --- /dev/null +++ b/docs/docbook/xslt/html-common.xsl @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is generated from param.xweb; do not edit this file! --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + +<xsl:param name="base.dir" select="'../htmldocs/'"/> +<xsl:param name="bridgehead.in.toc" select="1"/> +<xsl:param name="citerefentry.link" select="'1'"/> +<xsl:param name="css.decoration" select="1"/> +<xsl:param name="html.stylesheet" select="'samba.css'"/> +<xsl:param name="html.stylesheet.type">text/css</xsl:param> +<xsl:param name="use.extensions" select="'0'"/> +<xsl:param name="use.id.as.filename" select="'1'"/> +<xsl:param name="use.local.olink.style" select="1"/> +<xsl:param name="use.role.as.xrefstyle" select="1"/> +<xsl:param name="use.role.for.mediaobject" select="1"/> + +<xsl:template name="generate.citerefentry.link"> + <xsl:value-of select="refentrytitle"/><xsl:text>.</xsl:text><xsl:value-of select="manvolnum"/><xsl:text>.html</xsl:text> +</xsl:template> + +</xsl:stylesheet>
\ No newline at end of file diff --git a/docs/docbook/xslt/html.xsl b/docs/docbook/xslt/html.xsl new file mode 100644 index 0000000000..c5d8db89ed --- /dev/null +++ b/docs/docbook/xslt/html.xsl @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This file is generated from param.xweb; do not edit this file! --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + +<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> +<xsl:import href="html-common.xsl"/> + +</xsl:stylesheet>
\ No newline at end of file diff --git a/docs/docbook/xslt/html/samba.css b/docs/docbook/xslt/html/samba.css new file mode 100644 index 0000000000..3d926e8e74 --- /dev/null +++ b/docs/docbook/xslt/html/samba.css @@ -0,0 +1,80 @@ +BODY { + font-family: helvetica, arial, lucida sans, sans-serif; + background-color: white; +} + +H1, H2, H3 { + color: blue; + font-size: 120%; + padding: 2px; + margin-top: 0px; +} + +H1 { + background-color: #EEEEFF; + color: blue; +} + +H2 { + background-color: #DDDDFF; + color: blue; +} + +H3 { + background-color: #CCCCFF; + color: blue; +} + +H4 { + color: blue; +} + +TR.qandadiv TD { + padding-top: 1em; +} + +DIV.navhead { + font-size: 80%; +} + +A:link { + color: #36F; +} + +A:visited { + color: #96C; +} + +A:active { + color: #F63; +} + +TR.question { + color: #33C; + font-weight: bold; +} + +TR.question TD { + padding-top: 1em; +} + +DIV.variablelist { + padding-left: 2em; + color: #33C; +} + +P { + color: black; +} + +DIV.note, DIV.warning, DIV.caution, DIV.tip, DIV.important { + border: dashed 1px; + background-color: #EEEEFF; + width: 40em; +} + +PRE.programlisting, PRE.screen { + border: #630 1px dashed; + color: #630; +} + diff --git a/docs/docbook/xslt/latex.xsl b/docs/docbook/xslt/latex.xsl new file mode 100644 index 0000000000..158c5879db --- /dev/null +++ b/docs/docbook/xslt/latex.xsl @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> +<xsl:import href="db2latex/docbook.xsl"/> +<xsl:import href="table.mod.xsl"/> +<xsl:import href="lists.mod.xsl"/> + +<xsl:output method="text" encoding="ISO-8859-1" indent="yes"/> +<xsl:variable name="latex.documentclass">xslt/latex/sambadoc</xsl:variable> +<xsl:variable name="latex.documentclass.common">english,final,titlepage</xsl:variable> +<xsl:variable name="latex.documentclass.book"></xsl:variable> +<xsl:variable name="latex.hyperref.param.pdftex">hyperfigures,hyperindex,citecolor=blue,urlcolor=blue</xsl:variable> +<xsl:variable name="latex.document.font">default</xsl:variable> +<xsl:variable name="latex.admonition.path">xslt/figures</xsl:variable> +<xsl:variable name="latex.hyphenation.tttricks">1</xsl:variable> +<xsl:variable name="latex.use.tabularx">1</xsl:variable> +<xsl:param name="latex.babel.language">english</xsl:param> +<xsl:param name="ulink.url">1</xsl:param> + +<xsl:variable name="latex.book.preamble.post">\fancyhf{} +\fancyhead[RE]{\slshape \rightmark} +\fancyhead[LO]{\slshape \leftmark} +\fancyfoot[R]{\thepage} +</xsl:variable> + +<xsl:template match="//title/filename|//title/command"> + <xsl:variable name="content"> + <xsl:apply-templates/> + </xsl:variable> + <xsl:if test="$content != ''"> + <xsl:value-of select="$content" /> + </xsl:if> +</xsl:template> + +</xsl:stylesheet> + diff --git a/docs/docbook/xslt/latex/sambadoc.cls b/docs/docbook/xslt/latex/sambadoc.cls new file mode 100644 index 0000000000..e03dcf7a24 --- /dev/null +++ b/docs/docbook/xslt/latex/sambadoc.cls @@ -0,0 +1,124 @@ +%%--------------------------------------------------- +%%-- RC Thesis +%%--------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{xslt/latex/sambadoc} + +%%--------------------------------------------------- +%%-- Load the base class and modify current macros. +%%--------------------------------------------------- + +\newif\if@usecppsyntax \@usecppsyntaxfalse + +\DeclareOption{cpp}{\@usecppsyntaxtrue} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}} +\ProcessOptions +%\PassOptionsToClass{12pt}{scrreprt} + +\LoadClass{scrreprt} + +%%--Set the section number depth. +\setcounter{secnumdepth}{3} +\setcounter{tocdepth}{4} + +%\setcounter{page}{2} + +%%--Create a vertical skip for the distance between the title and +%%--the first line of text on the prolog pages. +\newskip\thesisvskip +\thesisvskip 36pt + +%%--Set the margins. %\headheight6pt \headsep12pt +\usepackage[margin=20pt,head=20pt,headsep=20pt,foot=20pt]{geometry} + +%%--Use typehtml for better specification of tables +\usepackage{typehtml} + +%%--Change the marginpar. +\reversemarginpar +\let\old@marginpar=\marginpar +\def\marginpar#1{ + \old@marginpar{\def\baselinestretch{1}\em\small #1}} + +%%--Parameters that can be set by the user. +\def\samba@listtables{y} +\def\samba@listfigures{y} + +\newcommand{\notablelist}{\gdef\samba@listtables{n}} +\newcommand{\nofigurelist}{\gdef\samba@listfigures{n}} + + +%%--Modify behavior of the figure and table environment. +\def\fps@figure{hbt} +\def\fnum@figure{{\bf \figurename~\thefigure}} +\def\fps@table{htb} +\def\fnum@table{{\bf \tablename~\thetable}} + +\def\mathfigure{\thesisfiguretrue\figure} +\def\endmathfigure{\endfigure\thesisfigurefalse} + + + +%%----------------------------------------------- +%%-- Modify the displayed math environments. +%%----------------------------------------------- + +\newif\ifthesisfigure +\thesisfigurefalse + + + +%%-------------------------------------------- +%%-- Miscellaneous commands. +%%-------------------------------------------- + +%%--Commands to simplify font changing. +\newcommand{\sfup}{\sffamily\mdseries\upshape} +\newcommand{\sfsc}{\ttfamily\mdseries\scshape} +\newcommand{\sfit}{\sffamily\mdseries\itshape} +\newcommand{\rmup}{\rmfamily\mdseries\upshape} +\newcommand{\rmbf}{\rmfamily\bfseries\upshape} +\newcommand{\rmit}{\rmfamily\mdseries\itshape} +\newcommand{\ttup}{\ttfamily\mdseries\upshape} + + +\endinput + +%%--The \tableofcontents. +\renewcommand\tableofcontents{% + \renewcommand{\contentsname}{Table of Contents} + \if@twocolumn + \@restonecoltrue\onecolumn + \else + \@restonecolfalse + \fi + \oldchapter*{\contentsname + \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}% + \@starttoc{toc}% + \if@restonecol\twocolumn\fi} + +%%--The \listoffigures command. +\renewcommand\listoffigures{% + \if@twocolumn + \@restonecoltrue\onecolumn + \else + \@restonecolfalse + \fi + \oldchapter*{\listfigurename + \@mkboth{\uppercase{\listfigurename}}{\uppercase{\listfigurename}}}% + \@starttoc{lof}% + \if@restonecol\twocolumn\fi} + +%%--The \listoftables command. +\renewcommand\listoftables{% + \if@twocolumn% + \@restonecoltrue\onecolumn% + \else% + \@restonecolfalse% + \fi% + \oldchapter*{\listtablename% + \@mkboth{\uppercase{\listtablename}}{\uppercase{\listtablename}}}% + \@starttoc{lot}% + \if@restonecol\twocolumn\fi} + +\endinput diff --git a/docs/docbook/xslt/lists.mod.xsl b/docs/docbook/xslt/lists.mod.xsl new file mode 100644 index 0000000000..5fbd02de3a --- /dev/null +++ b/docs/docbook/xslt/lists.mod.xsl @@ -0,0 +1,31 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: lists.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + <xsl:template match="simplelist"> + <xsl:if test="title"> <xsl:apply-templates select="title"/></xsl:if> + <xsl:text> \begin{itemize} </xsl:text> + <xsl:apply-templates select="member"/> + <xsl:text> \end{itemize} </xsl:text> + </xsl:template> + + + <xsl:template match="member"> + <xsl:text> %--- Item </xsl:text> + <xsl:text>\item[] </xsl:text> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + +</xsl:stylesheet> diff --git a/docs/docbook/smbdotconf/man.xsl b/docs/docbook/xslt/man.xsl index a7ae76bbd8..c1566b30c5 100644 --- a/docs/docbook/smbdotconf/man.xsl +++ b/docs/docbook/xslt/man.xsl @@ -8,7 +8,7 @@ <xsl:param name="chunk.section.depth" select="0"/> <xsl:param name="chunk.first.sections" select="1"/> <xsl:param name="use.id.as.filename" select="1"/> -<xsl:param name="base.dir" select="'../../manpages/'"/> +<xsl:param name="base.dir" select="'../manpages/'"/> <!-- Our ulink stylesheet omits @url part if content was specified diff --git a/docs/docbook/xslt/table.mod.xsl b/docs/docbook/xslt/table.mod.xsl new file mode 100644 index 0000000000..336cac6dfb --- /dev/null +++ b/docs/docbook/xslt/table.mod.xsl @@ -0,0 +1,746 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: table.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="table" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: table.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <firstname>Ramon</firstname> <surname>Casellas</surname> + <firstname>James</firstname> <surname>Devenish</surname> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>Tables <filename>table.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para></para> + </section> + </partintro> + </doc:reference> + + + + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:template match="table|informaltable" xmlns=""> + <refpurpose>XSL template for docbook tables. </refpurpose> + <refdescription> + <para></para> + <formalpara><title>Remarks and Bugs</title> + <itemizedlist> + </itemizedlist> + </formalpara> + <formalpara><title>Default Behaviour</title> + <screen></screen> + </formalpara> + </refdescription> + </doc:template> + <!--############################################################################# --> + + <xsl:template match="table"> + <xsl:variable name="placement"> + <xsl:call-template name="generate.formal.title.placement"> + <xsl:with-param name="object" select="local-name(.)" /> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="caption"> + <xsl:text>\caption{</xsl:text> + <xsl:apply-templates select="title" mode="caption.mode"/> + <xsl:text>} </xsl:text> + </xsl:variable> + <xsl:call-template name="map.begin"/> + <xsl:if test="$placement='before'"> + <xsl:text>\captionswapskip{}</xsl:text> + <xsl:value-of select="$caption" /> + <xsl:text>\captionswapskip{}</xsl:text> + </xsl:if> + <xsl:apply-templates/> + <xsl:if test="$placement!='before'"><xsl:value-of select="$caption" /></xsl:if> + <xsl:call-template name="map.end"/> + </xsl:template> + + <xsl:template match="table/title"/> + <xsl:template match="table/title" mode="caption.mode"><xsl:apply-templates /></xsl:template> + + <xsl:template match="informaltable"> + <xsl:call-template name="map.begin"/> + <xsl:apply-templates/> + <xsl:call-template name="map.end"/> + </xsl:template> + + + <xsl:template name="table.format.tabularx"> + <xsl:param name="cols" select="1"/> + <xsl:param name="i" select="1"/> + <xsl:param name="colsep" select="1"/> + <!-- sum of numeric portions in 1*-like colwidths --> + <xsl:param name="starfactor" select="0"/> + <xsl:choose> + <!-- Out of the recursive iteration --> + <xsl:when test="$i > $cols"></xsl:when> + <!-- There are still columns to count --> + <xsl:otherwise> + <xsl:variable name="width"> + <xsl:variable name="userchoice" select="colspec[@colnum=$i]/@colwidth"/> + <xsl:variable name="cells" select="thead/row/entry[$i]|tbody/row/entry[$i]"/> + <xsl:choose> + <xsl:when test="string-length($userchoice)=0 and count($cells//itemizedlist|$cells//orderedlist|$cells//variablelist)>0"> + <!-- In these specific circumstances, we MUST use a line-wrapped column + and yet the user hasn't specified one. --> + <xsl:value-of select="'1*'"/> + </xsl:when> + <xsl:otherwise> + <!-- In the general case, we just do what the user wants (may even + have no pre-specified width). --> + <xsl:value-of select="$userchoice"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <!-- Try to take heed of colspecs --> + <xsl:choose> + <xsl:when test="$width!=''"> + <xsl:text>>{</xsl:text> + <xsl:if test="contains($width,'*')"> + <!-- see tabularx documentation --> + <xsl:text>\hsize=</xsl:text> + <xsl:value-of select="substring-before($width,'*') * $starfactor" /> + <xsl:text>\hsize</xsl:text> + </xsl:if> + <xsl:choose> + <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>\RaggedRight</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>\RaggedLeft</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>\Centering</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when> + </xsl:choose> + <xsl:text>}</xsl:text> + <xsl:choose> + <xsl:when test="contains($width,'*')"> + <xsl:text>X</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>p{</xsl:text><xsl:value-of select="$width" /><xsl:text>}</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="$i<$cols and $colsep='1'"> + <xsl:text>|</xsl:text> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <xsl:choose> + <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>l</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>r</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>c</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='justify'"><xsl:text>X</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:text>c</xsl:text><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when> + <xsl:otherwise><xsl:text>X</xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:if test="$i<$cols and $colsep='1'"> + <xsl:text>|</xsl:text> + </xsl:if> + </xsl:otherwise> + </xsl:choose> + <!-- Recursive for next column --> + <xsl:call-template name="table.format.tabularx"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="starfactor" select="$starfactor"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <!-- FIX THIS --> + <xsl:template name="table.format.tabular"> + <xsl:param name="cols" select="1"/> + <xsl:param name="i" select="1"/> + <xsl:param name="colsep" select="1"/> + <xsl:choose> + <!-- Out of the recursive iteration --> + <xsl:when test="$i > $cols"></xsl:when> + <!-- There are still columns to count --> + <xsl:otherwise> + <!-- Try to take heed of colspecs --> + <xsl:choose> + <!-- RC 2003/03/19 : Added first 'test' : colspec[@colnum=$i] for xsltproc + Before this patch, parsing the doc with xsltproc the xsl:when clause + was evaluated to 'true' even if there was no colspec for the column + --> + <xsl:when test="colspec[@colnum=$i] and colspec[@colnum=$i]/@colwidth!='' and not(contains(colspec[@colnum=$i]/@colwidth,'*'))"> + <xsl:choose> + <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>>{\RaggedRight}</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>>{\RaggedLeft}</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>>{\Centering}</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when> + </xsl:choose> + <xsl:text>p{</xsl:text><xsl:value-of select="colspec[@colnum=$i]/@colwidth" /><xsl:text>}</xsl:text> + <xsl:if test="$i<$cols and $colsep='1'"> + <xsl:text>|</xsl:text> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <xsl:choose> + <xsl:when test="colspec[@colnum=$i]/@align='left'"><xsl:text>l</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='right'"><xsl:text>r</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='center'"><xsl:text>c</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='justify'"><xsl:text>l</xsl:text></xsl:when> + <xsl:when test="colspec[@colnum=$i]/@align='char'"><xsl:text>c</xsl:text><xsl:message>Table column char alignment is not supported.</xsl:message></xsl:when> + <xsl:otherwise><xsl:text>c</xsl:text></xsl:otherwise> + </xsl:choose> + <xsl:if test="$i<$cols and $colsep='1'"> + <xsl:text>|</xsl:text> + </xsl:if> + </xsl:otherwise> + </xsl:choose> + <!-- Recursive for next column --> + <xsl:call-template name="table.format.tabular"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + <!-- See tabularx documentation. --> + <!-- For example, if we have a 1* column and a 3* column, then the + the hsizes for each column are (1/(1+3)*2) and (3/(1+3)*2). + The ratio of these to the star values (star values being 1 and 3) + is 2/(1+3). + BUT it is now very complicated because it takes into account columns + where the user has not specified a width but LaTeX requires a + fixed-width column (i.e. specialcols may vary). + Relies on there being (a) colspecs for every column or (b) no + colspecs. + --> + <xsl:template name="generate.starfactor"> + <xsl:param name="i" select="1"/> + <xsl:param name="cols" select="count(colspec)"/> + <xsl:param name="sum" select="0"/> + <xsl:param name="specialcols" select="count(colspec[contains(@colwidth,'*')])"/> + <xsl:choose> + <xsl:when test="$i<=$cols and colspec[position()=$i and contains(@colwidth,'*')]"> + <!-- a * column --> + <xsl:call-template name="generate.starfactor"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="sum" select="$sum+substring-before(colspec[$i]/@colwidth,'*')"/> + <xsl:with-param name="specialcols" select="$specialcols"/> + </xsl:call-template> + </xsl:when> + <xsl:when test="$i<=$cols"> + <!-- not a * column, but we are going to pretend that it is --> + <xsl:variable name="cells" select="thead/row/entry[$i]|tbody/row/entry[$i]"/> + <xsl:variable name="problems" select="count($cells//itemizedlist|$cells//orderedlist|$cells//variablelist)"/> + <xsl:choose> + <xsl:when test="$problems > 0"> + <xsl:call-template name="generate.starfactor"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="sum" select="$sum+1"/> + <xsl:with-param name="specialcols" select="$specialcols+1"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="generate.starfactor"> + <xsl:with-param name="i" select="$i+1"/> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="sum" select="$sum"/> + <xsl:with-param name="specialcols" select="$specialcols"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$specialcols div $sum"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <xsl:template match="tgroup"> + <xsl:variable name="align" select="@align"/> + <xsl:variable name="frame"> + <xsl:choose> + <xsl:when test="string-length(../@frame)<1">all</xsl:when> + <xsl:otherwise> + <xsl:value-of select="../@frame"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:variable name="colspecs" select="./colspec"/> + <xsl:variable name="usex"> + <xsl:choose> + <!-- if there are lists within cells, we need tabularx --> + <xsl:when test="$latex.use.tabularx=1 and (descendant::itemizedlist|descendant::orderedlist|descendant::variablelist)"> + <xsl:text>1</xsl:text> + </xsl:when> + <!-- if there are instances of 1*-style colwidths, we need tabularx --> + <xsl:when test="$latex.use.tabularx=1 and contains(colspec/@colwidth,'*')"> + <xsl:text>1</xsl:text> + </xsl:when> + <!-- if there are colspecs with 'justify' alignment and no explicit width, we need tabularx --> + <xsl:when test="$latex.use.tabularx=1 and count(colspec[@align='justify'])>0"> + <xsl:text>1</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>1</xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:variable name="useminipage"> + <!-- Hack to get around LaTeX issue with tabular (not necessary with tabularx). + This is NOT a good solution, and has problems of its own, but at least the footnotes + do not actually disappear (which is what would otherwise happen). --> + <xsl:if test="count(.//footnote)!=0">1</xsl:if> + </xsl:variable> + <xsl:choose> + <xsl:when test="$usex='1'"> + <xsl:text>\begin{tabularx}{\linewidth}{</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:if test="$useminipage='1'"><xsl:text>\begin{minipage}{\linewidth} </xsl:text></xsl:if> + <xsl:text>\begin{tabular}{</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="$frame='all' or $frame='sides'"> + <xsl:text>|</xsl:text> + </xsl:if> + <xsl:choose> + <xsl:when test="$usex=1"> + <xsl:call-template name="table.format.tabularx"> + <xsl:with-param name="cols" select="@cols"/> + <xsl:with-param name="starfactor"> + <xsl:call-template name="generate.starfactor"> + <xsl:with-param name="cols" select="@cols"/> + </xsl:call-template> + </xsl:with-param> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="table.format.tabular"> + <xsl:with-param name="cols" select="@cols"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + <xsl:if test="$frame='all' or $frame='sides'"> + <xsl:text>|</xsl:text> + </xsl:if> + <xsl:text>} </xsl:text> + <xsl:if test="$frame!='sides' and $frame!='none' and $frame!='bottom'"> + <xsl:text>\hline </xsl:text> + </xsl:if> + <!-- APPLY TEMPLATES --> + <xsl:apply-templates/> + <!-- --> + <xsl:if test="$frame!='sides' and $frame!='none' and $frame!='top'"> + <xsl:text>\hline </xsl:text> + </xsl:if> + <xsl:choose> + <xsl:when test="$usex=1"> + <xsl:text>\end{tabularx} </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>\end{tabular} </xsl:text> + <xsl:if test="$useminipage='1'"><xsl:text>\end{minipage} </xsl:text></xsl:if> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + + + <!-- + <xsl:template name="generate.col"> + <xsl:param name="countcol">1</xsl:param> + </xsl:template> + --> + + <xsl:template match="colspec"></xsl:template> + <xsl:template match="spanspec"></xsl:template> + + + + + <xsl:template match="thead|tfoot"> + <xsl:if test="@align"> + <xsl:attribute name="align"> + <xsl:value-of select="@align"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@char"> + <xsl:attribute name="char"> + <xsl:value-of select="@char"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@charoff"> + <xsl:attribute name="charoff"> + <xsl:value-of select="@charoff"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@valign"> + <xsl:attribute name="valign"> + <xsl:value-of select="@valign"/> + </xsl:attribute> + </xsl:if> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="thead/row/entry|tfoot/row/entry"> + <xsl:call-template name="latex.entry.prealign"/> + <xsl:call-template name="latex.thead.row.entry"/> + <xsl:call-template name="latex.entry.postalign"/> + <xsl:choose> + <xsl:when test="position()=last()"><xsl:text> \tabularnewline </xsl:text></xsl:when> + <xsl:otherwise><xsl:call-template name="generate.latex.cell.separator"/></xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template match="tbody"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="row"> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="tbody/row|thead/row|tfoot/row"> + <xsl:apply-templates/> + <!-- The rule below the last row in the table is controlled by the + Frame attribute of the enclosing Table or InformalTable and the RowSep + of the last row is ignored. If unspecified, this attribute is + inherited from enclosing elements, rowsep=1 by default. --> + <xsl:variable name="parent_position" select="count(../preceding-sibling::node())+1"/> + <xsl:variable name="grandparent_children" select="count(../../child::node())"/> + <xsl:if test="(count(@rowsep)=0 or @rowsep='1') and (position() != last() or $parent_position < $grandparent_children)"> + <xsl:text> \hline </xsl:text> + </xsl:if> + </xsl:template> + + + <xsl:template match="tbody/row/entry"> + <xsl:call-template name="latex.entry.prealign"/> + <xsl:apply-templates/> + <xsl:call-template name="latex.entry.postalign"/> + <xsl:choose> + <xsl:when test="position()=last()"><xsl:text> \tabularnewline </xsl:text></xsl:when> + <xsl:otherwise><xsl:call-template name="generate.latex.cell.separator"/></xsl:otherwise> + </xsl:choose> + </xsl:template> + + + <xsl:template name="latex.entry.prealign"> + <xsl:variable name="span"> + <xsl:choose> + <xsl:when test="@spanname!=''"> + <xsl:call-template name="calculate.colspan"> + <xsl:with-param name="namest" select="../../../spanspec[@spanname=@spanname]/@namest"/> + <xsl:with-param name="nameend" select="../../../spanspec[@spanname=@spanname]/@nameend"/> + </xsl:call-template> + </xsl:when> + <xsl:when test="@namest!=''"> + <xsl:call-template name="calculate.colspan"/> + </xsl:when> + <xsl:otherwise>-1</xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:if test="$span > 1"> + <xsl:text>\multicolumn{</xsl:text> + <xsl:value-of select="$span"/> + <xsl:text>|}{</xsl:text><!-- TODO take heed of @colsep --> + <xsl:choose> + <xsl:when test="@align='left'"><xsl:text>l</xsl:text></xsl:when> + <xsl:when test="@align='right'"><xsl:text>r</xsl:text></xsl:when> + <xsl:when test="@align='center'"><xsl:text>c</xsl:text></xsl:when> + <xsl:when test="@align='char'">c<xsl:message>Table entry char alignment is not supported.</xsl:message></xsl:when> + <xsl:otherwise>c</xsl:otherwise> + </xsl:choose> + <!-- use this as a hook for some general warnings --> + <xsl:text>}</xsl:text> + </xsl:if> + <!-- this is used when the entry's align spec wants to override the column default --> + <xsl:if test="$span < 1"> + <xsl:choose> + <xsl:when test="@align='left'"><xsl:text>\docbooktolatexalignll </xsl:text></xsl:when> + <xsl:when test="@align='right'"><xsl:text>\docbooktolatexalignrl </xsl:text></xsl:when> + <xsl:when test="@align='center'"><xsl:text>\docbooktolatexaligncl </xsl:text></xsl:when> + <xsl:when test="@align='char'"><xsl:message>Table entry char alignment is not supported.</xsl:message></xsl:when> + </xsl:choose> + </xsl:if> + <xsl:text>{</xsl:text> + <xsl:if test="@rotate='1'"> + <xsl:text>\rotatebox{90}</xsl:text> + <xsl:if test="@align!=''"><xsl:message>entry[@rotate='1' and @align!=''] probably doesn't work.</xsl:message></xsl:if> + </xsl:if> + <xsl:text>{</xsl:text> + <!-- use this as a hook for some general warnings --> + <xsl:if test="@morerows!=''"><xsl:message>The morerows attribute is not supported.</xsl:message></xsl:if> + </xsl:template> + + <xsl:template name="latex.entry.postalign"> + <xsl:text>}}</xsl:text> + <!-- this is used when the entry's align spec wants to override the column default --> + <xsl:if test="@namest='' and @spanspec=''"><!-- TODO improve --> + <xsl:choose> + <xsl:when test="@align='left'"><xsl:text>\docbooktolatexalignlr </xsl:text></xsl:when> + <xsl:when test="@align='right'"><xsl:text>\docbooktolatexalignrr </xsl:text></xsl:when> + <xsl:when test="@align='center'"><xsl:text>\docbooktolatexaligncr </xsl:text></xsl:when> + </xsl:choose> + </xsl:if> + </xsl:template> + + + + + + + + + + + + + + <xsl:template name="process.cell"> + <xsl:param name="cellgi">td</xsl:param> + <xsl:variable name="empty.cell" select="count(node()) = 0"/> + + <xsl:element name="{$cellgi}"> + <xsl:if test="@morerows"> + <xsl:attribute name="rowspan"> + <xsl:value-of select="@morerows+1"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@namest"> + <xsl:attribute name="colspan"> + <xsl:call-template name="calculate.colspan"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@align"> + <xsl:attribute name="align"> + <xsl:value-of select="@align"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@char"> + <xsl:attribute name="char"> + <xsl:value-of select="@char"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@charoff"> + <xsl:attribute name="charoff"> + <xsl:value-of select="@charoff"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="@valign"> + <xsl:attribute name="valign"> + <xsl:value-of select="@valign"/> + </xsl:attribute> + </xsl:if> + + <xsl:choose> + <xsl:when test="$empty.cell"> + <xsl:text> </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> + </xsl:element> + </xsl:template> + + <xsl:template name="generate.colgroup"> + <xsl:param name="cols" select="1"/> + <xsl:param name="count" select="1"/> + <xsl:choose> + <xsl:when test="$count>$cols"></xsl:when> + <xsl:otherwise> + <xsl:call-template name="generate.col"> + <xsl:with-param name="countcol" select="$count"/> + </xsl:call-template> + <xsl:call-template name="generate.colgroup"> + <xsl:with-param name="cols" select="$cols"/> + <xsl:with-param name="count" select="$count+1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template name="generate.col"> + <xsl:param name="countcol">1</xsl:param> + <xsl:param name="colspecs" select="./colspec"/> + <xsl:param name="count">1</xsl:param> + <xsl:param name="colnum">1</xsl:param> + + <xsl:choose> + <xsl:when test="$count>count($colspecs)"> + <col/> + </xsl:when> + <xsl:otherwise> + <xsl:variable name="colspec" select="$colspecs[$count=position()]"/> + <xsl:variable name="colspec.colnum"> + <xsl:choose> + <xsl:when test="$colspec/@colnum"> + <xsl:value-of select="$colspec/@colnum"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$colnum"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:choose> + <xsl:when test="$colspec.colnum=$countcol"> + <col> + <xsl:if test="$colspec/@align"> + <xsl:attribute name="align"> + <xsl:value-of select="$colspec/@align"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="$colspec/@char"> + <xsl:attribute name="char"> + <xsl:value-of select="$colspec/@char"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="$colspec/@charoff"> + <xsl:attribute name="charoff"> + <xsl:value-of select="$colspec/@charoff"/> + </xsl:attribute> + </xsl:if> + </col> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="generate.col"> + <xsl:with-param name="countcol" select="$countcol"/> + <xsl:with-param name="colspecs" select="$colspecs"/> + <xsl:with-param name="count" select="$count+1"/> + <xsl:with-param name="colnum"> + <xsl:choose> + <xsl:when test="$colspec/@colnum"> + <xsl:value-of select="$colspec/@colnum + 1"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$colnum + 1"/> + </xsl:otherwise> + </xsl:choose> + </xsl:with-param> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + + </xsl:template> + + <xsl:template name="colspec.colnum"> + <!-- when this macro is called, the current context must be an entry --> + <xsl:param name="colname"></xsl:param> + <!-- .. = row, ../.. = thead|tbody, ../../.. = tgroup --> + <xsl:param name="colspecs" select="../../../../tgroup/colspec"/> + <xsl:param name="count">1</xsl:param> + <xsl:param name="colnum">1</xsl:param> + <xsl:choose> + <xsl:when test="$count>count($colspecs)"></xsl:when> + <xsl:otherwise> + <xsl:variable name="colspec" select="$colspecs[$count=position()]"/> + <!-- + <xsl:value-of select="$count"/>: + <xsl:value-of select="$colspec/@colname"/>= + <xsl:value-of select="$colnum"/> + --> + <xsl:choose> + <xsl:when test="$colspec/@colname=$colname"> + <xsl:choose> + <xsl:when test="$colspec/@colnum"> + <xsl:value-of select="$colspec/@colnum"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$colnum"/> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="colspec.colnum"> + <xsl:with-param name="colname" select="$colname"/> + <xsl:with-param name="colspecs" select="$colspecs"/> + <xsl:with-param name="count" select="$count+1"/> + <xsl:with-param name="colnum"> + <xsl:choose> + <xsl:when test="$colspec/@colnum"> + <xsl:value-of select="$colspec/@colnum + 1"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$colnum + 1"/> + </xsl:otherwise> + </xsl:choose> + </xsl:with-param> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template name="colspec.colwidth"> + <!-- when this macro is called, the current context must be an entry --> + <xsl:param name="colname"></xsl:param> + <!-- .. = row, ../.. = thead|tbody, ../../.. = tgroup --> + <xsl:param name="colspecs" select="../../../../tgroup/colspec"/> + <xsl:param name="count">1</xsl:param> + <xsl:choose> + <xsl:when test="$count>count($colspecs)"></xsl:when> + <xsl:otherwise> + <xsl:variable name="colspec" select="$colspecs[$count=position()]"/> + <xsl:choose> + <xsl:when test="$colspec/@colname=$colname"> + <xsl:value-of select="$colspec/@colwidth"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="colspec.colwidth"> + <xsl:with-param name="colname" select="$colname"/> + <xsl:with-param name="colspecs" select="$colspecs"/> + <xsl:with-param name="count" select="$count+1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + + <xsl:template name="calculate.colspan"> + <xsl:param name="namest" select="@namest"/> + <xsl:param name="nameend" select="@nameend"/> + <xsl:variable name="scol"> + <xsl:call-template name="colspec.colnum"> + <xsl:with-param name="colname" select="$namest"/> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="ecol"> + <xsl:call-template name="colspec.colnum"> + <xsl:with-param name="colname" select="$nameend"/> + </xsl:call-template> + </xsl:variable> + <xsl:value-of select="$ecol - $scol + 1"/> + </xsl:template> + +</xsl:stylesheet> |