Changeset 1814367 for LFS/lfs.xsl


Ignore:
Timestamp:
03/27/2017 04:14:49 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, trunk
Children:
5e59386
Parents:
0ad3a33
Message:

Fix the case of the "symlinks.xml" file, which has revision attributes in sect2, which defeats a filter
based solely on screen and sect1 attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r0ad3a33 r1814367  
    5454 
    5555  <xsl:template match="sect1">
     56<!-- Since this xsl:if tag encloses the whole template, it would
     57     be much better to transpose this condition to the select part
     58     of the "calling" apply-template. But that would change the numbering,
     59     so that it would be difficult to compare to previous versions. So for
     60     version 2.4, let us keep this -->
    5661        <xsl:if test="(../@id='chapter-temporary-tools' or
    5762                  ../@id='chapter-building-system' or
    5863                  ../@id='chapter-bootscripts' or
    5964                  ../@id='chapter-bootable') and
    60                   count(descendant::screen/userinput) &gt; 0 and
    61                   count(descendant::screen/userinput) &gt;
    62                       count(descendant::screen[@role='nodump']) and
    63                   count(descendant::screen/userinput) &gt;
    64                       count(descendant::screen/userinput[starts-with(string(),'chroot')])">
     65                  (sect2[not(@revision) or @revision=$revision]//..|.)/
     66                      screen[(not(@role) or @role != 'nodump') and
     67                             (not(@revision) or @revision=$revision)]/
     68                          userinput[not(starts-with(string(),'chroot'))]">
    6569<!-- The last condition is a hack to allow previous versions of the
    6670     book where the chroot commands did not have role="nodump".
Note: See TracChangeset for help on using the changeset viewer.