mirror of
https://github.com/boostorg/quickbook.git
synced 2026-01-31 20:32:16 +00:00
Use a phrase with an id inside the header. Using an anchor before the heading was causing problems when the heading wasn't inside a section. We can't use an anchor inside the header when it links to itself, as it messes up getting the title for the link. Using an empty phrase means that it will just get the empty title for the phrase. Thanks to John Maddock for the idea. This does generate slightly odd markup. We could possibly use the old style markup whenever section depth > 0, since we would know that we're inside a section, but that seems like an unnecessary complication. [SVN r74346]
23 lines
876 B
XML
23 lines
876 B
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="section_in_a_template" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
<title>Section in a template</title>
|
|
<para>
|
|
Some text before the section.
|
|
</para>
|
|
<section id="section_in_a_template.test">
|
|
<title><link linkend="section_in_a_template.test">Test</link></title>
|
|
<para>
|
|
Hello.
|
|
</para>
|
|
<bridgehead renderas="sect3" id="section_in_a_template.test.h0">
|
|
<phrase id="section_in_a_template.test.just_to_test_id_generation"/><link linkend="section_in_a_template.test.just_to_test_id_generation">Just
|
|
to test id generation</link>
|
|
</bridgehead>
|
|
<para>
|
|
Goodbye.
|
|
</para>
|
|
</section>
|
|
</article>
|