r3702 - jhalfs/branches/ablfs/BLFS/xsl

pierre at higgs.linuxfromscratch.org pierre at higgs.linuxfromscratch.org
Fri Apr 19 14:38:09 PDT 2013


Author: pierre
Date: Fri Apr 19 14:38:09 2013
New Revision: 3702

Log:
Further deps modifications
in order to be sure that the preceding page is a dep in the X chapter

Modified:
   jhalfs/branches/ablfs/BLFS/xsl/gen_pkg_list.xsl

Modified: jhalfs/branches/ablfs/BLFS/xsl/gen_pkg_list.xsl
==============================================================================
--- jhalfs/branches/ablfs/BLFS/xsl/gen_pkg_list.xsl	Thu Apr 18 09:15:26 2013	(r3701)
+++ jhalfs/branches/ablfs/BLFS/xsl/gen_pkg_list.xsl	Fri Apr 19 14:38:09 2013	(r3702)
@@ -207,20 +207,32 @@
                         preceding-sibling::sect1[@id != 'xorg7'])">
             <xsl:text>
             </xsl:text>
-            <xsl:element name="dependency">
-              <xsl:attribute name="status">required</xsl:attribute>
-              <xsl:attribute name="name">
-                <xsl:choose>
-                  <xsl:when test="@id='xterm2'">xorg7-driver</xsl:when>
-                  <xsl:otherwise>
-                    <xsl:value-of
-                      select="preceding-sibling::sect1[1]/@id"/>
-                  </xsl:otherwise>
-                </xsl:choose>
-              </xsl:attribute>
-              <xsl:attribute name="type">ref</xsl:attribute>
-            </xsl:element>
-
+            <xsl:choose>
+              <xsl:when test="contains(preceding-sibling::sect1[1]/@id,
+                                       'xorg7-') and not(@id='printproto')">
+                <xsl:call-template name="expand-deps">
+                  <xsl:with-param name="section">
+                    <xsl:value-of select="preceding-sibling::sect1[1]/@id"/>
+                  </xsl:with-param>
+                  <xsl:with-param name="status" select="'required'"/>
+                </xsl:call-template>
+              </xsl:when>
+              <xsl:otherwise>
+                <xsl:element name="dependency">
+                  <xsl:attribute name="status">required</xsl:attribute>
+                  <xsl:attribute name="name">
+                    <xsl:choose>
+                      <xsl:when test="@id='printproto'">xorg-server</xsl:when>
+                      <xsl:otherwise>
+                        <xsl:value-of
+                          select="preceding-sibling::sect1[1]/@id"/>
+                      </xsl:otherwise>
+                    </xsl:choose>
+                  </xsl:attribute>
+                  <xsl:attribute name="type">ref</xsl:attribute>
+                </xsl:element>
+              </xsl:otherwise>
+            </xsl:choose>
           </xsl:if>
           <xsl:apply-templates select=".//para[@role='required' or
                                                @role='recommended' or



More information about the alfs-log mailing list