1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd"> 3<article id="anchor_test" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $" 4 xmlns:xi="http://www.w3.org/2001/XInclude"> 5 <title>Anchor Test</title> 6 <section id="anchor_test.anchors"> 7 <title>Anchors</title> 8 <para> 9 <anchor id="a1"/>A paragraph containing several anchors. <anchor id="a2"/>We 10 want to make sure they appear in the correct place. <anchor id="a3"/> 11 </para> 12 <bridgehead renderas="sect3" id="anchor_test.anchors.h0"> 13 <phrase id="anchor_test.anchors.this_heading_shouldn_t_pick_up_the_previous_anchor"/><link 14 linkend="anchor_test.anchors.this_heading_shouldn_t_pick_up_the_previous_anchor">This 15 heading shouldn't pick up the previous anchor</link> 16 </bridgehead> 17 <anchor id="a4"/> 18 <bridgehead renderas="sect3" id="anchor_test.anchors.h1"> 19 <phrase id="anchor_test.anchors.this_heading_should_pick_up_the_previous_anchor"/><link 20 linkend="anchor_test.anchors.this_heading_should_pick_up_the_previous_anchor">This 21 heading should pick up the previous anchor</link> 22 </bridgehead> 23 <anchor id="a5"/> 24 <bridgehead renderas="sect3" id="anchor_test.anchors.h2"> 25 <phrase id="anchor_test.anchors.and_this_one"/><link linkend="anchor_test.anchors.and_this_one">And 26 this one</link> 27 </bridgehead> 28 <anchor id="a6"/> 29 <bridgehead renderas="sect3" id="anchor_test.anchors.h3"> 30 <phrase id="anchor_test.anchors.also_this_one"/><link linkend="anchor_test.anchors.also_this_one">Also 31 this one</link> 32 </bridgehead> 33 <anchor id="a7"/> 34 <bridgehead renderas="sect3" id="anchors.finally_this"> 35 Finally this 36 </bridgehead> 37 <anchor id="a8"/> 38 </section> 39 <section id="anchor_test.section_anchor"> 40 <title><anchor id="a9"/>Section Anchor</title> 41 <section id="anchor_test.nested_section"> 42 <title><anchor id="a10"/>Nested Section</title> 43 </section> 44 <anchor id="a11"/> 45 </section> 46 <section id="anchor_test.conditional_section_anchor"> 47 <title><anchor id="a12"/>Conditional Section Anchor</title> 48 </section> 49 <section id="anchor_test.lists"> 50 <title>Lists</title> <anchor id="a14"/> 51 <itemizedlist> 52 <listitem> 53 <simpara> 54 Item 1 55 </simpara> 56 </listitem> 57 <listitem> 58 <simpara> 59 Item 2 60 </simpara> 61 </listitem> 62 <listitem> 63 <simpara> 64 Nested List <anchor id="a15"/> 65 <itemizedlist> 66 <listitem> 67 <simpara> 68 Nested Item 1 69 </simpara> 70 </listitem> 71 <listitem> 72 <simpara> 73 Nested Item 2 74 </simpara> 75 </listitem> 76 <listitem> 77 <simpara> 78 <anchor id="a16"/>Nested Item 3 79 </simpara> 80 </listitem> 81 </itemizedlist> 82 </simpara> 83 </listitem> 84 <listitem> 85 <simpara> 86 Item 3 87 </simpara> 88 </listitem> 89 </itemizedlist> 90 </section> 91 <section id="anchor_test.anchors_in_templates"> 92 <title>Anchors in templates</title> 93 <para> 94 <anchor id="t1"/>Some text. 95 </para> 96 <para> 97 <anchor id="t2"/>Text content 98 </para> 99 </section> 100 <section id="anchor_test.anchors_in_syntax_highlighted_code"> 101 <title>Anchors in syntax highlighted code</title> 102<programlisting><phrase role="keyword">int</phrase> <anchor id="s1"/><phrase role="identifier">main</phrase><phrase role="special">()</phrase> <phrase role="special">{}</phrase> 103</programlisting> 104 </section> 105 <section id="anchor_test.nested_anchors"> 106 <title>Nested anchors</title> 107 <table frame="all" id="anchor_test.nested_anchors.t0"> 108 <title>Table with anchors</title> 109 <tgroup cols="1"> 110 <thead> 111 <row> 112 <entry> 113 <para> 114 Heading 115 </para> 116 </entry> 117 </row> 118 </thead> 119 <tbody> 120 <row> 121 <entry> 122 <para> 123 <anchor id="table1"/>Cell 1 124 </para> 125 </entry> 126 </row> 127 <row> 128 <entry> 129 <para> 130 <anchor id="table2"/>Cell 2 131 </para> 132 </entry> 133 </row> 134 <row> 135 <entry> 136 <para> 137 Cell 3<anchor id="table3"/> 138 </para> 139 </entry> 140 </row> 141 </tbody> 142 </tgroup> 143 </table> 144 </section> 145</article> 146