Changeset a4eaba6


Ignore:
Timestamp:
01/27/2024 09:42:07 PM (5 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
81f727a, 8ccf082a
Parents:
5d064fb
git-author:
Pierre Labastie <pierre.labastie@…> (01/27/2024 04:31:56 PM)
git-committer:
Pierre Labastie <pierre.labastie@…> (01/27/2024 09:42:07 PM)
Message:

Tidy doctype and xml declarations in .html output

Part of a patch by Boian Berberov

Location:
stylesheets/lfs-xsl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/chunk-slave.xsl

    r5d064fb ra4eaba6  
    1010  <!-- Upstream XHTML presentation templates -->
    1111  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
     12
     13  <xsl:param name="chunker.output.method" select="'xml'"/>
     14  <xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
     15  <xsl:param name="chunker.output.media-type" select="'application/xhtml+xml'"/>
     16  <xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD XHTML 1.0 Strict//EN'"/>
     17  <xsl:param name="chunker.output.doctype-system" select="'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'"/>
     18  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
     19  <xsl:param name="chunker.output.indent" select="'no'"/>
    1220
    1321  <!-- Including our customized elements templates -->
     
    3139  <xsl:param name="ulink.target" select="''"/>
    3240  <xsl:param name="css.decoration" select="0"/>
    33 
    34   <!-- No XML declaration -->
    35   <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
    3641
    3742  <!-- Control generation of ToCs and LoTs -->
  • stylesheets/lfs-xsl/nochunks.xsl

    r5d064fb ra4eaba6  
    1111  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
    1212
     13  <xsl:output method="xml"
     14              encoding="UTF-8"
     15              media-type="application/xhtml+xml"
     16              doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
     17              doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
     18              omit-xml-declaration="yes"
     19              indent="no" />
    1320  <!-- Include our customized templates -->
    1421  <xsl:include href="common.xsl"/>
Note: See TracChangeset for help on using the changeset viewer.