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>

File diff suppressed because one or more lines are too long

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 -->