Changeset 5c575e1 for HLFS/hlfs.xsl


Ignore:
Timestamp:
06/03/2007 10:27:05 AM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
139c34e
Parents:
05760bc
Message:

HLFS: Added support to select the kernel series based book.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/hlfs.xsl

    r05760bc r5c575e1  
    1616  <!-- What libc implentation must be used? -->
    1717  <xsl:param name="model" select="glibc"/>
     18
     19  <!-- What kernel serie must be used? -->
     20  <xsl:param name="kernel" select="2.6"/>
    1821
    1922  <!-- Is the host kernel using grsecurity? -->
     
    5255                  ../@id='chapter-bootable') and
    5356                  ((@condition=$model or not(@condition)) and
     57                  ((@vendor=$kernel or not(@vendor)) and
    5458                  count(descendant::screen/userinput) &gt; 0 and
    5559                  count(descendant::screen/userinput) &gt;
     
    145149  <xsl:template match="screen">
    146150    <xsl:if test="(@condition=$model or not(@condition)) and
     151                  (@vendor=$kernel or not(@vendor)) and
    147152                  child::* = userinput and not(@role = 'nodump')">
    148153      <xsl:apply-templates select="userinput" mode="screen"/>
     
    320325
    321326  <xsl:template match="literal">
    322     <xsl:if test="@condition=$model or not(@condition)">
     327    <xsl:if test="(@condition=$model or not(@condition)) and
     328                  (@vendor=$kernel or not(@vendor))">
    323329      <xsl:apply-templates/>
    324330    </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.