Author: pierre
Date: Sat Nov 21 00:46:54 2015
New Revision: 3839

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

Modified:
   jhalfs/trunk/BLFS/xsl/gen_pkg_list.xsl

Modified: jhalfs/trunk/BLFS/xsl/gen_pkg_list.xsl
==============================================================================
--- jhalfs/trunk/BLFS/xsl/gen_pkg_list.xsl      Fri Nov 20 13:42:23 2015        
(r3838)
+++ jhalfs/trunk/BLFS/xsl/gen_pkg_list.xsl      Sat Nov 21 00:46:54 2015        
(r3839)
@@ -246,7 +246,7 @@
 
   <xsl:template match="para" mode="dependency">
     <xsl:variable name="status" select="./@role"/>
-<!-- No ulink for now (see special case for Perl modules) -->
+<!-- First internal dependencies -->
     <xsl:for-each select="./xref">
       <xsl:choose>
 <!-- Avoid depending of myself -->
@@ -277,6 +277,20 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:for-each>
+<!-- then external dependencies -->
+    <xsl:for-each select="./ulink">
+      <xsl:text>
+            </xsl:text>
+      <xsl:element name="dependency">
+        <xsl:attribute name="status">
+          <xsl:value-of select="$status"/>
+        </xsl:attribute>
+        <xsl:attribute name="name">
+          <xsl:value-of select="normalize-space(text())"/>
+        </xsl:attribute>
+        <xsl:attribute name="type">link</xsl:attribute>
+      </xsl:element>
+    </xsl:for-each>
   </xsl:template>
 
   <xsl:template match="listitem" mode="prec-dep">
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to