summaryrefslogtreecommitdiff
path: root/chunked/ch13.html
blob: 7b7cea4cdbbdd4fe57dd105c2a9c7f2e2c52cfa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Chapter 13. BlockId Element</title><link rel="stylesheet" type="text/css" href="docbook-xsl.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="home" href="index.html" title="AsciiDoc User Guide" /><link rel="up" href="index.html" title="AsciiDoc User Guide" /><link rel="prev" href="ch12.html" title="Chapter 12. Block Titles" /><link rel="next" href="ch14.html" title="Chapter 14. AttributeList Element" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><td width="20%" align="left"><a accesskey="p" href="ch12.html"><img src="images/icons/prev.png" alt="Prev" /></a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch14.html"><img src="images/icons/next.png" alt="Next" /></a></td></tr></table><hr /></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="X41"></a>Chapter 13. BlockId Element</h1></div></div></div><p>A <span class="emphasis"><em>BlockId</em></span> is a single line block element containing a unique
identifier enclosed in double square brackets. It is used to assign an
identifier to the ensuing block element. For example:</p><pre class="literallayout">[[chapter-titles]]
Chapter titles can be ...</pre><p>The preceding example identifies the ensuing paragraph so it can be
referenced from other locations, for example with
<code class="literal">&lt;&lt;chapter-titles,chapter titles&gt;&gt;</code>.</p><p><span class="emphasis"><em>BlockId</em></span> elements can be applied to Title, Paragraph, List,
DelimitedBlock, Table and BlockMacro elements.  The BlockId element
sets the <code class="literal">{id}</code> attribute for substitution in the subsequent block’s
markup template. If a second positional argument is supplied it sets
the <code class="literal">{reftext}</code> attribute which is used to set the DocBook <code class="literal">xreflabel</code>
attribute.</p><p>The <span class="emphasis"><em>BlockId</em></span> element has the same syntax and serves the same function
to the <a class="link" href="ch21.html#X30" title="anchor">anchor inline macro</a>.</p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch12.html"><img src="images/icons/prev.png" alt="Prev" /></a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch14.html"><img src="images/icons/next.png" alt="Next" /></a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html"><img src="images/icons/home.png" alt="Home" /></a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>