Ignore:
Timestamp:
02/01/2012 11:29:37 PM (12 years ago)
Author:
Thomas Pegg <thomasp@…>
Branches:
2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
2c9a16b
Parents:
f5dc6d7
Message:

Commit Pierre Labastie's patch for including package management support in jhalfs. NOTE: Package management is by default disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/packages.xsl

    rf5dc6d7 r7072e1f  
    1414  <xsl:param name="kernel" select="2.6"/>
    1515
     16  <!-- Should we include a package manager -->
     17  <xsl:param name="pkgmngt" select="n"/>
     18
    1619  <xsl:template match="/">
    1720    <xsl:apply-templates select="//para"/>
     21    <xsl:if test="$pkgmngt='y'">
     22      <xsl:apply-templates
     23        select="document('packageManager.xml')//sect1[@id='package']//para"/>
     24    </xsl:if>
    1825  </xsl:template>
    1926
     
    2734        <xsl:with-param name="url" select="ulink/@url"/>
    2835      </xsl:call-template>
    29       <xsl:text>&#xA;</xsl:text>
    3036    </xsl:if>
    3137  </xsl:template>
     
    3339  <xsl:template name="package_name">
    3440    <xsl:param name="url" select="foo"/>
    35     <xsl:param name="sub-url" select="substring-after($url,'/')"/>
     41    <xsl:variable name="sub-url" select="substring-after($url,'/')"/>
    3642    <xsl:choose>
    3743      <xsl:when test="contains($sub-url,'/')">
     
    4551          <xsl:when test="contains($sub-url,'?')">
    4652            <xsl:value-of select="substring-before($sub-url,'?')"/>
     53            <xsl:text>&#xA;</xsl:text>
    4754          </xsl:when>
    4855          <xsl:otherwise>
    4956            <xsl:value-of select="$sub-url"/>
     57            <xsl:text>&#xA;</xsl:text>
    5058          </xsl:otherwise>
    5159        </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.