Changeset 4a9c50a
- Timestamp:
- 01/18/2024 09:47:51 AM (4 months ago)
- 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. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r0632116 r4a9c50a 49 49 endif 50 50 51 # https://github.com/docbook/xslt10-stylesheets/issues/23952 SED_XMLNS_XLINK = sed -i 's/xmlns:xlink.*xlink"//'53 54 51 book: validate profile-html 55 52 @echo "Generating chunked XHTML files at $(BASEDIR)/ ..." … … 65 62 $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets 66 63 $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html 67 $(Q)$(SED_XMLNS_XLINK) $(BASEDIR)/longindex.html68 64 69 65 $(Q)mkdir -p $(BASEDIR)/images … … 118 114 # $(RENDERTMP)/lfs-html2.xml 119 115 120 $(Q)$(SED_XMLNS_XLINK) $(BASEDIR)/$(NOCHUNKS_OUTPUT)121 116 @echo "Running Tidy..." 122 117 $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true -
stylesheets/lfs-xsl/xhtml/lfs-index.xsl
r0632116 r4a9c50a 23 23 <xsl:template match="index" mode="recursive-chunk-filename"> 24 24 <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> 25 49 </xsl:template> 26 50
Note:
See TracChangeset
for help on using the changeset viewer.