Changeset faa6594 for BLFS/xsl


Ignore:
Timestamp:
10/21/2023 07:45:28 PM (12 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
ddb0feb
Parents:
c801809
Message:

Add comments after adding kf5 and plasma to special

Location:
BLFS/xsl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/gen_config.xsl

    rc801809 rfaa6594  
    310310&#9;&#9;&#9;default&#9;</xsl:text>
    311311      <xsl:choose>
     312      <!-- for compound packages, default to selecting all the subpackages-->
    312313        <xsl:when test="contains(../name,'xorg') or
    313314                        contains(../name,'plasma') or
  • BLFS/xsl/gen_pkg_list.xsl

    rc801809 rfaa6594  
    359359<!-- do not depend on something which is not a dependency -->
    360360        <xsl:when test="@role='nodep'"/>
    361 <!-- Call list expansion when we have an xorg7 series of packages -->
     361<!-- Call list expansion when we have a compound package -->
    362362        <xsl:when test="contains(@linkend,'xorg7-') or
    363363                        @linkend='kf5-frameworks' or
  • BLFS/xsl/make_book.xsl

    rc801809 rfaa6594  
    6060     sect2 (python/perl modules/dependencies )
    6161     The templates after this one treat each of those cases.
    62      However, some items are xorg package names, and not id.
     62     However, some items are sub-packages of compound packages (xorg7-*,
     63     kf5, plasma), and not id.
    6364     We need special instructions in that case.
    6465     The difficulty is that some of those names *are* id's,
     
    6970    <xsl:if test="string-length($list) &gt; 0">
    7071      <xsl:choose>
     72        <!-- iterate if there are several packages in list -->
    7173        <xsl:when test="contains($list,' ')">
    7274          <xsl:call-template name="apply-list">
     
    7981          </xsl:call-template>
    8082        </xsl:when>
     83        <!-- From now on, $list contains only one package -->
     84        <!-- If it is a group, do nothing -->
    8185        <xsl:when test="contains($list,'groupxx')"/>
    8286        <xsl:otherwise>
     
    8993          <xsl:choose>
    9094            <xsl:when test="$is-lfs='true'">
     95            <!-- LFS package -->
    9196              <xsl:message>
    9297                <xsl:value-of select="$list"/>
     
    110115              </xsl:if>
    111116            </xsl:when>
    112             <xsl:when test="not(id($list)[self::sect1 or self::sect2 or self::para or self::bridgehead])">
     117            <xsl:when test="not(id($list)[self::sect1 or self::sect2])">
     118              <!-- This is a sub-package: parse the corresponding compound
     119                   package-->
    113120              <xsl:apply-templates
    114121                select="//sect1[(contains(@id,'xorg7') or
     
    117124                                 and .//userinput/literal[contains(string(),
    118125                                            concat($list,'-'))]]"
    119                    mode="xorg">
     126                   mode="compound">
    120127                <xsl:with-param name="package" select="$list"/>
    121128              </xsl:apply-templates>
     
    496503     but now we need to make an autonomous page from the global
    497504     one -->
    498   <xsl:template match="sect1" mode="xorg">
     505  <xsl:template match="sect1" mode="compound">
    499506    <xsl:param name="package"/>
    500     <!--DEBUG
    501     <xsl:message>
    502       <xsl:text>Entering sect1 template in xorg mode:
    503 - page id:</xsl:text>
    504       <xsl:value-of select="@id"/>
    505       <xsl:text>
    506 - package:</xsl:text>
    507       <xsl:value-of select="$package"/>
    508       <xsl:text>
    509 </xsl:text>
    510     </xsl:message> END DEBUG -->
    511507    <xsl:variable name="tarball">
    512508      <xsl:call-template name="tarball">
     
    619615<!-- get the tarball name from the text that comes from the .md5 file -->
    620616  <xsl:template name="tarball">
     617    <!-- $package must start with a space, and finish with a "-", to be
     618         sure to match exactly the package. Note that if we have two
     619         packages named e.g. "pkg1" and "pkg1-add", the second one may be
     620         matched by " pkg1-". So this only works if "pkg1" comes before
     621         "pkg1-add" in the md5 file. Presently this is the case in the book...
     622    -->
    621623    <xsl:param name="package"/>
    622624    <xsl:param name="cat-md5"/>
    623 <!-- DEBUG
    624 <xsl:message><xsl:text>Entering "tarball" template:
    625   package is: </xsl:text>
    626 <xsl:value-of select="$package"/><xsl:text>
    627   cat-md5 is: </xsl:text>
    628 <xsl:value-of select="$cat-md5"/>
    629 </xsl:message>
    630 END DEBUG -->
    631625    <xsl:choose>
    632626      <xsl:when test="contains(substring-before($cat-md5,$package),'&#xA;')">
Note: See TracChangeset for help on using the changeset viewer.