Changeset 4a9c50a


Ignore:
Timestamp:
01/18/2024 09:47:51 AM (4 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib
Children:
6c100fb
Parents:
0632116 (diff), 270b173 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Automatic merge of trunk into multilib

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r0632116 r4a9c50a  
    4949endif
    5050
    51 # https://github.com/docbook/xslt10-stylesheets/issues/239
    52 SED_XMLNS_XLINK = sed -i 's/xmlns:xlink.*xlink"//'
    53 
    5451book: validate profile-html
    5552        @echo "Generating chunked XHTML files at $(BASEDIR)/ ..."
     
    6562        $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets
    6663        $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html
    67         $(Q)$(SED_XMLNS_XLINK) $(BASEDIR)/longindex.html
    6864
    6965        $(Q)mkdir -p $(BASEDIR)/images
     
    118114#                $(RENDERTMP)/lfs-html2.xml
    119115
    120         $(Q)$(SED_XMLNS_XLINK) $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    121116        @echo "Running Tidy..."
    122117        $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
  • stylesheets/lfs-xsl/xhtml/lfs-index.xsl

    r0632116 r4a9c50a  
    2323  <xsl:template match="index" mode="recursive-chunk-filename">
    2424    <xsl:text>longindex.html</xsl:text>
     25  </xsl:template>
     26
     27  <!-- The original template in {docbook-xsl}/xhtml/autoidx.xsl has
     28  a bug (https://github.com/docbook/xslt10-stylesheets/issues/239)
     29  that generates a <div> with a wrong xmlns:xlink attribute. So copy it
     30  here where the bug does not occur, (and simplify it a lot).-->
     31
     32  <xsl:template name="generate-basic-index">
     33    <xsl:param name="scope" select="NOTANODE"/>
     34
     35    <xsl:variable name="terms" select="//indexterm
     36      [count(.|key('letter',
     37                   translate(substring(&primary;, 1, 1),
     38                             &lowercase;,
     39                             &uppercase;
     40                            )
     41                  ) [&scope;][1]) = 1]"/>
     42    <div class="index">
     43      <xsl:apply-templates select="$terms" mode="index-div-basic">
     44        <xsl:with-param name="position" select="position()"/>
     45        <xsl:with-param name="scope" select="$scope"/>
     46        <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
     47      </xsl:apply-templates>
     48    </div>
    2549  </xsl:template>
    2650
Note: See TracChangeset for help on using the changeset viewer.