summaryrefslogtreecommitdiff
path: root/xorg.xsl
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2016-01-05 15:15:41 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2016-01-05 15:29:40 -0800
commitaa97249b332f23fec7b0575ab5d634b8180dcada (patch)
tree52a45bc53339dcaf6402f0bc4d3f7dfbcb09a181 /xorg.xsl
parent667bbabad33d034cdf20f215ad5110e92ba9d41a (diff)
Set generate.consistent.ids in xsl stylesheets for more repeatable builds
Causes auto-generation of id attributes to use values based on position in document, such as id="id-1.5.9.5.2", instead of based on memory address of parse tree, such as id="idm140664351287904", so that generated documents end up with the same contents across rebuilds & platforms (especially on platforms using address space layout randomization). Does not guarantee long-term stability of links across releases, just repeatability when building the same release multiple times - values will change when documents are edited to add/remove/reorder sections. Only effective when used with version 1.77 or later of the DocBook XSL stylesheets (released in 2012). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xorg.xsl')
-rw-r--r--xorg.xsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/xorg.xsl b/xorg.xsl
index 0a2ff62..ff99273 100644
--- a/xorg.xsl
+++ b/xorg.xsl
@@ -41,6 +41,12 @@ DEALINGS IN THE SOFTWARE.
<!-- Index links should point to indexterm location, not start of section -->
<xsl:param name="index.links.to.section" select="0"/>
+ <!--
+ Use element count instead of random number for id generation, for more
+ repeatable builds
+ -->
+ <xsl:param name="generate.consistent.ids" select="1"/>
+
<!-- PDF bookmarks extensions for FOP version 0.90 and later will be used. -->
<xsl:param name="fop.extensions" select="0"></xsl:param>
<xsl:param name="fop1.extensions" select="1"></xsl:param>