Merge pull request #9 from Kojoley/autogenerate-reference.xml

Added reference.xml auto-generation from dtdxml
This commit is contained in:
Andrey Semashev 2024-05-13 18:11:56 +03:00 committed by GitHub
commit 7b52b318f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 24 additions and 10 deletions

View File

@ -7,7 +7,11 @@
project boostbook/doc ;
import boostbook : boostbook ;
xml reference : reference.dtdxml : <location>. ;
explicit reference ;
boostbook boostbook : boostbook.xml :
<xsl:param>boost.root=../../../..
<dependency>reference
;

View File

@ -11,7 +11,7 @@
created-on="Wed Feb 18 23:39:45 2009"
>
<attpurpose name="id">A global identifier for this element</attpurpose>
<attpurpose name="last-revision">Set to $Date: 2003/04/13 14:46:07 $ to keep "last revised" information in sync with CVS changes</attpurpose>
<attpurpose name="last-revision">Set to $Date$ to keep "last revised" information in sync with CVS changes</attpurpose>
<attpurpose name="xml:base">Implementation detail used by XIncludes</attpurpose>
<attpurpose name="name">The name of the element being declared to referenced</attpurpose>
<attpurpose name="filename">The name of the file associated with this element</attpurpose>

View File

@ -5,6 +5,8 @@
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
This file is automatically generated by dtd2boostbook.xsl
-->
<chapter id="reference">
<title>Reference</title>
@ -735,7 +737,7 @@
</refmeta>
<refnamediv>
<refname>macroname</refname>
<refpurpose/>
<refpurpose>References a macro with the given name</refpurpose>
</refnamediv>
<refsynopsisdiv>macroname ::=
(#PCDATA)
@ -1031,7 +1033,7 @@
</refmeta>
<refnamediv>
<refname>headername</refname>
<refpurpose/>
<refpurpose>References a C++ header with the given name</refpurpose>
</refnamediv>
<refsynopsisdiv>headername ::=
(#PCDATA)
@ -1396,7 +1398,7 @@
</refmeta>
<refnamediv>
<refname>globalname</refname>
<refpurpose/>
<refpurpose>References a global with the given name</refpurpose>
</refnamediv>
<refsynopsisdiv>globalname ::=
(#PCDATA)
@ -2549,7 +2551,7 @@
</refmeta>
<refnamediv>
<refname>enumname</refname>
<refpurpose/>
<refpurpose>References an enumeration type with the given name</refpurpose>
</refnamediv>
<refsynopsisdiv>enumname ::=
(#PCDATA)
@ -2948,4 +2950,3 @@
</refsection>
</refentry>
</chapter>

View File

@ -18,7 +18,16 @@
<xsl:key name="attribute-purposes" match="attpurpose" use="@name"/>
<xsl:template match="dtd">
<section id="reference">
<xsl:comment>
Copyright (c) 2002 Douglas Gregor &lt;doug.gregor -at- gmail.com&gt;
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
This file is automatically generated by dtd2boostbook.xsl
</xsl:comment>
<chapter id="reference">
<title>Reference</title>
<para>
<xsl:text>Elements:</xsl:text>
@ -29,7 +38,7 @@
</itemizedlist>
</para>
<xsl:apply-templates select="element"/>
</section>
</chapter>
</xsl:template>
<!-- Element synopsis -->