Changeset 5508d22 for BOOK/stylesheets
- Timestamp:
- Mar 5, 2011, 8:48:28 PM (14 years ago)
- Children:
- 5171adc
- Parents:
- 4a39252
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/stylesheets/clfs-profile.xsl
r4a39252 r5508d22 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns="http://www.w3.org/1999/xhtml"4 3 xmlns:c="http://schema.cross-lfs.org/book" 5 4 version="1.0"> … … 50 49 </xsl:with-param> 51 50 <xsl:with-param name="bits" select="substring-before(concat($bits, ','), ',')" /> 51 <xsl:with-param name="multi"><xsl:text>multi</xsl:text></xsl:with-param> 52 52 </xsl:call-template> 53 53 <xsl:if test="$remainingbits"> … … 67 67 <xsl:with-param name="idsuffix" /> 68 68 <xsl:with-param name="bits" select="substring-before(concat($bits, ','), ',')" /> 69 <xsl:with-param name="multi"><xsl:text>single</xsl:text></xsl:with-param> 69 70 </xsl:call-template> 70 71 </xsl:otherwise> … … 76 77 <xsl:param name="idsuffix" /> <!-- Suffix to attach to the end of the ID for this perticular instance --> 77 78 <xsl:param name="bits" /> <!-- Which bit sizes to create a package for --> 79 <xsl:param name="multi" /> <!-- multi/single build --> 78 80 79 81 <xsl:for-each select="sect1"> 80 81 82 <xsl:copy> 82 83 <xsl:attribute name="id"> … … 85 86 <xsl:attribute name="role"> 86 87 <xsl:text>package</xsl:text> 88 </xsl:attribute> 89 <xsl:attribute name="condition"> 90 <xsl:value-of select="$multi" /> 87 91 </xsl:attribute> 88 92 <xsl:processing-instruction name="dbhtml"> … … 108 112 <!-- Apply the profile to the 32bit package --> 109 113 114 <xsl:template match="//sect1/title" mode="filter-bits-32"> 115 <xsl:element name="title"> 116 <xsl:copy-of select="@*|node()" /> 117 <xsl:if test="contains($clfs.multilib, ',')"> 118 <xsl:text> - 32Bit</xsl:text> 119 </xsl:if> 120 </xsl:element> 121 </xsl:template> 122 110 123 <xsl:template match="@*|node()" mode="filter-bits-32"> 111 124 <xsl:variable name="ismultilib"> … … 135 148 136 149 <!-- Apply the profile to the n32 package --> 150 151 <xsl:template match="//sect1/title" mode="filter-bits-n32"> 152 <xsl:element name="title"> 153 <xsl:copy-of select="@*|node()" /> 154 <xsl:if test="contains($clfs.multilib, ',')"> 155 <xsl:text> - N32</xsl:text> 156 </xsl:if> 157 </xsl:element> 158 </xsl:template> 137 159 138 160 <xsl:template match="@*|node()" mode="filter-bits-n32"> … … 163 185 164 186 <!-- Apply the profile to the 64bit package --> 187 188 <xsl:template match="//sect1/title" mode="filter-bits-64"> 189 <xsl:element name="title"> 190 <xsl:copy-of select="@*|node()" /> 191 <xsl:if test="contains($clfs.multilib, ',')"> 192 <xsl:text> - 64Bit</xsl:text> 193 </xsl:if> 194 </xsl:element> 195 </xsl:template> 165 196 166 197 <xsl:template match="@*|node()" mode="filter-bits-64">
Note:
See TracChangeset
for help on using the changeset viewer.