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

multilib-10.1
Last change on this file since 1fa2099 was 1fa2099, checked in by Thomas Trepl <thomas@…>, 5 years ago

Initial creation of multilib branch

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11565 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.