Ignore:
Timestamp:
06/03/2007 10:54:07 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:
6d48bb7
Parents:
5c575e1
Message:

HLFS: Select the proper kernel package for packages list and download.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/packages.xsl

    r5c575e1 r139c34e  
    88  <xsl:output method="text"/>
    99
     10  <!-- The libc model used for HLFS -->
     11  <xsl:param name="model" select="glibc"/>
     12
     13  <!-- The kernel series used for HLFS -->
     14  <xsl:param name="kernel" select="2.6"/>
     15
    1016  <xsl:template match="/">
    1117    <xsl:apply-templates select="//para"/>
     
    1319
    1420  <xsl:template match="para">
    15     <xsl:if test="contains(string(),'Download:')">
     21    <xsl:if test="contains(string(),'Download:') and
     22                  (ancestor::varlistentry[@condition=$model]
     23                  or not(ancestor::varlistentry[@condition])) and
     24                  (ancestor::varlistentry[@vendor=$kernel]
     25                  or not(ancestor::varlistentry[@vendor]))">
    1626      <xsl:call-template name="package_name">
    1727        <xsl:with-param name="url" select="ulink/@url"/>
Note: See TracChangeset for help on using the changeset viewer.