Boost C++ Libraries: Ticket #4416: Callouts generate duplicated ids in boostbook https://svn.boost.org/trac10/ticket/4416 <p> It seems that quickbook will duplicate reference ids in the imported code samples, if the code sample template is used more than once. The output contains the following errors: </p> <pre class="wiki">quickbook.quickbook-to-boostbook bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml Generating Output File: bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml xslt-xsltproc bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.docbook bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml:1119: element co: validity error : ID log0co already defined &lt;!--quickbook-escape-prefix--&gt;&lt;co id="log0co" linkends="log0" ^ bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml:1120: element co: validity error : ID log1co already defined &lt;!--quickbook-escape-prefix--&gt;&lt;co id="log1co" linkends="log1" ^ bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml:1121: element co: validity error : ID log2co already defined cial"&gt;),&lt;/phrase&gt; &lt;!--quickbook-escape-prefix--&gt;&lt;co id="log2co" linkends="log2" ^ bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml:1122: element co: validity error : ID log3co already defined &lt;!--quickbook-escape-prefix--&gt;&lt;co id="log3co" linkends="log3" ^ bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml:1133: element callout: validity error : ID log0 already defined &lt;calloutlist&gt;&lt;callout arearefs="log0co" id="log0"&gt;&lt;para&gt; file name pat ^ bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml:1133: element callout: validity error : ID log1 already defined "&gt;&lt;para&gt; file name pattern &lt;/para&gt;&lt;/callout&gt;&lt;callout arearefs="log1co" id="log1" ^ bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml:1133: element callout: validity error : ID log2 already defined tate files every 10 MiB... &lt;/para&gt;&lt;/callout&gt;&lt;callout arearefs="log2co" id="log2" ^ bin.v2/libs/log/doc/gcc-4.4.1/release/link-static/log_doc.xml:1133: element callout: validity error : ID log3 already defined "&gt;&lt;para&gt; ...or at midnight &lt;/para&gt;&lt;/callout&gt;&lt;callout arearefs="log3co" id="log3" ^ </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4416 Trac 1.4.3 Daniel James Sat, 10 Jul 2010 11:24:58 GMT <link>https://svn.boost.org/trac10/ticket/4416#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4416#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/63809" title="Generate different ids when reusing code snippets. Generates the ids ...">[63809]</a>) Generate different ids when reusing code snippets. </p> <p> Generates the ids during template expansion instead of when parsing the code snippet - so that different ids are used for different exapnsions. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4416" title="#4416: Bugs: Callouts generate duplicated ids in boostbook (closed: fixed)">#4416</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sat, 10 Jul 2010 15:25:30 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4416#comment:2 https://svn.boost.org/trac10/ticket/4416#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/63815" title="Merge quickbook. Fixes #4302, #1436, #3907, #4416 ">[63815]</a>) Merge quickbook. </p> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4302" title="#4302: Bugs: Templates are always expanded inside paragraphs (closed: fixed)">#4302</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1436" title="#1436: Bugs: [quickbook] inline code inside headings (closed: fixed)">#1436</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3907" title="#3907: Bugs: Fix ids in included files. (closed: fixed)">#3907</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4416" title="#4416: Bugs: Callouts generate duplicated ids in boostbook (closed: fixed)">#4416</a> </p> Ticket