Changeset 12fc178 for BLFS/xsl


Ignore:
Timestamp:
11/21/2015 08:46:54 AM (9 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
cf8e060
Parents:
66f8df0
Message:

Add external dependencies to "packages.xml". Next step is to display
them in the dependency tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/gen_pkg_list.xsl

    r66f8df0 r12fc178  
    247247  <xsl:template match="para" mode="dependency">
    248248    <xsl:variable name="status" select="./@role"/>
    249 <!-- No ulink for now (see special case for Perl modules) -->
     249<!-- First internal dependencies -->
    250250    <xsl:for-each select="./xref">
    251251      <xsl:choose>
     
    278278      </xsl:choose>
    279279    </xsl:for-each>
     280<!-- then external dependencies -->
     281    <xsl:for-each select="./ulink">
     282      <xsl:text>
     283            </xsl:text>
     284      <xsl:element name="dependency">
     285        <xsl:attribute name="status">
     286          <xsl:value-of select="$status"/>
     287        </xsl:attribute>
     288        <xsl:attribute name="name">
     289          <xsl:value-of select="normalize-space(text())"/>
     290        </xsl:attribute>
     291        <xsl:attribute name="type">link</xsl:attribute>
     292      </xsl:element>
     293    </xsl:for-each>
    280294  </xsl:template>
    281295
Note: See TracChangeset for help on using the changeset viewer.