mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Better consistent macro ids
This commit is contained in:
parent
edb40425d3
commit
34ad10b7dc
@ -1,14 +1,14 @@
|
||||
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
<section id="header.example_hpp"><title>Header <<ulink url="../../example.hpp">example.hpp</ulink>></title><synopsis xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
|
||||
<link linkend="foo_id-1.1">foo</link>
|
||||
<link linkend="FOO_id-1.2">FOO</link>
|
||||
<link linkend="foo_id-1_1">foo</link>
|
||||
<link linkend="FOO_id-1_2">FOO</link>
|
||||
<link linkend="bar">bar</link></synopsis>
|
||||
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="foo_id-1.1"><refmeta><refentrytitle>Macro foo</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>foo</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="foo_id-1_1"><refmeta><refentrytitle>Macro foo</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>foo</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||
|
||||
</phrase>foo</synopsis></refsynopsisdiv><refsect1><title>Description</title>
|
||||
</refsect1></refentry>
|
||||
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="FOO_id-1.2"><refmeta><refentrytitle>Macro FOO</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>FOO</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="FOO_id-1_2"><refmeta><refentrytitle>Macro FOO</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>FOO</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: <<link linkend="header.example_hpp">example.hpp</link>>
|
||||
|
||||
</phrase>FOO</synopsis></refsynopsisdiv><refsect1><title>Description</title>
|
||||
</refsect1></refentry>
|
||||
|
@ -114,8 +114,9 @@
|
||||
<xsl:value-of select="@name"/>
|
||||
<xsl:if test="count(key('named-entities',
|
||||
translate(@name, $uppercase-letters, $lowercase-letters)))!=1">
|
||||
<xsl:variable name="raw.id"><xsl:call-template name="object.id"/></xsl:variable>
|
||||
<xsl:text>_</xsl:text>
|
||||
<xsl:call-template name="object.id"/>
|
||||
<xsl:value-of select="translate($raw.id, '.', '_')"/>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
Loading…
x
Reference in New Issue
Block a user