source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/generate.consistent.ids.xml@ dd2d8eb

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since dd2d8eb was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.9 KB
Line 
1<refentry xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 version="5.0" xml:id="generate.consistent.ids">
7<refmeta>
8<refentrytitle>generate.consistent.ids</refentrytitle>
9<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
10</refmeta>
11<refnamediv>
12<refname>generate.consistent.ids</refname>
13<refpurpose>Generate consistent id values if document is unchanged</refpurpose>
14</refnamediv>
15
16<refsynopsisdiv>
17<src:fragment xml:id="generate.consistent.ids.frag">
18<xsl:param name="generate.consistent.ids" select="0"/>
19</src:fragment>
20</refsynopsisdiv>
21
22<refsection><info><title>Description</title></info>
23
24<para>When the stylesheet assigns an id value to an output element,
25the generate-id() function may be used. That function may not
26produce consistent values between runs. Version control
27systems may misidentify the changing id values as changes
28to the document.</para>
29
30<para>If you set this parameter's value to 1, then the
31template named <literal>object.id</literal> will replace
32the use of the function generate-id() with
33<literal>&lt;xsl:number level="multiple" count="*"/&gt;</literal>.
34This counts preceding elements to generate a unique number for
35the id value.</para>
36
37<caution>
38<para>This param does not associate permanent unique id values
39with particular elements.
40The id values are consistent only as long as the document
41structure does not change.
42If the document structure changes, then the counting
43of elements changes, and all id values after
44the first such change may be different, even when there is
45no change to the element itself or its output.
46</para>
47</caution>
48
49<para>The default value of this parameter is zero, so generate-id() is used
50by default.</para>
51
52</refsection>
53</refentry>
Note: See TracBrowser for help on using the repository browser.