1625N/AFrom aa97249b332f23fec7b0575ab5d634b8180dcada Mon Sep 17 00:00:00 2001
1625N/AFrom: Alan Coopersmith <alan.coopersmith@oracle.com>
1625N/ADate: Tue, 5 Jan 2016 15:15:41 -0800
1625N/ASubject: [PATCH:xorg-sgml-doctools] Set generate.consistent.ids in xsl
1625N/A stylesheets for more repeatable builds
1625N/A
1625N/ACauses auto-generation of id attributes to use values based on position in
1625N/Adocument, such as id="id-1.5.9.5.2", instead of based on memory address of
1625N/Aparse tree, such as id="idm140664351287904", so that generated documents
1625N/Aend up with the same contents across rebuilds & platforms (especially on
1625N/Aplatforms using address space layout randomization).
1625N/A
1625N/ADoes not guarantee long-term stability of links across releases, just
1625N/Arepeatability when building the same release multiple times - values
1625N/Awill change when documents are edited to add/remove/reorder sections.
1625N/A
1625N/AOnly effective when used with version 1.77 or later of the
1625N/ADocBook XSL stylesheets (released in 2012).
1625N/A
1625N/ASigned-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
1625N/A---
1625N/A xorg-chunk.xsl | 7 +++++++
1625N/A xorg-fo.xsl | 7 +++++++
1625N/A xorg-xhtml.xsl | 6 ++++++
1625N/A xorg.xsl | 6 ++++++
1625N/A 4 files changed, 26 insertions(+)
1625N/A
1625N/Adiff --git a/xorg-chunk.xsl b/xorg-chunk.xsl
1625N/Aindex 93b18b5..2e7f7b5 100644
1625N/A--- a/xorg-chunk.xsl
1625N/A+++ b/xorg-chunk.xsl
1625N/A@@ -44,6 +44,13 @@
1625N/A <!-- Index links should point to indexterm location, not start of section -->
1625N/A <xsl:param name="index.links.to.section" select="0"/>
1625N/A
1625N/A+ <!--
1625N/A+ Use element count instead of random number for id generation, for more
1625N/A+ repeatable builds
1625N/A+ -->
1625N/A+ <xsl:param name="generate.consistent.ids" select="1"/>
1625N/A+
1625N/A+
1625N/A <!-- HTML Parameters -->
1625N/A
1625N/A <!-- Uses XSLT Extension to provide more valid and better formatted elements-->
1625N/Adiff --git a/xorg-fo.xsl b/xorg-fo.xsl
1625N/Aindex 4680db3..41fb3f3 100644
1625N/A--- a/xorg-fo.xsl
1625N/A+++ b/xorg-fo.xsl
1625N/A@@ -41,6 +41,13 @@
1625N/A <xsl:attribute name="break-after">page</xsl:attribute>
1625N/A </xsl:attribute-set>
1625N/A
1625N/A+ <!--
1625N/A+ Use element count instead of random number for id generation, for more
1625N/A+ repeatable builds
1625N/A+ -->
1625N/A+ <xsl:param name="generate.consistent.ids" select="1"/>
1625N/A+
1625N/A+
1625N/A <!-- Pagination and General Styles FO Parameters -->
1625N/A <!--
1625N/A Speed up ps & pdf creation by not creating pages with "draft" image,
1625N/Adiff --git a/xorg-xhtml.xsl b/xorg-xhtml.xsl
1625N/Aindex d9b7b3e..502aafc 100644
1625N/A--- a/xorg-xhtml.xsl
1625N/A+++ b/xorg-xhtml.xsl
1625N/A@@ -44,6 +44,12 @@
1625N/A <!-- Index links should point to indexterm location, not start of section -->
1625N/A <xsl:param name="index.links.to.section" select="0"/>
1625N/A
1625N/A+ <!--
1625N/A+ Use element count instead of random number for id generation, for more
1625N/A+ repeatable builds
1625N/A+ -->
1625N/A+ <xsl:param name="generate.consistent.ids" select="1"/>
1625N/A+
1625N/A <!-- HTML Parameters -->
1625N/A
1625N/A <!-- Uses XSLT Extension to provide more valid and better formatted elements-->
1625N/Adiff --git a/xorg.xsl b/xorg.xsl
1625N/Aindex 0a2ff62..ff99273 100644
1625N/A--- a/xorg.xsl
1625N/A+++ b/xorg.xsl
1625N/A@@ -41,6 +41,12 @@ DEALINGS IN THE SOFTWARE.
1625N/A <!-- Index links should point to indexterm location, not start of section -->
1625N/A <xsl:param name="index.links.to.section" select="0"/>
1625N/A
1625N/A+ <!--
1625N/A+ Use element count instead of random number for id generation, for more
1625N/A+ repeatable builds
1625N/A+ -->
1625N/A+ <xsl:param name="generate.consistent.ids" select="1"/>
1625N/A+
1625N/A <!-- PDF bookmarks extensions for FOP version 0.90 and later will be used. -->
1625N/A <xsl:param name="fop.extensions" select="0"></xsl:param>
1625N/A <xsl:param name="fop1.extensions" select="1"></xsl:param>
1625N/A--
1625N/A2.6.1
1625N/A