summaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/xhtml/.svn
diff options
context:
space:
mode:
Diffstat (limited to 'stylesheets/lfs-xsl/xhtml/.svn')
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/entries145
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/format1
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-admon.xsl.svn-base5
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-index.xsl.svn-base5
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-legalnotice.xsl.svn-base5
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-mixed.xsl.svn-base5
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-navigational.xsl.svn-base5
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-sections.xsl.svn-base5
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-titles.xsl.svn-base5
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-toc.xsl.svn-base5
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-xref.xsl.svn-base5
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-admon.xsl.svn-base59
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-index.xsl.svn-base268
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-legalnotice.xsl.svn-base82
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-mixed.xsl.svn-base312
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-navigational.xsl.svn-base364
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-sections.xsl.svn-base165
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-titles.xsl.svn-base197
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-toc.xsl.svn-base194
-rw-r--r--stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-xref.xsl.svn-base142
20 files changed, 1974 insertions, 0 deletions
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/entries b/stylesheets/lfs-xsl/xhtml/.svn/entries
new file mode 100644
index 0000000..4a1f4c9
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/entries
@@ -0,0 +1,145 @@
+8
+
+dir
+8545
+svn://svn.linuxfromscratch.org/LFS/trunk/BOOK/stylesheets/lfs-xsl/xhtml
+svn://svn.linuxfromscratch.org/LFS
+
+
+
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+
+
+svn:special svn:externals svn:needs-lock
+
+
+
+
+
+
+
+
+
+
+
+4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
+
+lfs-navigational.xsl
+file
+
+
+
+
+2008-05-23T20:00:04.000000Z
+834b169e24ed3311c36995340349b0f4
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+has-props
+
+lfs-admon.xsl
+file
+
+
+
+
+2008-05-23T20:00:04.000000Z
+db9f71eff8b3b9e823a54cdc023b47ec
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+has-props
+
+lfs-titles.xsl
+file
+
+
+
+
+2008-05-23T20:00:04.000000Z
+1781f39172f4ad6d2b51ac97ea5f85ce
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+has-props
+
+lfs-xref.xsl
+file
+
+
+
+
+2008-05-23T20:00:04.000000Z
+ca06f97afcd599f4c8d32ba4073841c8
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+has-props
+
+lfs-toc.xsl
+file
+
+
+
+
+2008-05-23T20:00:04.000000Z
+767e55236109bdb519a14351783e793c
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+has-props
+
+lfs-legalnotice.xsl
+file
+
+
+
+
+2008-05-23T20:00:04.000000Z
+a164ee101cc093155c5ca038363aac8c
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+has-props
+
+lfs-mixed.xsl
+file
+
+
+
+
+2008-05-23T20:00:04.000000Z
+f6a9282da1709fd0a94ea22268762beb
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+has-props
+
+lfs-index.xsl
+file
+
+
+
+
+2008-05-23T20:00:04.000000Z
+18b3bcf799e77f8321061cf4b01dba94
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+has-props
+
+lfs-sections.xsl
+file
+
+
+
+
+2008-05-23T20:00:04.000000Z
+a3bda9f2def40f3f59b27c4b825cf600
+2007-07-05T21:18:33.287533Z
+8196
+manuel
+has-props
+
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/format b/stylesheets/lfs-xsl/xhtml/.svn/format
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/format
@@ -0,0 +1 @@
+8
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-admon.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-admon.xsl.svn-base
new file mode 100644
index 0000000..e7130f8
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-admon.xsl.svn-base
@@ -0,0 +1,5 @@
+K 12
+svn:keywords
+V 23
+Author Date Revision Id
+END
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-index.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-index.xsl.svn-base
new file mode 100644
index 0000000..e7130f8
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-index.xsl.svn-base
@@ -0,0 +1,5 @@
+K 12
+svn:keywords
+V 23
+Author Date Revision Id
+END
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-legalnotice.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-legalnotice.xsl.svn-base
new file mode 100644
index 0000000..e7130f8
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-legalnotice.xsl.svn-base
@@ -0,0 +1,5 @@
+K 12
+svn:keywords
+V 23
+Author Date Revision Id
+END
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-mixed.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-mixed.xsl.svn-base
new file mode 100644
index 0000000..e7130f8
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-mixed.xsl.svn-base
@@ -0,0 +1,5 @@
+K 12
+svn:keywords
+V 23
+Author Date Revision Id
+END
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-navigational.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-navigational.xsl.svn-base
new file mode 100644
index 0000000..e7130f8
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-navigational.xsl.svn-base
@@ -0,0 +1,5 @@
+K 12
+svn:keywords
+V 23
+Author Date Revision Id
+END
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-sections.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-sections.xsl.svn-base
new file mode 100644
index 0000000..e7130f8
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-sections.xsl.svn-base
@@ -0,0 +1,5 @@
+K 12
+svn:keywords
+V 23
+Author Date Revision Id
+END
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-titles.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-titles.xsl.svn-base
new file mode 100644
index 0000000..e7130f8
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-titles.xsl.svn-base
@@ -0,0 +1,5 @@
+K 12
+svn:keywords
+V 23
+Author Date Revision Id
+END
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-toc.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-toc.xsl.svn-base
new file mode 100644
index 0000000..e7130f8
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-toc.xsl.svn-base
@@ -0,0 +1,5 @@
+K 12
+svn:keywords
+V 23
+Author Date Revision Id
+END
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-xref.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-xref.xsl.svn-base
new file mode 100644
index 0000000..e7130f8
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/prop-base/lfs-xref.xsl.svn-base
@@ -0,0 +1,5 @@
+K 12
+svn:keywords
+V 23
+Author Date Revision Id
+END
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-admon.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-admon.xsl.svn-base
new file mode 100644
index 0000000..1cdf29c
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-admon.xsl.svn-base
@@ -0,0 +1,59 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <!-- This stylesheet controls how admonitions are displayed -->
+
+ <!-- Use graphics in admonitions? 1 = yes, 0 = no -->
+ <xsl:param name="admon.graphics" select="1"/>
+
+ <!-- Relative path to images directory. We set here relative path
+ from sub-dirs HTML files. The path from top-level HTML files (index.html,
+ partX.html, etc) MUST be fixed via a sed in the Makefile. -->
+ <xsl:param name="admon.graphics.path">../images/</xsl:param>
+
+ <!-- The images files extension -->
+ <xsl:param name="admon.graphics.extension" select="'.png'"/>
+
+ <!-- Changing the output tagging:
+ Removed $admon.style support
+ Hardcoded $admon.textlabel feature
+ Changed the output format from table to nested divs -->
+ <!-- The original template is in {docbook-xsl}/xhtml/admon.xsl -->
+ <xsl:template name="graphical.admonition">
+ <xsl:variable name="admon.type">
+ <xsl:choose>
+ <xsl:when test="local-name(.)='note'">Note</xsl:when>
+ <xsl:when test="local-name(.)='warning'">Warning</xsl:when>
+ <xsl:when test="local-name(.)='caution'">Caution</xsl:when>
+ <xsl:when test="local-name(.)='tip'">Tip</xsl:when>
+ <xsl:when test="local-name(.)='important'">Important</xsl:when>
+ <xsl:otherwise>Note</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="alt">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="$admon.type"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <div class="admon {name(.)}">
+ <img alt="[{$alt}]">
+ <xsl:attribute name="src">
+ <xsl:call-template name="admon.graphic"/>
+ </xsl:attribute>
+ </img>
+ <h3>
+ <xsl:apply-templates select="." mode="object.title.markup"/>
+ </h3>
+ <xsl:apply-templates/>
+ </div>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-index.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-index.xsl.svn-base
new file mode 100644
index 0000000..a5a6b5d
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-index.xsl.svn-base
@@ -0,0 +1,268 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<!DOCTYPE xsl:stylesheet [
+<!ENTITY lowercase "'Aa&#192;&#224;&#193;&#225;&#194;&#226;&#195;&#227;&#196;&#228;&#197;&#229;&#256;&#257;&#258;&#259;&#260;&#261;&#461;&#462;&#478;&#479;&#480;&#481;&#506;&#507;&#512;&#513;&#514;&#515;&#550;&#551;&#7680;&#7681;&#7834;&#7840;&#7841;&#7842;&#7843;&#7844;&#7845;&#7846;&#7847;&#7848;&#7849;&#7850;&#7851;&#7852;&#7853;&#7854;&#7855;&#7856;&#7857;&#7858;&#7859;&#7860;&#7861;&#7862;&#7863;Bb&#384;&#385;&#595;&#386;&#387;&#7682;&#7683;&#7684;&#7685;&#7686;&#7687;Cc&#199;&#231;&#262;&#263;&#264;&#265;&#266;&#267;&#268;&#269;&#391;&#392;&#597;&#7688;&#7689;Dd&#270;&#271;&#272;&#273;&#394;&#599;&#395;&#396;&#453;&#498;&#545;&#598;&#7690;&#7691;&#7692;&#7693;&#7694;&#7695;&#7696;&#7697;&#7698;&#7699;Ee&#200;&#232;&#201;&#233;&#202;&#234;&#203;&#235;&#274;&#275;&#276;&#277;&#278;&#279;&#280;&#281;&#282;&#283;&#516;&#517;&#518;&#519;&#552;&#553;&#7700;&#7701;&#7702;&#7703;&#7704;&#7705;&#7706;&#7707;&#7708;&#7709;&#7864;&#7865;&#7866;&#7867;&#7868;&#7869;&#7870;&#7871;&#7872;&#7873;&#7874;&#7875;&#7876;&#7877;&#7878;&#7879;Ff&#401;&#402;&#7710;&#7711;Gg&#284;&#285;&#286;&#287;&#288;&#289;&#290;&#291;&#403;&#608;&#484;&#485;&#486;&#487;&#500;&#501;&#7712;&#7713;Hh&#292;&#293;&#294;&#295;&#542;&#543;&#614;&#7714;&#7715;&#7716;&#7717;&#7718;&#7719;&#7720;&#7721;&#7722;&#7723;&#7830;Ii&#204;&#236;&#205;&#237;&#206;&#238;&#207;&#239;&#296;&#297;&#298;&#299;&#300;&#301;&#302;&#303;&#304;&#407;&#616;&#463;&#464;&#520;&#521;&#522;&#523;&#7724;&#7725;&#7726;&#7727;&#7880;&#7881;&#7882;&#7883;Jj&#308;&#309;&#496;&#669;Kk&#310;&#311;&#408;&#409;&#488;&#489;&#7728;&#7729;&#7730;&#7731;&#7732;&#7733;Ll&#313;&#314;&#315;&#316;&#317;&#318;&#319;&#320;&#321;&#322;&#410;&#456;&#564;&#619;&#620;&#621;&#7734;&#7735;&#7736;&#7737;&#7738;&#7739;&#7740;&#7741;Mm&#625;&#7742;&#7743;&#7744;&#7745;&#7746;&#7747;Nn&#209;&#241;&#323;&#324;&#325;&#326;&#327;&#328;&#413;&#626;&#414;&#544;&#459;&#504;&#505;&#565;&#627;&#7748;&#7749;&#7750;&#7751;&#7752;&#7753;&#7754;&#7755;Oo&#210;&#242;&#211;&#243;&#212;&#244;&#213;&#245;&#214;&#246;&#216;&#248;&#332;&#333;&#334;&#335;&#336;&#337;&#415;&#416;&#417;&#465;&#466;&#490;&#491;&#492;&#493;&#510;&#511;&#524;&#525;&#526;&#527;&#554;&#555;&#556;&#557;&#558;&#559;&#560;&#561;&#7756;&#7757;&#7758;&#7759;&#7760;&#7761;&#7762;&#7763;&#7884;&#7885;&#7886;&#7887;&#7888;&#7889;&#7890;&#7891;&#7892;&#7893;&#7894;&#7895;&#7896;&#7897;&#7898;&#7899;&#7900;&#7901;&#7902;&#7903;&#7904;&#7905;&#7906;&#7907;Pp&#420;&#421;&#7764;&#7765;&#7766;&#7767;Qq&#672;Rr&#340;&#341;&#342;&#343;&#344;&#345;&#528;&#529;&#530;&#531;&#636;&#637;&#638;&#7768;&#7769;&#7770;&#7771;&#7772;&#7773;&#7774;&#7775;Ss&#346;&#347;&#348;&#349;&#350;&#351;&#352;&#353;&#536;&#537;&#642;&#7776;&#7777;&#7778;&#7779;&#7780;&#7781;&#7782;&#7783;&#7784;&#7785;Tt&#354;&#355;&#356;&#357;&#358;&#359;&#427;&#428;&#429;&#430;&#648;&#538;&#539;&#566;&#7786;&#7787;&#7788;&#7789;&#7790;&#7791;&#7792;&#7793;&#7831;Uu&#217;&#249;&#218;&#250;&#219;&#251;&#220;&#252;&#360;&#361;&#362;&#363;&#364;&#365;&#366;&#367;&#368;&#369;&#370;&#371;&#431;&#432;&#467;&#468;&#469;&#470;&#471;&#472;&#473;&#474;&#475;&#476;&#532;&#533;&#534;&#535;&#7794;&#7795;&#7796;&#7797;&#7798;&#7799;&#7800;&#7801;&#7802;&#7803;&#7908;&#7909;&#7910;&#7911;&#7912;&#7913;&#7914;&#7915;&#7916;&#7917;&#7918;&#7919;&#7920;&#7921;Vv&#434;&#651;&#7804;&#7805;&#7806;&#7807;Ww&#372;&#373;&#7808;&#7809;&#7810;&#7811;&#7812;&#7813;&#7814;&#7815;&#7816;&#7817;&#7832;Xx&#7818;&#7819;&#7820;&#7821;Yy&#221;&#253;&#255;&#376;&#374;&#375;&#435;&#436;&#562;&#563;&#7822;&#7823;&#7833;&#7922;&#7923;&#7924;&#7925;&#7926;&#7927;&#7928;&#7929;Zz&#377;&#378;&#379;&#380;&#381;&#382;&#437;&#438;&#548;&#549;&#656;&#657;&#7824;&#7825;&#7826;&#7827;&#7828;&#7829;&#7829;'">
+<!ENTITY uppercase "'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJKKKKKKKKKKKKKKLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOPPPPPPPPQQQRRRRRRRRRRRRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTTUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUVVVVVVVVWWWWWWWWWWWWWWWXXXXXXYYYYYYYYYYYYYYYYYYYYYYYZZZZZZZZZZZZZZZZZZZZZ'">
+<!ENTITY primary 'normalize-space(concat(primary/@sortas, primary[not(@sortas) or @sortas = ""]))'>
+<!ENTITY secondary 'normalize-space(concat(secondary/@sortas, secondary[not(@sortas) or @sortas = ""]))'>
+<!ENTITY scope "count(ancestor::node()|$scope) = count(ancestor::node())">
+<!ENTITY section "(ancestor-or-self::set |ancestor-or-self::book |ancestor-or-self::part |ancestor-or-self::reference |ancestor-or-self::partintro |ancestor-or-self::chapter |ancestor-or-self::appendix |ancestor-or-self::preface |ancestor-or-self::article |ancestor-or-self::section |ancestor-or-self::sect1 |ancestor-or-self::sect2 |ancestor-or-self::sect3 |ancestor-or-self::sect4 |ancestor-or-self::sect5 |ancestor-or-self::refentry |ancestor-or-self::refsect1 |ancestor-or-self::refsect2 |ancestor-or-self::refsect3 |ancestor-or-self::simplesect |ancestor-or-self::bibliography |ancestor-or-self::glossary |ancestor-or-self::index |ancestor-or-self::webpage)[last()]">
+<!ENTITY section.id "generate-id(&section;)">
+<!ENTITY sep '" "'>
+]>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <!-- This stylesheet controls how the Index is generated.
+ Due how they are created, the original XHTML stylesheets don't make
+ use of the entities from {docbook-xsl}/common/entities.ent.
+ We add the relevant ones in the DOCTYPE to have more readable templates.
+ Also, we remove support for @role and @type based Index due that it is
+ broken when used with @zone based cross-references. -->
+
+ <!-- The file name of the Index page.
+ There is no upstream template with match="index", only a global
+ match="*", thus the next template is enought to force the Index
+ filename. -->
+ <xsl:template match="index" mode="recursive-chunk-filename">
+ <xsl:text>longindex.html</xsl:text>
+ </xsl:template>
+
+ <!-- The Index title in the longindex.html page:
+ Removed a lot of code not useful for us.
+ Forced h1 title size. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="index.titlepage">
+ <h1 class="index">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="$index-title"/>
+ </xsl:call-template>
+ </h1>
+ </xsl:template>
+
+ <!--Divisions:
+ Translate alphabetical divisons titles to by-type titles.
+ Added gentext support to divisions titles.
+ Using h2 for divisions titles.
+ Changed output from dl format to ul format. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/autoidx.xsl -->
+ <xsl:template match="indexterm" mode="index-div-basic">
+ <xsl:param name="scope" select="."/>
+ <xsl:variable name="key" select="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
+ <xsl:variable name="divtitle" select="translate($key, &lowercase;, &uppercase;)"/>
+ <!-- Make sure that we don't generate a div if there are no terms in scope -->
+ <xsl:if test="key('letter', $key)[&scope;] [count(.|key('primary', &primary;)[&scope;][1]) = 1]">
+ <xsl:if test="contains(concat(&lowercase;, &uppercase;), $key)">
+ <h2>
+ <xsl:choose>
+ <xsl:when test="$divtitle = 'A'">
+ <a id="package-index" name="package-index"/>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Packages</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$divtitle = 'B'">
+ <a id="program-index" name="program-index"/>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Programs</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$divtitle = 'C'">
+ <a id="library-index" name="library-index"/>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Libraries</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$divtitle = 'D'">
+ <xsl:choose>
+ <xsl:when test="$book-type = 'blfs'">
+ <a id="kernel-config-index" name="kernel-config-index"/>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Kernel Configuration</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <a id="scripts-index" name="scripts-index"/>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Scripts</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="$divtitle = 'E'">
+ <xsl:choose>
+ <xsl:when test="$book-type = 'blfs'">
+ <a id="config-file-index" name="config-file-index"/>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Configuration Files</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <a id="other-index" name="other-index"/>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Others</xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="$divtitle = 'F'">
+ <a id="bootscript-index" name="bootscript-index"/>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Bootscripts</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$divtitle = 'G'">
+ <a id="other-index" name="other-index"/>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Others</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$divtitle"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </h2>
+ </xsl:if>
+ <ul>
+ <xsl:apply-templates select="key('letter', $key)[&scope;] [count(.|key('primary', &primary;)[&scope;][1])=1]"
+ mode="index-primary">
+ <xsl:with-param name="scope" select="$scope"/>
+ <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
+ </xsl:apply-templates>
+ </ul>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- Dropping $term.separator and $number.separator from here.
+ We add our customized ones in the output flow.
+ As all our indexterm have @zone attributes, removed a lot of
+ unused code. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/autoidx.xsl -->
+ <xsl:template match="indexterm" mode="reference">
+ <xsl:param name="scope" select="."/>
+ <xsl:call-template name="reference">
+ <xsl:with-param name="zones" select="normalize-space(@zone)"/>
+ <xsl:with-param name="scope" select="$scope"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <!-- Primary items:
+ Changed the output format from dl to ul.
+ Placed the term and separator into strong tags.
+ Placed the target links into a div.
+ Removed code for unused see and sealso childs. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/autoidx.xsl -->
+ <xsl:template match="indexterm" mode="index-primary">
+ <xsl:param name="scope" select="."/>
+ <xsl:variable name="key" select="&primary;"/>
+ <xsl:variable name="refs" select="key('primary', $key)[&scope;]"/>
+ <li>
+ <strong class="item">
+ <xsl:value-of select="primary"/>
+ <xsl:text>: </xsl:text>
+ </strong>
+ <span class='indexref'>
+ <xsl:for-each select="$refs[generate-id() = generate-id(key('primary-section',concat($key, &sep;, &section.id;))[&scope;][1])]">
+ <xsl:apply-templates select="." mode="reference">
+ <xsl:with-param name="scope" select="$scope"/>
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </span>
+ <xsl:if test="$refs/secondary">
+ <ul>
+ <xsl:apply-templates select="$refs[secondary and count(.|key('secondary', concat($key, &sep;, &secondary;))[&scope;][1]) = 1]"
+ mode="index-secondary">
+ <xsl:with-param name="scope" select="$scope"/>
+ <xsl:sort select="translate(&secondary;, &lowercase;, &uppercase;)"/>
+ </xsl:apply-templates>
+ </ul>
+ </xsl:if>
+ </li>
+ </xsl:template>
+
+ <!-- Secondary items:
+ Changed the output format from dl to ul.
+ Placed the term and separator into strong tags.
+ Placed the target links into a div.
+ Removed code for unused tertiary, see, and sealso childs. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/autoidx.xsl -->
+ <xsl:template match="indexterm" mode="index-secondary">
+ <xsl:param name="scope" select="."/>
+ <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
+ <xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/>
+ <li>
+ <strong class="secitem">
+ <xsl:value-of select="secondary"/>
+ <xsl:text>: </xsl:text>
+ </strong>
+ <span class='indexref'>
+ <xsl:for-each select="$refs[generate-id() = generate-id(key('secondary-section', concat($key, &sep;, &section.id;))[&scope;][1])]">
+ <xsl:apply-templates select="." mode="reference">
+ <xsl:with-param name="scope" select="$scope"/>
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </span>
+ </li>
+ </xsl:template>
+
+ <!-- The target links:
+ Changed links separator.
+ On the second @zone link, we use a fixed string for the text
+ with gentext support.
+ Assume that there is no more than 2 @zone in a indexterm.
+ Use href.target.uri named template to resolve the links. It is faster
+ than the default href.target named template. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/autoidx.xsl -->
+ <xsl:template name="reference">
+ <xsl:param name="scope" select="."/>
+ <xsl:param name="zones"/>
+ <xsl:choose>
+ <xsl:when test="contains($zones, ' ')">
+ <xsl:variable name="zone" select="substring-before($zones, ' ')"/>
+ <xsl:variable name="zone2" select="substring-after($zones, ' ')"/>
+ <xsl:variable name="target" select="key('sections', $zone)[&scope;]"/>
+ <xsl:variable name="target2" select="key('sections', $zone2)[&scope;]"/>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target.uri">
+ <xsl:with-param name="object" select="$target[1]"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:apply-templates select="$target[1]" mode="index-title-content"/>
+ </a>
+ <xsl:text> -- </xsl:text>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target.uri">
+ <xsl:with-param name="object" select="$target2[1]"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">description</xsl:with-param>
+ </xsl:call-template>
+ </a>
+ <br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable name="zone" select="$zones"/>
+ <xsl:variable name="target" select="key('sections', $zone)[&scope;]"/>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target.uri">
+ <xsl:with-param name="object" select="$target[1]"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:apply-templates select="$target[1]" mode="index-title-content"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-legalnotice.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-legalnotice.xsl.svn-base
new file mode 100644
index 0000000..f878d49
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-legalnotice.xsl.svn-base
@@ -0,0 +1,82 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <!-- This stylesheet controls how legalnotice page is created -->
+
+ <!-- Generating the legalnotice page:
+ We are forcing separate legalnotice page generation.
+ Removed the default link to legalnotice page. We want it in Copyright.
+ Added footer navigational link to Home. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.xsl -->
+ <xsl:template match="legalnotice" mode="titlepage.mode">
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+ <xsl:variable name="filename" select="concat($base.dir, 'legalnotice.html')"/>
+ <xsl:call-template name="write.chunk">
+ <xsl:with-param name="filename" select="$filename"/>
+ <xsl:with-param name="quiet" select="$chunk.quietly"/>
+ <xsl:with-param name="content">
+ <html>
+ <xsl:call-template name="html.head"/>
+ <body>
+ <xsl:call-template name="body.attributes"/>
+ <div class="{local-name(.)}">
+ <xsl:apply-templates mode="titlepage.mode"/>
+ </div>
+ <div class="navfooter">
+ <ul class="footerlinks">
+ <li class="home">
+ <a accesskey="h" href="index.html">
+ <xsl:attribute name="title">
+ <xsl:value-of select="/book/bookinfo/title"/>
+ <xsl:text> - </xsl:text>
+ <xsl:value-of select="/book/bookinfo/subtitle"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'home'"/>
+ </xsl:call-template>
+ </a>
+ </li>
+ </ul>
+ </div>
+ </body>
+ </html>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:template>
+
+ <!-- Making the legalnotice link:
+ We make the "Copyright" word a link to legalnotice page. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.xsl -->
+ <xsl:template match="copyright" mode="titlepage.mode">
+ <p class="{name(.)}">
+ <a href="legalnotice.html">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'Copyright'"/>
+ </xsl:call-template>
+ </a>
+ <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:call-template name="copyright.years">
+ <xsl:with-param name="years" select="year"/>
+ <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
+ <xsl:with-param name="single.year.ranges" select="$make.single.year.ranges"/>
+ </xsl:call-template>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:apply-templates select="holder" mode="titlepage.mode"/>
+ </p>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-mixed.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-mixed.xsl.svn-base
new file mode 100644
index 0000000..c7b9dcf
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-mixed.xsl.svn-base
@@ -0,0 +1,312 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <!-- This stylesheet contains misc templates for output formating.
+ This file is for that templates that don't fit in other files
+ and that not afect the chunk algorithm. -->
+
+ <!-- Individual elements templates -->
+
+ <!-- para:
+ Added a choose to skip empty "Home page" in packages.xml.
+ Added an if for HLFS features. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/block.xsl -->
+ <xsl:template match="para">
+ <xsl:choose>
+ <xsl:when test="child::ulink[@url=' ']"/>
+ <xsl:otherwise>
+ <xsl:call-template name="paragraph">
+ <xsl:with-param name="class">
+ <xsl:if test="@role">
+ <xsl:if test="$book-type = 'hlfs'">
+ <xsl:if test="contains($hlfs-features,concat(',',@role,','))">
+ <xsl:text>feature-</xsl:text>
+ </xsl:if>
+ </xsl:if>
+ <xsl:value-of select="@role"/>
+ </xsl:if>
+ </xsl:with-param>
+ <xsl:with-param name="content">
+ <xsl:if test="position() = 1 and parent::listitem">
+ <xsl:call-template name="anchor">
+ <xsl:with-param name="node" select="parent::listitem"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:call-template name="anchor"/>
+ <xsl:apply-templates/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- screen:
+ Changed class attribute asignament to fit our look needs.
+ Removed unused line numbering support. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/verbatim.xsl
+ It match also programlisting and synopsis. The code for that tags
+ is unchanged. -->
+ <xsl:template match="screen">
+ <pre>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="@role and not(@role = 'nodump')">
+ <xsl:if test="$book-type = 'hlfs'">
+ <xsl:if test="contains($hlfs-features,concat(',',@role,','))">
+ <xsl:text>feature-</xsl:text>
+ </xsl:if>
+ </xsl:if>
+ <xsl:value-of select="@role"/>
+ </xsl:when>
+ <xsl:when test="child::* = userinput">userinput</xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="name(.)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:apply-templates/>
+ </pre>
+ </xsl:template>
+
+ <!-- userinput:
+ Using a customized output when inside screen.
+ In other cases, use the original template. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/inline.xsl -->
+ <xsl:template match="userinput">
+ <xsl:choose>
+ <xsl:when test="ancestor::screen">
+ <kbd class="command">
+ <xsl:apply-templates/>
+ </kbd>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-imports/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- itemizadlist:
+ @compact is not allowed in XHTML 1.0 Strict DTD. Changing it
+ to @class. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/lists.xsl -->
+ <xsl:template match="itemizedlist">
+ <div>
+ <xsl:apply-templates select="." mode="class.attribute"/>
+ <xsl:call-template name="anchor"/>
+ <xsl:if test="title">
+ <xsl:call-template name="formal.object.heading"/>
+ </xsl:if>
+ <xsl:apply-templates select="*[not(self::listitem or self::title
+ or self::titleabbrev)]
+ |comment()[not(preceding-sibling::listitem)]
+ |processing-instruction()[not(preceding-sibling::listitem)]"/>
+ <ul>
+ <xsl:if test="@spacing='compact'">
+ <xsl:attribute name="class">
+ <xsl:value-of select="@spacing"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates select="listitem |comment()[preceding-sibling::listitem]
+ |processing-instruction()[preceding-sibling::listitem]"/>
+ </ul>
+ </div>
+ </xsl:template>
+
+ <!-- orderedlist:
+ @start, @type, and @compact sre not allowed in XHTML 1.0 Strict DTD.
+ @start and @type can be replaced by CSS code.
+ Changing @compact to @class. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/lists.xsl -->
+ <xsl:template match="orderedlist">
+ <div>
+ <xsl:apply-templates select="." mode="class.attribute"/>
+ <xsl:call-template name="anchor"/>
+ <xsl:if test="title">
+ <xsl:call-template name="formal.object.heading"/>
+ </xsl:if>
+ <xsl:apply-templates select="*[not(self::listitem or self::title
+ or self::titleabbrev)]
+ |comment()[not(preceding-sibling::listitem)]
+ |processing-instruction()[not(preceding-sibling::listitem)]"/>
+ <ol>
+ <xsl:if test="@spacing='compact'">
+ <xsl:attribute name="class">
+ <xsl:value-of select="@spacing"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates select="listitem |comment()[preceding-sibling::listitem]
+ |processing-instruction()[preceding-sibling::listitem]"/>
+ </ol>
+ </div>
+ </xsl:template>
+
+ <!-- seg in segementedlist:
+ Added a span around seg text to can match it with CSS code. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/lists.xsl -->
+ <xsl:template match="seg">
+ <xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/>
+ <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 -->
+ <div class="seg">
+ <strong class="segtitle">
+ <xsl:apply-templates select="$segtitles[$segnum=position()]"
+ mode="segtitle-in-seg"/>
+ <xsl:text>: </xsl:text>
+ </strong>
+ <span class="segbody">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:apply-templates/>
+ </span>
+ </div>
+ </xsl:template>
+
+ <!-- variablelist:
+ If it have a role attribute, wrap the default output into a div with
+ a class attribute matching that role attribute.
+ Apply the original template in all cases. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/lists.xsl -->
+ <xsl:template match="variablelist">
+ <xsl:choose>
+ <xsl:when test="@role">
+ <div class="{@role}">
+ <xsl:apply-imports/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-imports/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- para/simplelist:
+ Self-made template. Add a line break and process the childs.
+ If @type is specified, the original templates should be used,
+ but not tested. -->
+ <xsl:template match="para/simplelist">
+ <br/>
+ <xsl:apply-templates mode="condensed"/>
+ </xsl:template>
+
+ <!-- member:
+ Self-made template to process it and add a line break. -->
+ <xsl:template match="member" mode="condensed">
+ <xsl:call-template name="anchor"/>
+ <xsl:call-template name="simple.xlink">
+ <xsl:with-param name="content">
+ <xsl:apply-templates/>
+ </xsl:with-param>
+ </xsl:call-template>
+ <br/>
+ </xsl:template>
+
+
+ <!-- Named formating templates -->
+
+ <!-- Body attributes:
+ Add to the body XHTML output tag a class attribute with the book type
+ and a id atribute with the book type and version. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
+ <xsl:template name="body.attributes">
+ <xsl:attribute name="class">
+ <xsl:value-of select="$book-type"/>
+ </xsl:attribute>
+ <xsl:attribute name="id">
+ <xsl:value-of select="$book-type"/>
+ <xsl:text>-</xsl:text>
+ <xsl:value-of select="substring-after(/book/bookinfo/subtitle, ' ')"/>
+ </xsl:attribute>
+ </xsl:template>
+
+ <!-- Revision History -->
+
+ <!-- revhistory mode titlepage.mode:
+ Removed hardcoded style attributes.
+ Removed support for separate revhistory file. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.xsl -->
+ <xsl:template match="revhistory" mode="titlepage.mode">
+ <xsl:variable name="numcols">
+ <xsl:choose>
+ <xsl:when test="//authorinitials">4</xsl:when>
+ <xsl:otherwise>3</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">RevHistory</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="contents">
+ <table summary="{$title}" class="{name(.)}">
+ <tr>
+ <th colspan="{$numcols}">
+ <b>
+ <xsl:value-of select="$title"/>
+ </b>
+ </th>
+ </tr>
+ <xsl:apply-templates mode="titlepage.mode">
+ <xsl:with-param name="numcols" select="$numcols"/>
+ </xsl:apply-templates>
+ </table>
+ </xsl:variable>
+ <xsl:copy-of select="$contents"/>
+ </xsl:template>
+
+ <!-- revhistory/revision mode titlepage.mode:
+ Removed hardcoded style attributes. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.xsl -->
+ <xsl:template match="revhistory/revision" mode="titlepage.mode">
+ <xsl:param name="numcols" select="'3'"/>
+ <xsl:variable name="revnumber" select="revnumber"/>
+ <xsl:variable name="revdate" select="date"/>
+ <xsl:variable name="revauthor" select="authorinitials|author"/>
+ <xsl:variable name="revremark" select="revremark|revdescription"/>
+ <tr>
+ <td>
+ <xsl:if test="$revnumber">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key" select="'Revision'"/>
+ </xsl:call-template>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
+ </xsl:if>
+ </td>
+ <td>
+ <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
+ </td>
+ <xsl:choose>
+ <xsl:when test="$revauthor">
+ <td>
+ <xsl:for-each select="$revauthor">
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
+ <xsl:if test="position() != last()">
+ <xsl:text>, </xsl:text>
+ </xsl:if>
+ </xsl:for-each>
+ </td>
+ </xsl:when>
+ <xsl:when test="$numcols &gt; 3">
+ <td>&#160;</td>
+ </xsl:when>
+ <xsl:otherwise/>
+ </xsl:choose>
+ <td>
+ <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-navigational.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-navigational.xsl.svn-base
new file mode 100644
index 0000000..a892396
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-navigational.xsl.svn-base
@@ -0,0 +1,364 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <!-- This stylesheet controls how page header and navigational links
+ are generated. -->
+
+ <!-- html.head:
+ Drop all navigational links from inside head xhtml output. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/chunk-common.xsl -->
+ <xsl:template name="html.head">
+ <head>
+ <xsl:call-template name="system.head.content"/>
+ <xsl:call-template name="head.content"/>
+ <xsl:call-template name="user.head.content"/>
+ </head>
+ </xsl:template>
+
+ <!-- header.navigation:
+ Self-made template that full replaces the original one -->
+ <!-- The original template is in {docbook-xsl}/xhtml/chunk-common.xsl -->
+ <xsl:template name="header.navigation">
+ <xsl:param name="prev" select="/foo"/>
+ <xsl:param name="next" select="/foo"/>
+ <xsl:variable name="up" select="parent::*"/>
+ <xsl:variable name="home" select="/*[1]"/>
+ <!-- Don't generate the header in index.html -->
+ <xsl:if test="$home != .">
+ <div class="navheader">
+ <!-- Book title and version -->
+ <h4>
+ <xsl:apply-templates select="$home" mode="object.title.markup"/>
+ <xsl:text> - </xsl:text>
+ <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
+ </h4>
+ <!-- Except for preface, part, and index, add the title of the parent -->
+ <xsl:if test="$up != $home">
+ <h3>
+ <xsl:apply-templates select="$up" mode="object.title.markup"/>
+ </h3>
+ </xsl:if>
+ <!-- Create header navigational links -->
+ <xsl:call-template name="navigational.links">
+ <xsl:with-param name="prev" select="$prev"/>
+ <xsl:with-param name="next" select="$next"/>
+ <xsl:with-param name="up" select="$up"/>
+ <xsl:with-param name="home" select="$home"/>
+ </xsl:call-template>
+ </div>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- footer.navigation:
+ Self-made template that full replaces the original one -->
+ <!-- The original template is in {docbook-xsl}/xhtml/chunk-common.xsl -->
+ <xsl:template name="footer.navigation">
+ <xsl:param name="prev" select="/foo"/>
+ <xsl:param name="next" select="/foo"/>
+ <xsl:variable name="up" select="parent::*"/>
+ <xsl:variable name="home" select="/*[1]"/>
+ <!-- Create footer navigational links -->
+ <div class="navfooter">
+ <xsl:call-template name="navigational.links">
+ <xsl:with-param name="prev" select="$prev"/>
+ <xsl:with-param name="next" select="$next"/>
+ <xsl:with-param name="up" select="$up"/>
+ <xsl:with-param name="home" select="$home"/>
+ </xsl:call-template>
+ </div>
+ <!-- In HLFS, add the features.js call -->
+ <xsl:if test="$book-type = 'hlfs'">
+ <script type="text/javascript">
+ <xsl:attribute name="src">
+ <xsl:choose>
+ <xsl:when test="local-name(.)='book' or local-name(.)='part' or
+ local-name(.)='index'">../features.js</xsl:when>
+ <xsl:otherwise>../../features.js</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ </script>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- navigational.links:
+ Self-made template to generate navigational links.
+ Most of the code come from the original header.navigation and
+ footer.navigation templates, with this changes:
+ Changed the output format from table to ul.
+ Placed the same links on both header and footer.
+ Added a title attribute to the link containing the target title
+ (it content is displayed when placing the mouse over the link)
+ For "Prev" and "Next" links, added the target title under it.
+ When "Next" target is the Index, added gentext support for the
+ Index title.
+ Skip links to dummy sect1. -->
+ <xsl:template name="navigational.links">
+ <xsl:param name="prev"/>
+ <xsl:param name="next"/>
+ <xsl:param name="up"/>
+ <xsl:param name="home"/>
+ <ul>
+ <!-- No prev link when prev is home -->
+ <xsl:if test="count($prev)&gt;0 and $prev != $home">
+ <li class="prev">
+ <xsl:choose>
+
+ <!-- If prev is a dummy sect1 that is the first one in a chapter,
+ links to the parent chapter.-->
+ <xsl:when test="$prev[@role='dummy'] and
+ count(preceding-sibling::sect1)=1">
+ <a accesskey="p">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select=".."/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:value-of select="../title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'prev'"/>
+ </xsl:call-template>
+ </a>
+ <p>
+ <xsl:value-of select="../title"/>
+ </p>
+ </xsl:when>
+
+ <!-- If prev is a dummy sect1 that is not the first one in a chapter,
+ links to the previous sect1.-->
+ <xsl:when test="$prev[@role='dummy'] and
+ count(preceding-sibling::sect1)&gt;1">
+ <a accesskey="p">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="preceding-sibling::sect1[position()=2]"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:value-of select="preceding-sibling::sect1[position()=2]/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'prev'"/>
+ </xsl:call-template>
+ </a>
+ <p>
+ <xsl:value-of select="preceding-sibling::sect1[position()=2]/title"/>
+ </p>
+ </xsl:when>
+
+ <!-- Code for the "To Boot or To Chroot" CLFS links jumps. -->
+ <xsl:when test="$prev[@id='ch-chroot-devices'] or $prev[@id='ch-boot-whatnext']">
+ <a accesskey="p">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="//sect1[@id='ch-temp-system-choose']"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:value-of select="//sect1[@id='ch-temp-system-choose']/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'prev'"/>
+ </xsl:call-template>
+ </a>
+ <p>
+ <xsl:value-of select="//sect1[@id='ch-temp-system-choose']/title"/>
+ </p>
+ </xsl:when>
+
+ <!-- Normal prev links -->
+ <xsl:otherwise>
+ <a accesskey="p">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$prev"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:value-of select="$prev/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'prev'"/>
+ </xsl:call-template>
+ </a>
+ <p>
+ <xsl:value-of select="$prev/title"/>
+ </p>
+ </xsl:otherwise>
+ </xsl:choose>
+ </li>
+ </xsl:if>
+
+
+ <!-- Next link except in the last page and in the CLFS "choose" page -->
+ <xsl:if test="count($next)&gt;0 and (not(@id) or @id!='ch-temp-system-choose')">
+ <li class="next">
+ <xsl:choose>
+
+ <!-- Current page is sect1 a next is a dummy sect1, link to the next one -->
+ <xsl:when test="$next[@role='dummy'] and local-name(.) = 'sect1'">
+ <a accesskey="n">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="following-sibling::sect1[position()=2]"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:value-of select="following-sibling::sect1[position()=2]/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'next'"/>
+ </xsl:call-template>
+ </a>
+ <p>
+ <xsl:value-of select="following-sibling::sect1[position()=2]/title"/>
+ </p>
+ </xsl:when>
+
+ <!-- Current page is chapter and next is a dummy sect1, link to the next one -->
+ <xsl:when test="$next[@role='dummy'] and local-name(.) = 'chapter'">
+ <a accesskey="n">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="descendant::sect1[position()=2]"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:value-of select="descendant::sect1[position()=2]/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'next'"/>
+ </xsl:call-template>
+ </a>
+ <p>
+ <xsl:value-of select="descendant::sect1[position()=2]/title"/>
+ </p>
+ </xsl:when>
+
+ <!-- Code for the "To Boot or To Chroot" CLFS links jumps. -->
+ <xsl:when test="$next[@id='chapter-chroot'] or $next[@id='chapter-boot']">
+ <a accesskey="n">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="//part[@id='part5']"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:value-of select="//part[@id='part5']/title"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'next'"/>
+ </xsl:call-template>
+ </a>
+ <p>
+ <xsl:value-of select="//part[@id='part5']/title"/>
+ </p>
+ </xsl:when>
+
+ <!-- Normal next links. Take care of Index gentext support. -->
+ <xsl:otherwise>
+ <a accesskey="n">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$next"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:choose>
+ <xsl:when test="local-name($next)='index'">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Index</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$next/title"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'next'"/>
+ </xsl:call-template>
+ </a>
+ <p>
+ <xsl:choose>
+ <xsl:when test="local-name($next)='index'">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">Index</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$next/title"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </p>
+ </xsl:otherwise>
+ </xsl:choose>
+ </li>
+ </xsl:if>
+
+
+ <li class="up">
+ <xsl:choose>
+ <!-- Up link except if up is home -->
+ <xsl:when test="count($up)&gt;0 and $up != $home">
+ <a accesskey="u">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$up"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:apply-templates select="$up" mode="object.title.markup"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'up'"/>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <!-- Hack to let the CSS code do its work when there is no up link -->
+ <xsl:otherwise>
+ <xsl:text>.</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </li>
+
+
+ <li class="home">
+ <xsl:choose>
+ <!-- No home link in home page -->
+ <xsl:when test="$home != .">
+ <a accesskey="h">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$home"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="title">
+ <xsl:value-of select="$home/bookinfo/title"/>
+ <xsl:text> - </xsl:text>
+ <xsl:value-of select="$home/bookinfo/subtitle"/>
+ </xsl:attribute>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'home'"/>
+ </xsl:call-template>
+ </a>
+ </xsl:when>
+ <!-- Hack to let the CSS code do its work when there is no home link -->
+ <xsl:otherwise>
+ <xsl:text>.</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </li>
+ </ul>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-sections.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-sections.xsl.svn-base
new file mode 100644
index 0000000..4f74bcf
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-sections.xsl.svn-base
@@ -0,0 +1,165 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <!-- This stylesheet controls how preface, chapter, and sections are handled -->
+
+ <!-- Chunk the first top-level section? 1 = yes, 0 = no
+ If preface and chapters TOC are generated, this must be 1. -->
+ <xsl:param name="chunk.first.sections" select="1"/>
+
+ <!-- preface:
+ Output non sect1 child elements before the TOC -->
+ <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
+ <xsl:template match="preface">
+ <xsl:call-template name="id.warning"/>
+ <div>
+ <xsl:apply-templates select="." mode="class.attribute"/>
+ <xsl:call-template name="dir">
+ <xsl:with-param name="inherit" select="1"/>
+ </xsl:call-template>
+ <xsl:call-template name="language.attribute"/>
+ <xsl:if test="$generate.id.attributes != 0">
+ <xsl:attribute name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="component.separator"/>
+ <xsl:call-template name="preface.titlepage"/>
+ <xsl:apply-templates/>
+ <xsl:variable name="toc.params">
+ <xsl:call-template name="find.path.params">
+ <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:if test="contains($toc.params, 'toc')">
+ <xsl:call-template name="component.toc">
+ <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
+ </xsl:call-template>
+ <xsl:call-template name="component.toc.separator"/>
+ </xsl:if>
+ <xsl:call-template name="process.footnotes"/>
+ </div>
+ </xsl:template>
+
+ <!-- chapter:
+ Output non sect1 child elements before the TOC -->
+ <!-- The original template is in {docbook-xsl}/xhtml/components.xsl -->
+ <xsl:template match="chapter">
+ <xsl:call-template name="id.warning"/>
+ <div>
+ <xsl:apply-templates select="." mode="class.attribute"/>
+ <xsl:call-template name="dir">
+ <xsl:with-param name="inherit" select="1"/>
+ </xsl:call-template>
+ <xsl:call-template name="language.attribute"/>
+ <xsl:if test="$generate.id.attributes != 0">
+ <xsl:attribute name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="component.separator"/>
+ <xsl:call-template name="chapter.titlepage"/>
+ <xsl:apply-templates/>
+ <xsl:variable name="toc.params">
+ <xsl:call-template name="find.path.params">
+ <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:if test="contains($toc.params, 'toc')">
+ <xsl:call-template name="component.toc">
+ <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
+ </xsl:call-template>
+ <xsl:call-template name="component.toc.separator"/>
+ </xsl:if>
+ <xsl:call-template name="process.footnotes"/>
+ </div>
+ </xsl:template>
+
+ <!-- sect1:
+ When there is a role attibute, use it as the class value.
+ Process the SVN keywords found in sect1info as a footnote.
+ Removed unused code. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl -->
+ <xsl:template match="sect1">
+ <div>
+ <xsl:choose>
+ <xsl:when test="@role">
+ <xsl:attribute name="class">
+ <xsl:value-of select="@role"/>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="class.attribute"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="language.attribute"/>
+ <xsl:call-template name="sect1.titlepage"/>
+ <xsl:apply-templates/>
+ <xsl:apply-templates select="sect1info" mode="svn-keys"/>
+ </div>
+ </xsl:template>
+
+ <!-- sect2:
+ When there is a role attibute, use it as the class value.
+ Removed unused code. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl -->
+ <xsl:template match="sect2">
+ <div>
+ <xsl:choose>
+ <xsl:when test="@role">
+ <xsl:attribute name="class">
+ <xsl:value-of select="@role"/>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="class">
+ <xsl:value-of select="name(.)"/>
+ </xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="language.attribute"/>
+ <xsl:call-template name="sect2.titlepage"/>
+ <xsl:apply-templates/>
+ </div>
+ </xsl:template>
+
+ <!-- sect1info mode svn-keys:
+ Self-made template to process SVN keywords found in sect1info. -->
+ <xsl:template match="sect1info" mode="svn-keys">
+ <p class="updated">Last updated <!-- by
+ <xsl:apply-templates select="othername" mode="svn-keys"/> -->
+ on
+ <xsl:apply-templates select="date" mode="svn-keys"/>
+ </p>
+ </xsl:template>
+
+ <!-- othername mode svn-keys:
+ Self-made template to process the $LastChangedBy SVN keyword. -->
+ <xsl:template match="othername" mode="svn-keys">
+ <xsl:variable name="author">
+ <xsl:value-of select="."/>
+ </xsl:variable>
+ <xsl:variable name="nameonly">
+ <xsl:value-of select="substring($author,16)"/>
+ </xsl:variable>
+ <xsl:value-of select="substring-before($nameonly,'$')"/>
+ </xsl:template>
+
+ <!-- date mode svn-keys:
+ Self-made template to process the $Date SVN keyword. -->
+ <xsl:template match="date" mode="svn-keys">
+ <xsl:variable name="date">
+ <xsl:value-of select="."/>
+ </xsl:variable>
+ <xsl:value-of select="substring($date,7,26)"/>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-titles.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-titles.xsl.svn-base
new file mode 100644
index 0000000..b750218
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-titles.xsl.svn-base
@@ -0,0 +1,197 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <!-- This stylesheet controls the h* xhtml tags used for several titles -->
+
+ <!-- preface.titlepage:
+ Uses h1 and removed a lot of unneeded code.
+ No label in preface. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="preface.titlepage">
+ <h1 class="{name(.)}">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h1>
+ </xsl:template>
+
+ <!-- part.titlepage:
+ Uses h1 and removed a lot of unneeded code.
+ When sections are not labeled, we want the part label in TOC
+ but not in titlepage. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="part.titlepage">
+ <h1 class="{name(.)}">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:if test="$section.autolabel != 0">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:text>. </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h1>
+ </xsl:template>
+
+ <!-- partintro.titlepage:
+ Uses h2 and removed a lot of unneeded code. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="partintro.titlepage">
+ <xsl:if test="title">
+ <h2 class="{name(.)}">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h2>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- appendix.titlepage:
+ Uses h1 and removed a lot of unneeded code.
+ When sections are not labeled, we want the appendix label in TOC
+ but not in titlepage. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="appendix.titlepage">
+ <h1 class="{name(.)}">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:if test="$section.autolabel != 0">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:text>. </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h1>
+ </xsl:template>
+
+ <!-- chapter.titlepage:
+ Uses h1 and removed a lot of unneeded code.
+ When sections are not labeled, we want the chapter label in TOC
+ but not in titlepage. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="chapter.titlepage">
+ <h1 class="{name(.)}">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:if test="$section.autolabel != 0">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:text>. </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h1>
+ </xsl:template>
+
+ <!-- sect1.titlepage:
+ Uses h1 and removed a lot of unneeded code. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="sect1.titlepage">
+ <h1 class="{name(.)}">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:if test="$section.autolabel != 0">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:text>. </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h1>
+ </xsl:template>
+
+ <!-- sect2.titlepage:
+ Uses h2 and removed a lot of unneeded code.
+ Skip empty titles.
+ No label in preface. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="sect2.titlepage">
+ <xsl:choose>
+ <xsl:when test="string-length(title) = 0"/>
+ <xsl:otherwise>
+ <h2 class="{name(.)}">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:if test="not(ancestor::preface) and $section.autolabel != 0">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:text>. </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h2>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- sect3.titlepage:
+ Uses h3 and removed a lot of unneeded code. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="sect3.titlepage">
+ <h3 class="{name(.)}">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:if test="$section.autolabel != 0">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:text>. </xsl:text>
+ </xsl:if>
+ <xsl:value-of select="title"/>
+ </h3>
+ </xsl:template>
+
+ <!-- dedication.titlepage:
+ Uses h2 and removed a lot of unneeded code. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="dedication.titlepage">
+ <h2>
+ <xsl:value-of select="title"/>
+ </h2>
+ </xsl:template>
+
+ <!-- bridgehead:
+ We use always renderas attributes and want the output h* level
+ matching the defined sect* level.
+ Create the anchor only if there is an @id. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl -->
+ <xsl:template match="bridgehead">
+ <xsl:variable name="hlevel">
+ <xsl:choose>
+ <xsl:when test="@renderas = 'sect1'">1</xsl:when>
+ <xsl:when test="@renderas = 'sect2'">2</xsl:when>
+ <xsl:when test="@renderas = 'sect3'">3</xsl:when>
+ <xsl:when test="@renderas = 'sect4'">4</xsl:when>
+ <xsl:when test="@renderas = 'sect5'">5</xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:element name="h{$hlevel}" namespace="http://www.w3.org/1999/xhtml">
+ <xsl:if test="@id">
+ <a id="{@id}" name="{@id}"/>
+ </xsl:if>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:template>
+
+ <!-- book.titlepage.verso:
+ Process bookinfo/bibliosource from here. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
+ <xsl:template name="book.titlepage.verso">
+ <xsl:apply-templates select="bookinfo/bibliosource"/>
+ </xsl:template>
+
+ <!-- bookinfo/bibliosource:
+ Self-made template to handle bibliosource when inside bookinfo. -->
+ <xsl:template match="bookinfo/bibliosource">
+ <p class="copyright">
+ <xsl:apply-templates/>
+ </p>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-toc.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-toc.xsl.svn-base
new file mode 100644
index 0000000..f9a0f7b
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-toc.xsl.svn-base
@@ -0,0 +1,194 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <!-- This stylesheet controls how the TOC are generated -->
+
+ <!-- make.toc:
+ Using h3 for TOC title.
+ Using ul for TOC list style.
+ Removed code for $manual.toc and $qanda.in.toc -->
+ <!-- The original template is in {docbook-xsl}/xhtml/autotoc.xsl -->
+ <xsl:template name="make.toc">
+ <xsl:param name="toc-context" select="."/>
+ <xsl:param name="nodes" select="/NOT-AN-ELEMENT"/>
+ <xsl:if test="$nodes">
+ <div class="toc">
+ <h3>
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">TableofContents</xsl:with-param>
+ </xsl:call-template>
+ </h3>
+ <ul>
+ <xsl:apply-templates select="$nodes" mode="toc">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ </xsl:apply-templates>
+ </ul>
+ </div>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- subtoc:
+ Using ul for TOC list style.
+ Removed code for $qanda.in.toc
+ Removed code for sect* others than sect1 -->
+ <!-- The original template is in {docbook-xsl}/xhtml/autotoc.xsl -->
+ <xsl:template name="subtoc">
+ <xsl:param name="toc-context" select="."/>
+ <xsl:param name="nodes" select="NOT-AN-ELEMENT"/>
+ <xsl:variable name="subtoc">
+ <ul>
+ <xsl:apply-templates mode="toc" select="$nodes">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ </xsl:apply-templates>
+ </ul>
+ </xsl:variable>
+ <xsl:variable name="depth">
+ <xsl:choose>
+ <xsl:when test="local-name(.) = 'sect1'">1</xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="depth.from.context"
+ select="count(ancestor::*)-count($toc-context/ancestor::*)"/>
+ <li class="{name(.)}">
+ <xsl:call-template name="toc.line">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ </xsl:call-template>
+ <xsl:if test="$toc.section.depth &gt; $depth and count($nodes)&gt;0
+ and $toc.max.depth &gt; $depth.from.context">
+ <xsl:copy-of select="$subtoc"/>
+ </xsl:if>
+ </li>
+ </xsl:template>
+
+ <!-- toc.line:
+ Adding the h* tags and dropping unneded links.
+ This template is a full re-made version of the original one. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/autotoc.xsl -->
+ <xsl:template name="toc.line">
+ <xsl:param name="toc-context" select="."/>
+ <xsl:choose>
+ <!-- For non dummy sect1 targets, create a link. -->
+ <xsl:when test="local-name(.) = 'sect1'">
+ <xsl:choose>
+ <xsl:when test="@role='dummy'">
+ <span class="dummy">
+ <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+ </span>
+ </xsl:when>
+ <xsl:otherwise>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="context" select="$toc-context"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <!-- For part, preface, and chapter, use hX and add the label.
+ For BLFS, make it a link. -->
+ <xsl:when test="local-name(.) = 'part' or local-name(.) = 'preface'
+ or local-name(.) = 'chapter'">
+ <xsl:choose>
+ <xsl:when test="$book-type = 'blfs'">
+ <xsl:apply-templates select="." mode="add.hX">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="with-link" select="1"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="add.hX">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="with-link" select="0"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <!-- For appendix , create a link and add the label.
+ For BLFS, use hX. -->
+ <xsl:when test="local-name(.) = 'appendix'">
+ <xsl:choose>
+ <xsl:when test="$book-type = 'blfs'">
+ <xsl:apply-templates select="." mode="add.hX">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="with-link" select="1"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="add.link">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <!-- For other targets like Index, use hX, create a link, and label it. -->
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="add.hX">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ <xsl:with-param name="with-link" select="1"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!-- Self-made template to add hX tags to toc lines. -->
+ <xsl:template match="*" mode="add.hX">
+ <xsl:param name="toc-context" select="."/>
+ <xsl:param name="with-link" select="0"/>
+ <xsl:param name="hlevel">
+ <xsl:choose>
+ <xsl:when test="local-name(.)='chapter' or local-name(.)='preface'">4</xsl:when>
+ <xsl:otherwise>3</xsl:otherwise>
+ </xsl:choose>
+ </xsl:param>
+ <xsl:element name="h{$hlevel}" namespace="http://www.w3.org/1999/xhtml">
+ <xsl:choose>
+ <xsl:when test="$with-link != 0">
+ <xsl:apply-templates select="." mode="add.link">
+ <xsl:with-param name="toc-context" select="$toc-context"/>
+ </xsl:apply-templates>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="label.and.title"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </xsl:template>
+
+ <!-- Self-made template to made toc line a link. -->
+ <xsl:template match="*" mode="add.link">
+ <xsl:param name="toc-context" select="."/>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="context" select="$toc-context"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:apply-templates select="." mode="label.and.title"/>
+ </a>
+ </xsl:template>
+
+ <!-- Self-made template to write the target title and label it. -->
+ <xsl:template match="*" mode="label.and.title">
+ <xsl:variable name="label">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </xsl:variable>
+ <xsl:copy-of select="$label"/>
+ <xsl:if test="$label != ''">
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
+ <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-xref.xsl.svn-base b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-xref.xsl.svn-base
new file mode 100644
index 0000000..f0e34e0
--- /dev/null
+++ b/stylesheets/lfs-xsl/xhtml/.svn/text-base/lfs-xref.xsl.svn-base
@@ -0,0 +1,142 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<!--
+$LastChangedBy$
+$Date$
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns="http://www.w3.org/1999/xhtml"
+ exclude-result-prefixes="xlink"
+ version="1.0">
+
+ <!-- This stylesheet fixes English punctuation in xref links
+ (as was requested by the publisher) via adding @role propagation
+ in xref tags.
+ This hack may not work with xref flavours not used in the book.
+ For other languages, just remove the xref @role attributes
+ in the book XML sources and/or comment-out the inclusion of
+ this file in lfs-chunked2.xsl -->
+
+ <!-- xref:
+ Added role variable and use it when calling mode xref-to.-->
+ <!-- The original template is in {docbook-xsl}/xhtml/xref.xsl -->
+ <xsl:template match="xref" name="xref">
+ <xsl:param name="xhref" select="@xlink:href"/>
+ <!-- is the @xlink:href a local idref link? -->
+ <xsl:param name="xlink.idref">
+ <xsl:if test="starts-with($xhref,'#') and (not(contains($xhref,'('))
+ or starts-with($xhref, '#xpointer(id('))">
+ <xsl:call-template name="xpointer.idref">
+ <xsl:with-param name="xpointer" select="$xhref"/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:param>
+ <xsl:param name="xlink.targets" select="key('id',$xlink.idref)"/>
+ <xsl:param name="linkend.targets" select="key('id',@linkend)"/>
+ <xsl:param name="target" select="($xlink.targets | $linkend.targets)[1]"/>
+ <!-- Added role variable -->
+ <xsl:variable name="role" select="@role"/>
+ <xsl:variable name="xrefstyle">
+ <xsl:choose>
+ <xsl:when test="@role and not(@xrefstyle) and $use.role.as.xrefstyle != 0">
+ <xsl:value-of select="@role"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@xrefstyle"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:call-template name="anchor"/>
+ <xsl:variable name="content">
+ <xsl:choose>
+ <xsl:when test="@endterm">
+ <xsl:variable name="etargets" select="key('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>???</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="$etarget" mode="endterm"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="$target/@xreflabel">
+ <xsl:call-template name="xref.xreflabel">
+ <xsl:with-param name="target" select="$target"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="$target">
+ <xsl:if test="not(parent::citation)">
+ <xsl:apply-templates select="$target" mode="xref-to-prefix"/>
+ </xsl:if>
+ <xsl:apply-templates select="$target" mode="xref-to">
+ <xsl:with-param name="referrer" select="."/>
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
+ <!-- Propagate role -->
+ <xsl:with-param name="role" select="$role"/>
+ </xsl:apply-templates>
+ <xsl:if test="not(parent::citation)">
+ <xsl:apply-templates select="$target" mode="xref-to-suffix"/>
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:message>
+ <xsl:text>ERROR: xref linking to </xsl:text>
+ <xsl:value-of select="@linkend|@xlink:href"/>
+ <xsl:text> has no generated link text.</xsl:text>
+ </xsl:message>
+ <xsl:text>???</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:call-template name="simple.xlink">
+ <xsl:with-param name="content" select="$content"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <!-- sect* mode xref-to:
+ Propagate role to mode object.xref.markup (see ../lfs-common.xsl) -->
+ <!-- The original template is in {docbook-xsl}/xhtml/xref.xsl -->
+ <xsl:template match="section|simplesect|sect1|sect2|sect3|sect4|sect5|refsect1
+ |refsect2|refsect3|refsection" mode="xref-to">
+ <xsl:param name="referrer"/>
+ <xsl:param name="xrefstyle"/>
+ <xsl:param name="verbose" select="1"/>
+ <xsl:param name="role"/>
+ <xsl:apply-templates select="." mode="object.xref.markup">
+ <xsl:with-param name="purpose" select="'xref'"/>
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
+ <xsl:with-param name="referrer" select="$referrer"/>
+ <xsl:with-param name="verbose" select="$verbose"/>
+ <xsl:with-param name="role" select="$role"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
+ <!-- insert.title.markup:
+ Apply the role value. -->
+ <!-- The original template is in {docbook-xsl}/xhtml/xref.xsl -->
+ <xsl:template match="*" mode="insert.title.markup">
+ <xsl:param name="purpose"/>
+ <xsl:param name="xrefstyle"/>
+ <xsl:param name="title"/>
+ <xsl:param name="role"/>
+ <xsl:choose>
+ <xsl:when test="$purpose = 'xref' and titleabbrev">
+ <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$title"/>
+ <xsl:value-of select="$role"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>