Changeset 6d86eb1
- Timestamp:
- Apr 24, 2011, 7:14:19 PM (14 years ago)
- Children:
- d4c109d
- Parents:
- b9c15a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/stylesheets/clfs-profile.xsl
rb9c15a7 r6d86eb1 51 51 <xsl:with-param name="bits" select="substring-before(concat($bits, ','), ',')" /> 52 52 <xsl:with-param name="multibuild" select="$multibuild" /> 53 <xsl:with-param name="lastinseries"> 54 <xsl:choose> 55 <xsl:when test="$remainingbits"> 56 <xsl:text>false</xsl:text> 57 </xsl:when> 58 <xsl:otherwise> 59 <xsl:text>true</xsl:text> 60 </xsl:otherwise> 61 </xsl:choose> 62 </xsl:with-param> 53 63 </xsl:call-template> 54 64 </xsl:if> … … 72 82 <xsl:param name="bits" /> <!-- Which bit sizes to create a package for --> 73 83 <xsl:param name="multibuild" /> <!-- Are there multiple instances of this package? --> 84 <xsl:param name="lastinseries" /> <!-- Is this the past package in the multilib series? --> 74 85 75 86 <!-- Translate the package into a sect1 --> … … 144 155 <xsl:value-of select="c:title" /> 145 156 </xsl:element> 146 <xsl:if test="(string-length($titlesuffix) + string-length(c:variant)) > 0">157 <xsl:if test="(string-length($titlesuffix) > 0 and $lastinseries = 'false') or c:variant"> 147 158 <xsl:text> 148 159 </xsl:text> 149 160 <xsl:element name="secondary"> 150 <xsl:if test=" string-length(c:variant) > 0">161 <xsl:if test="c:variant"> 151 162 <xsl:value-of select="c:variant" /> 152 <xsl:if test="string-length($titlesuffix) > 0"> 163 </xsl:if> 164 <xsl:if test="string-length($titlesuffix) > 0 and $lastinseries = 'false'"> 165 <xsl:if test="c:variant"> 153 166 <xsl:text>, </xsl:text> 154 167 </xsl:if> 168 <xsl:value-of select="$titlesuffix" /> 155 169 </xsl:if> 156 <xsl:value-of select="$titlesuffix" />157 170 </xsl:element> 158 171 </xsl:if> … … 276 289 </xsl:attribute> 277 290 <xsl:choose> 278 <xsl:when test="string-length(@c:ref) > 0 ">291 <xsl:when test="string-length(@c:ref) > 0 or $lastinseries = 'false'"> 279 292 <!-- Insert an xref to the actual contents list --> 280 293 <xsl:text>
 </xsl:text> … … 285 298 <xsl:element name="xref"> 286 299 <xsl:attribute name="linkend"> 287 <xsl:value-of select="@c:ref" /> 300 <xsl:choose> 301 <xsl:when test="string-length(@c:ref) > 0"> 302 <xsl:value-of select="@c:ref" /> 303 </xsl:when> 304 <xsl:otherwise> 305 <xsl:value-of select="$id" /> 306 </xsl:otherwise> 307 </xsl:choose> 288 308 <xsl:text>-contents</xsl:text> 289 309 </xsl:attribute> … … 594 614 </xsl:element><!-- sect2 --> 595 615 </xsl:for-each><!-- c:contents -> sect2 --> 596 616 597 617 <xsl:text>

</xsl:text> 598 618
Note:
See TracChangeset
for help on using the changeset viewer.