Changeset 70d73d1 for BLFS/xsl/make_book.xsl
- Timestamp:
- 03/01/2017 03:54:16 PM (8 years ago)
- Branches:
- 2.4, ablfs-more, legacy, trunk
- Children:
- 84440e6
- Parents:
- fbdd1a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/make_book.xsl
rfbdd1a8 r70d73d1 8 8 <xsl:param name="list" select="''"/> 9 9 <xsl:param name="MTA" select="'sendmail'"/> 10 11 <!-- Check whether the book is sysv or systemd --> 12 <xsl:variable name="rev"> 13 <xsl:choose> 14 <xsl:when test="//bookinfo/title/phrase[@revision='systemd']"> 15 <xsl:text>systemd</xsl:text> 16 </xsl:when> 17 <xsl:otherwise> 18 <xsl:text>sysv</xsl:text> 19 </xsl:otherwise> 20 </xsl:choose> 21 </xsl:variable> 10 22 11 23 <xsl:output … … 20 32 <?dbhtml filename="preface.html"?> 21 33 <title>Preface</title> 22 <xsl:copy-of select="id('bootscripts')"/> 34 <xsl:choose> 35 <xsl:when test="$rev='sysv'"> 36 <xsl:copy-of select="id('bootscripts')"/> 37 </xsl:when> 38 <xsl:otherwise> 39 <xsl:copy-of select="id('systemd-units')"/> 40 </xsl:otherwise> 41 </xsl:choose> 23 42 </preface> 24 43 <chapter> … … 113 132 <xsl:otherwise> 114 133 <xsl:choose> 115 <xsl:when test="@linkend='bootscripts'"> 134 <xsl:when test="@linkend='bootscripts' or 135 @linkend='systemd-units'"> 116 136 <xsl:copy-of select="."/> 117 137 </xsl:when>
Note:
See TracChangeset
for help on using the changeset viewer.