source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/generate.id.attributes.xml@ 15c7d39

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 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 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 15c7d39 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: 2.0 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.id.attributes">
7<refmeta>
8<refentrytitle>generate.id.attributes</refentrytitle>
9<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
10</refmeta>
11<refnamediv>
12<refname>generate.id.attributes</refname>
13<refpurpose>Generate ID attributes on container elements?</refpurpose>
14</refnamediv>
15
16<refsynopsisdiv>
17<src:fragment xml:id="generate.id.attributes.frag">
18<xsl:param name="generate.id.attributes" select="0"/>
19</src:fragment>
20</refsynopsisdiv>
21
22<refsection><info><title>Description</title></info>
23
24<para>If non-zero, the HTML stylesheet will generate ID attributes on
25containers. For example, the markup:</para>
26
27<screen>&lt;section id="foo"&gt;&lt;title&gt;Some Title&lt;/title&gt;
28&lt;para&gt;Some para.&lt;/para&gt;
29&lt;/section&gt;</screen>
30
31<para>might produce:</para>
32
33<screen>&lt;div class="section" id="foo"&gt;
34&lt;h2&gt;Some Title&lt;/h2&gt;
35&lt;p&gt;Some para.&lt;/p&gt;
36&lt;/div&gt;</screen>
37
38<para>The alternative is to generate anchors:</para>
39
40<screen>&lt;div class="section"&gt;
41&lt;h2&gt;&lt;a name="foo"&gt;&lt;/a&gt;Some Title&lt;/h2&gt;
42&lt;p&gt;Some para.&lt;/p&gt;
43&lt;/div&gt;</screen>
44
45<para>Because the <tag class="attribute">name</tag> attribute of
46the <tag>a</tag> element and the <tag class="attribute">id</tag>
47attribute of other tags are both of type <quote>ID</quote>, producing both
48generates invalid documents.</para>
49
50<para>As of version 1.50, you can use this switch to control which type of
51identifier is generated. For backwards-compatibility, generating
52<tag>a</tag> anchors is preferred.</para>
53
54<para>Note: at present, this switch is incompletely implemented.
55Disabling ID attributes will suppress them, but enabling ID attributes
56will not suppress the anchors.</para>
57
58</refsection>
59</refentry>
Note: See TracBrowser for help on using the repository browser.