47 | | |
| 47 | <?xml version="1.0" encoding="UTF-8"?> |
| 48 | <!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd"> |
| 49 | <library id="library_name" name="Boost.LibraryName" dirname="library_name" last-revision="$Date: 2007/06/14 22:18:40 $" |
| 50 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 51 | |
| 52 | <libraryinfo> |
| 53 | <author> |
| 54 | <firstname>name</firstname> <surname>name</surname> |
| 55 | </author> |
| 56 | <copyright> |
| 57 | <year>year</year> <holder>name</holder> |
| 58 | </copyright> |
| 59 | <legalnotice> |
| 60 | <para> |
| 61 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 62 | file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</ulink>) |
| 63 | </para> |
| 64 | </legalnotice> |
| 65 | <librarypurpose> |
| 66 | Standard boostbook example |
| 67 | </librarypurpose> |
| 68 | <librarycategory name="category:library_category"></librarycategory> |
| 69 | </libraryinfo> |
| 70 | |
| 71 | <title>Boost.LibraryName</title> |
| 72 | |
| 73 | <section id="library_name.section_id"> |
| 74 | |
| 75 | <title>Description</title> |
| 76 | |
| 77 | <para> |
| 78 | <inlinemediaobject><imageobject><imagedata fileref="../images/library_logo.png"></imagedata></imageobject> |
| 79 | <textobject> |
| 80 | <phrase>Boost.LibraryName logo</phrase> |
| 81 | </textobject> |
| 82 | </inlinemediaobject> |
| 83 | </para> |
| 84 | |
| 85 | <para> |
| 86 | This is an example of a <emphasis role="bold">standard</emphasis> Boostbook document. |
| 87 | An <ulink url="http://www.boost.org">external link</ulink> |
| 88 | </para> |
| 89 | |
| 90 | <para> |
| 91 | These should be syntax highlighted: |
| 92 | </para> |
| 93 | |
| 94 | <programlisting> |
| 95 | <phrase role="preprocessor">#include</phrase> <phrase role="special"><</phrase><phrase role="identifier">iostream</phrase><phrase role="special">></phrase> |
| 96 | |
| 97 | <phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase> |
| 98 | <phrase role="special">{</phrase> |
| 99 | <phrase role="comment">// Sample code |
| 100 | </phrase> <phrase role="identifier">std</phrase><phrase role="special">::</phrase><phrase role="identifier">cout</phrase> <phrase role="special"><<</phrase> <phrase role="string">"Hello, World\n"</phrase><phrase role="special">;</phrase> |
| 101 | <phrase role="keyword">return</phrase> <phrase role="number">0</phrase><phrase role="special">;</phrase> |
| 102 | <phrase role="special">}</phrase> |
| 103 | |
| 104 | </programlisting> |
| 105 | |
| 106 | Quickbook to the rescue please! |
| 107 | |
| 108 | </section> |
| 109 | |
| 110 | </library> |