Changeset a9e89d0 for stylesheets/xhtml
- Timestamp:
- 05/19/2004 08:16:58 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 8df9f63
- Parents:
- 28501c7
- Location:
- stylesheets/xhtml
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/xhtml/lfs-admon.xsl
r28501c7 ra9e89d0 5 5 version="1.0"> 6 6 7 7 <!-- Use graphics in admonitions --> 8 8 <xsl:param name="admon.graphics" select="1"/> 9 9 <xsl:param name="admon.graphics.path">../images/</xsl:param> 10 10 <xsl:param name="admon.graphics.extension" select="'.png'"/> 11 11 12 12 <!-- Changing the output tagging --> 13 13 <xsl:template name="graphical.admonition"> 14 14 <xsl:variable name="admon.type"> … … 23 23 </xsl:variable> 24 24 <div class="admonition"> 25 25 <div class ="admonhead"> 26 26 <img alt="[{$admon.type}]"> 27 27 <xsl:attribute name="src"> … … 38 38 </div> 39 39 <div class="admonbody"> 40 40 <xsl:apply-templates/> 41 41 </div> 42 42 </div> -
stylesheets/xhtml/lfs-index.xsl
r28501c7 ra9e89d0 21 21 <xsl:template match="index" mode="title.markup"> 22 22 <xsl:value-of select="$index-title"/> 23 23 </xsl:template> 24 24 25 25 <xsl:template name="index.titlepage"> 26 26 <div class="titlepage"> 27 28 29 27 <h1 class="index"> 28 <xsl:value-of select="$index-title"/> 29 </h1> 30 30 </div> 31 31 </xsl:template> 32 32 33 33 <!--Divisions--> 34 34 <xsl:template match="indexterm" mode="index-div"> 35 35 <xsl:param name="scope" select="."/> 36 36 <xsl:variable name="key" select="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/> 37 37 <xsl:variable name="divtitle" select="translate($key, &lowercase;, &uppercase;)"/> 38 38 <!-- Make sure that we don't generate a div if there are no terms in scope --> 39 39 <xsl:if test="key('letter', $key)[&scope;] [count(.|key('primary', &primary;)[&scope;][1]) = 1]"> 40 40 <div class="indexdiv"> 41 41 <xsl:if test="contains(concat(&lowercase;, &uppercase;), $key)"> 42 42 <h2> 43 44 45 43 <xsl:choose> 44 <xsl:when test="$divtitle = 'A'"> 45 <xsl:text>Packages</xsl:text> 46 46 </xsl:when> 47 47 <xsl:when test="$divtitle = 'B'"> 48 48 <xsl:text>Programs</xsl:text> 49 49 </xsl:when> 50 50 <xsl:when test="$divtitle = 'C'"> 51 51 <xsl:text>Libraries</xsl:text> 52 52 </xsl:when> 53 53 <xsl:when test="$divtitle = 'D'"> 54 54 <xsl:text>Scripts</xsl:text> 55 55 </xsl:when> 56 56 <xsl:when test="$divtitle = 'E'"> … … 58 58 </xsl:when> 59 59 <xsl:otherwise> 60 61 60 <xsl:value-of select="$divtitle"/> 61 </xsl:otherwise> 62 62 </xsl:choose> 63 63 </h2> … … 65 65 <ul> 66 66 <xsl:apply-templates select="key('letter', $key)[&scope;] 67 67 [count(.|key('primary', &primary;)[&scope;][1])=1]" mode="index-primary"> 68 68 <xsl:with-param name="scope" select="$scope"/> 69 69 <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/> … … 74 74 </xsl:template> 75 75 76 76 <!-- Dropping the separator from here--> 77 77 <xsl:template match="indexterm" mode="reference"> 78 78 <xsl:param name="scope" select="."/> … … 81 81 <xsl:with-param name="scope" select="$scope"/> 82 82 </xsl:call-template> 83 83 </xsl:template> 84 84 85 85 <!-- Changing the output tags and re-addind the separator--> 86 86 <xsl:template match="indexterm" mode="index-primary"> 87 87 <xsl:param name="scope" select="."/> … … 89 89 <xsl:variable name="refs" select="key('primary', $key)[&scope;]"/> 90 90 <li> 91 92 91 <strong class="item"> 92 <xsl:value-of select="primary"/> 93 93 <xsl:text>: </xsl:text> 94 94 </strong> 95 95 <xsl:for-each select="$refs[generate-id() = generate-id(key('primary-section', 96 96 concat($key, " ", generate-id((ancestor-or-self::book |ancestor-or-self::part 97 97 |ancestor-or-self::chapter |ancestor-or-self::appendix |ancestor-or-self::preface 98 98 |ancestor-or-self::sect1 |ancestor-or-self::sect2 |ancestor-or-self::sect3 … … 102 102 </xsl:apply-templates> 103 103 </xsl:for-each> 104 104 <xsl:if test="$refs/secondary"> 105 105 <ul> 106 106 <xsl:apply-templates select="$refs[secondary and count(.|key('secondary', 107 107 concat($key, " ", normalize-space(concat(secondary/@sortas, 108 108 secondary[not(@sortas)]))))[&scope;][1]) = 1]" mode="index-secondary"> 109 109 <xsl:with-param name="scope" select="$scope"/> 110 110 <xsl:sort select="translate(normalize-space(concat(secondary/@sortas, 111 111 secondary[not(@sortas)])), &lowercase;, &uppercase;)"/> 112 112 </xsl:apply-templates> 113 114 113 </ul> 114 </xsl:if> 115 115 </li> 116 116 </xsl:template> … … 119 119 <xsl:param name="scope" select="."/> 120 120 <xsl:variable name="key" select="concat(&primary;, " ", 121 121 normalize-space(concat(secondary/@sortas, secondary[not(@sortas)])))"/> 122 122 <xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/> 123 123 <li> 124 125 124 <strong class="secitem"> 125 <xsl:value-of select="secondary"/> 126 126 <xsl:text>: </xsl:text> 127 127 </strong> 128 128 <xsl:for-each select="$refs[generate-id() = generate-id(key('secondary-section', 129 129 concat($key, " ", generate-id((ancestor-or-self::book |ancestor-or-self::part 130 130 |ancestor-or-self::chapter |ancestor-or-self::appendix |ancestor-or-self::preface 131 131 |ancestor-or-self::sect1 |ancestor-or-self::sect2 |ancestor-or-self::sect3 -
stylesheets/xhtml/lfs-legalnotice.xsl
r28501c7 ra9e89d0 1 1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->4 2 5 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" … … 7 5 version="1.0"> 8 6 9 7 <!-- Generating the page --> 10 8 <xsl:template match="legalnotice" mode="titlepage.mode"> 11 9 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> -
stylesheets/xhtml/lfs-mixed.xsl
r28501c7 ra9e89d0 5 5 version="1.0"> 6 6 7 7 <!-- screen --> 8 8 <xsl:template match="screen"> 9 9 <xsl:choose> 10 10 <!-- Temporally hack --> 11 11 <xsl:when test="child::* = userinput"> 12 12 <pre class="{name(.)}"> … … 25 25 26 26 <!-- variablelist --> 27 <xsl:template match="variablelist"> 28 <div class="{name(.)}"> 29 <xsl:if test="title"> 30 <h3> 31 <xsl:value-of select="title"/> 32 </h3> 33 </xsl:if> 34 <dl> 35 <xsl:if test="@role"> 36 <xsl:attribute name="class"> 37 <xsl:value-of select="@role"/> 38 </xsl:attribute> 39 </xsl:if> 40 <xsl:apply-templates select="varlistentry"/> 41 </dl> 42 </div> 43 </xsl:template> 27 <xsl:template match="variablelist"> 28 <div class="{name(.)}"> 29 <xsl:if test="title"> 30 <xsl:choose> 31 <xsl:when test="@role = 'materials'"> 32 <h3> 33 <xsl:value-of select="title"/> 34 </h3> 35 </xsl:when> 36 <xsl:otherwise> 37 <h4> 38 <xsl:value-of select="title"/> 39 </h4> 40 </xsl:otherwise> 41 </xsl:choose> 42 </xsl:if> 43 <dl> 44 <xsl:if test="@role"> 45 <xsl:attribute name="class"> 46 <xsl:value-of select="@role"/> 47 </xsl:attribute> 48 </xsl:if> 49 <xsl:apply-templates select="varlistentry"/> 50 </dl> 51 </div> 52 </xsl:template> 53 44 54 </xsl:stylesheet> -
stylesheets/xhtml/lfs-navigational.xsl
r28501c7 ra9e89d0 1 1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->4 2 5 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" … … 16 14 </xsl:template> 17 15 18 16 <!-- Header Navigation--> 19 17 <xsl:template name="header.navigation"> 20 18 <xsl:param name="prev" select="/foo"/> … … 65 63 </a> 66 64 </li> 65 </xsl:if> 66 <xsl:if test="count($up)>0 and $up != $home"> 67 <li class="up"> 68 <a accesskey="u"> 69 <xsl:attribute name="href"> 70 <xsl:call-template name="href.target"> 71 <xsl:with-param name="object" select="$up"/> 72 </xsl:call-template> 73 </xsl:attribute> 74 <xsl:text>Up</xsl:text> 75 </a> 76 </li> 77 </xsl:if> 67 78 <li class="home"> 68 79 <a accesskey="h"> … … 75 86 </a> 76 87 </li> 77 </xsl:if>78 88 </ul> 79 89 </div> … … 81 91 </xsl:template> 82 92 83 93 <!-- Footer Navigation--> 84 94 <xsl:template name="footer.navigation"> 85 95 <xsl:param name="prev" select="/foo"/> … … 104 114 </a> 105 115 <p> 106 116 <xsl:apply-templates select="$prev" mode="object.title.markup"/> 107 117 </p> 108 118 </li> … … 119 129 </a> 120 130 <p> 121 131 <xsl:apply-templates select="$next" mode="object.title.markup"/> 122 132 </p> 123 133 </li> -
stylesheets/xhtml/lfs-titles.xsl
r28501c7 ra9e89d0 31 31 <xsl:template name="sect1.titlepage"> 32 32 <xsl:choose> 33 33 <!-- I should find a better test --> 34 34 <xsl:when test="position() = 4"> 35 35 <div class="titlepage"> -
stylesheets/xhtml/lfs-toc.xsl
r28501c7 ra9e89d0 5 5 version="1.0"> 6 6 7 7 <!-- General settings --> 8 8 <xsl:param name="generate.toc"> 9 9 appendix toc … … 28 28 <xsl:param name="toc.max.depth">3</xsl:param> 29 29 30 31 30 <!-- Making the TOC --> 31 <xsl:template name="make.toc"> 32 32 <xsl:param name="toc-context" select="."/> 33 33 <xsl:param name="nodes" select="/NOT-AN-ELEMENT"/> … … 47 47 </xsl:if> 48 48 </xsl:template> 49 49 50 50 <!-- Making the subtocs --> 51 51 <xsl:template name="subtoc"> … … 72 72 </xsl:call-template> 73 73 <xsl:if test="$toc.section.depth > $depth and count($nodes)>0 74 74 and $toc.max.depth > $depth.from.context"> 75 75 <xsl:copy-of select="$subtoc"/> 76 76 </xsl:if>
Note:
See TracChangeset
for help on using the changeset viewer.