Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 6e019a662639ac6470f50dea3a4d8157 > files > 560

docbook-style-xsl-doc-1.79.2-4.mga7.noarch.rpm

<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <title>generate.id.attributes</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.2"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: Reference&nbsp;Documentation"><link rel="up" href="html.html" title="HTML"><link rel="prev" href="draft.watermark.image.html" title="draft.watermark.image"><link rel="next" href="generate.consistent.ids.html" title="generate.consistent.ids"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">generate.id.attributes</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="draft.watermark.image.html">Prev</a>&nbsp;</td><th width="60%" align="center">HTML</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="generate.consistent.ids.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="generate.id.attributes"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">generate.id.attributes</span></h2><p>generate.id.attributes &#8212; Generate ID attributes on container elements?</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a name="generate.id.attributes.frag"></a><pre class="programlisting">
&lt;xsl:param name="generate.id.attributes" select="0"&gt;&lt;/xsl:param&gt;
</pre></div><div class="refsection"><a name="d0e3001"></a><h2>Description</h2><p>If non-zero, the HTML stylesheet will generate ID attributes on
containers. For example, the markup:</p><pre class="screen">&lt;section id="foo"&gt;&lt;title&gt;Some Title&lt;/title&gt;
&lt;para&gt;Some para.&lt;/para&gt;
&lt;/section&gt;</pre><p>might produce:</p><pre class="screen">&lt;div class="section" id="foo"&gt;
&lt;h2&gt;Some Title&lt;/h2&gt;
&lt;p&gt;Some para.&lt;/p&gt;
&lt;/div&gt;</pre><p>The alternative is to generate anchors:</p><pre class="screen">&lt;div class="section"&gt;
&lt;h2&gt;&lt;a name="foo"&gt;&lt;/a&gt;Some Title&lt;/h2&gt;
&lt;p&gt;Some para.&lt;/p&gt;
&lt;/div&gt;</pre><p>Because the <code class="sgmltag-attribute">name</code> attribute of
the <code class="sgmltag-element">a</code> element and the <code class="sgmltag-attribute">id</code>
attribute of other tags are both of type <span class="quote">&#8220;<span class="quote">ID</span>&#8221;</span>, producing both
generates invalid documents.</p><p>As of version 1.50, you can use this switch to control which type of
identifier is generated. For backwards-compatibility, generating
<code class="sgmltag-element">a</code> anchors is preferred.</p><p>Note: at present, this switch is incompletely implemented.
Disabling ID attributes will suppress them, but enabling ID attributes
will not suppress the anchors.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="draft.watermark.image.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="html.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="generate.consistent.ids.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">draft.watermark.image&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;generate.consistent.ids</td></tr></table></div></body></html>