r3699 - jhalfs/branches/ablfs/BLFS/xsl

pierre at higgs.linuxfromscratch.org pierre at higgs.linuxfromscratch.org
Mon Apr 15 13:48:24 PDT 2013


Author: pierre
Date: Mon Apr 15 13:48:24 2013
New Revision: 3699

Log:
Further correction of make_book.xsl

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

Modified: jhalfs/branches/ablfs/BLFS/xsl/make_book.xsl
==============================================================================
--- jhalfs/branches/ablfs/BLFS/xsl/make_book.xsl	Mon Apr 15 06:53:59 2013	(r3698)
+++ jhalfs/branches/ablfs/BLFS/xsl/make_book.xsl	Mon Apr 15 13:48:24 2013	(r3699)
@@ -62,9 +62,11 @@
         </xsl:when>
         <xsl:otherwise>
           <xsl:choose>
-            <xsl:when test="not(id($list)/self::sect1|sect2|para|bridgehead)">
+            <xsl:when test="not(id($list)[self::sect1 or self::sect2 or self::para or self::bridgehead])">
               <xsl:apply-templates
-                   select="//sect1[contains(@id,'xorg7') and contains(string(.//userinput),$list)]"
+                   select="//sect1[contains(@id,'xorg7')
+                               and contains(string(.//userinput),
+                                            concat($list,'-'))]"
                    mode="xorg">
                 <xsl:with-param name="package" select="$list"/>
               </xsl:apply-templates>
@@ -293,22 +295,22 @@
     <xsl:param name="package"/>
     <xsl:variable name="tarball">
       <xsl:call-template name="tarball">
-        <xsl:with-param name="package" select="$package"/>
+        <xsl:with-param name="package" select="concat($package,'-')"/>
         <xsl:with-param name="cat-md5"
-                        select="string(.//userinput[starts-with(string(),'cat')])"/>
+                        select="string(.//userinput[starts-with(string(),'cat ')])"/>
       </xsl:call-template>
     </xsl:variable>
     <xsl:variable name="md5sum">
       <xsl:call-template name="md5sum">
-        <xsl:with-param name="package" select="$package"/>
+        <xsl:with-param name="package" select="concat($package,'-')"/>
         <xsl:with-param name="cat-md5"
-                        select=".//userinput[starts-with(string(),'cat')]"/>
+                        select=".//userinput[starts-with(string(),'cat ')]"/>
       </xsl:call-template>
     </xsl:variable>
     <xsl:variable name="install-instructions">
       <xsl:call-template name="inst-instr">
         <xsl:with-param name="inst-instr"
-                        select=".//userinput[starts-with(string(),'for')]"/>
+                        select=".//userinput[starts-with(string(),'for ')]"/>
       </xsl:call-template>
     </xsl:variable>
     <xsl:element name="sect1">



More information about the alfs-log mailing list