Changeset 580d773 for LFS/lfs.xsl
- Timestamp:
- 03/27/2017 04:26:14 PM (7 years ago)
- Branches:
- new_features
- Children:
- b9cd0ee
- Parents:
- 90f822a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/lfs.xsl
r90f822a r580d773 10 10 11 11 <!-- Parameters --> 12 13 <!-- which revision attribute to include: can only be sysv or systemd, 14 but we leave checking to the caller--> 15 <xsl:param name="revision" select="'sysv'"/> 12 16 13 17 <!-- use package management ? … … 70 74 71 75 <xsl:template match="/"> 72 <xsl:apply-templates select="//sect1"/> 76 <xsl:apply-templates select="//sect1[not(@revision) or 77 @revision=$revision]"/> 73 78 </xsl:template> 74 79 75 80 <xsl:template match="sect1"> 81 <!-- Since this xsl:if tag encloses the whole template, it would 82 be much better to transpose this condition to the select part 83 of the "calling" apply-template. But that would change the numbering, 84 so that it would be difficult to compare to previous versions. So for 85 version 2.4, let us keep this --> 76 86 <xsl:if test="(../@id='chapter-temporary-tools' or 77 87 ../@id='chapter-building-system' or 78 88 ../@id='chapter-bootscripts' or 79 89 ../@id='chapter-bootable') and 80 count(descendant::screen/userinput) > 0 and 81 count(descendant::screen/userinput) > 82 count(descendant::screen[@role='nodump']) and 83 count(descendant::screen/userinput) > 84 count(descendant::screen/userinput[starts-with(string(),'chroot')])"> 90 (sect2[not(@revision) or @revision=$revision]//..|.)/ 91 screen[(not(@role) or @role != 'nodump') and 92 (not(@revision) or @revision=$revision)]/ 93 userinput[not(starts-with(string(),'chroot'))]"> 85 94 <!-- The last condition is a hack to allow previous versions of the 86 95 book where the chroot commands did not have role="nodump". … … 149 158 <xsl:text>cd $PKGDIR
</xsl:text> 150 159 </xsl:if> 151 <xsl:apply-templates select="sect2| 152 screen[not(@role) or 153 @role!='nodump']/userinput"/> 160 <xsl:apply-templates select="sect2[not(@revision) or 161 @revision=$revision] | 162 screen[(not(@role) or 163 @role!='nodump') and 164 (not(@revision) or 165 @revision=$revision)]/userinput"/> 154 166 <xsl:if test="@id='ch-system-creatingdirs' and $pkgmngt='y'"> 155 167 <xsl:apply-templates … … 174 186 <xsl:template match="sect2"> 175 187 <xsl:apply-templates 176 select=".//screen[not(@role) or 177 @role != 'nodump']/userinput[ 188 select=".//screen[(not(@role) or 189 @role != 'nodump') and 190 (not(@revision) or 191 @revision=$revision)]/userinput[ 178 192 @remap = 'pre' or 179 193 @remap = 'configure' or … … 214 228 </xsl:if> 215 229 <xsl:apply-templates 216 select=".//screen[not(@role) or 217 @role != 'nodump']/userinput[@remap = 'install']"/> 230 select=".//screen[(not(@role) or 231 @role != 'nodump') and 232 (not(@revision) or 233 @revision=$revision)]/userinput[@remap = 'install']"/> 218 234 <xsl:if test="ancestor::chapter[@id != 'chapter-temporary-tools'] and 219 235 $pkgmngt = 'y' and … … 319 335 <xsl:apply-templates 320 336 select=".//screen[ 321 not(@role) or 322 @role != 'nodump' 337 (not(@role) or 338 @role != 'nodump') and 339 (not(@revision) or 340 @revision=$revision) 323 341 ]/userinput[ 324 342 not(@remap) or
Note:
See TracChangeset
for help on using the changeset viewer.