quickbook/test/anchor-1_1.gold
Daniel James 1531b4f348 Quickbook: Move more phrase parsing into local.common.
This change has two side effects: anchors are placed slightly better and
non-element/template square brackets are terminated by the end of a
paragraph.

[SVN r75357]
2011-11-06 22:21:32 +00:00

146 lines
4.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
<article id="anchor_test" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Anchor Test</title>
<section id="anchor_test.anchors">
<title>Anchors</title>
<para>
<anchor id="a1"/>A paragraph containing several anchors. <anchor id="a2"/>We
want to make sure they appear in the correct place. <anchor id="a3"/>
</para>
<bridgehead renderas="sect3" id="anchor_test.anchors.h0">
<phrase id="anchor_test.anchors.this_heading_shouldn_t_pick_up_the_previous_anchor"/><link
linkend="anchor_test.anchors.this_heading_shouldn_t_pick_up_the_previous_anchor">This
heading shouldn't pick up the previous anchor</link>
</bridgehead>
<anchor id="a4"/>
<bridgehead renderas="sect3" id="anchor_test.anchors.h1">
<phrase id="anchor_test.anchors.this_heading_should_pick_up_the_previous_anchor"/><link
linkend="anchor_test.anchors.this_heading_should_pick_up_the_previous_anchor">This
heading should pick up the previous anchor</link>
</bridgehead>
<anchor id="a5"/>
<bridgehead renderas="sect3" id="anchor_test.anchors.h2">
<phrase id="anchor_test.anchors.and_this_one"/><link linkend="anchor_test.anchors.and_this_one">And
this one</link>
</bridgehead>
<anchor id="a6"/>
<bridgehead renderas="sect3" id="anchor_test.anchors.h3">
<phrase id="anchor_test.anchors.also_this_one"/><link linkend="anchor_test.anchors.also_this_one">Also
this one</link>
</bridgehead>
<anchor id="a7"/>
<bridgehead renderas="sect3" id="anchors.finally_this">
Finally this
</bridgehead>
<anchor id="a8"/>
</section>
<section id="anchor_test.section_anchor">
<title><anchor id="a9"/>Section Anchor</title>
<section id="anchor_test.nested_section">
<title><anchor id="a10"/>Nested Section</title>
</section>
<anchor id="a11"/>
</section>
<section id="anchor_test.conditional_section_anchor">
<title><anchor id="a12"/>Conditional Section Anchor</title>
</section>
<section id="anchor_test.lists">
<title>Lists</title> <anchor id="a14"/>
<itemizedlist>
<listitem>
<simpara>
Item 1
</simpara>
</listitem>
<listitem>
<simpara>
Item 2
</simpara>
</listitem>
<listitem>
<simpara>
Nested List <anchor id="a15"/>
<itemizedlist>
<listitem>
<simpara>
Nested Item 1
</simpara>
</listitem>
<listitem>
<simpara>
Nested Item 2
</simpara>
</listitem>
<listitem>
<simpara>
<anchor id="a16"/>Nested Item 3
</simpara>
</listitem>
</itemizedlist>
</simpara>
</listitem>
<listitem>
<simpara>
Item 3
</simpara>
</listitem>
</itemizedlist>
</section>
<section id="anchor_test.anchors_in_templates">
<title>Anchors in templates</title>
<para>
<anchor id="t1"/>Some text.
</para>
<para>
<anchor id="t2"/>Text content
</para>
</section>
<section id="anchor_test.anchors_in_syntax_highlighted_code">
<title>Anchors in syntax highlighted code</title>
<programlisting><phrase role="keyword">int</phrase> <anchor id="s1"/><phrase role="identifier">main</phrase><phrase role="special">()</phrase> <phrase role="special">{}</phrase>
</programlisting>
</section>
<section id="anchor_test.nested_anchors">
<title>Nested anchors</title>
<table frame="all" id="anchor_test.nested_anchors.t0">
<title>Table with anchors</title>
<tgroup cols="1">
<thead>
<row>
<entry>
<para>
Heading
</para>
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<para>
<anchor id="table1"/>Cell 1
</para>
</entry>
</row>
<row>
<entry>
<para>
<anchor id="table2"/>Cell 2
</para>
</entry>
</row>
<row>
<entry>
<para>
Cell 3<anchor id="table3"/>
</para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</section>
</article>