• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<!--
3              Copyright Andrey Semashev 2007 - 2017.
4     Distributed under the Boost Software License, Version 1.0.
5        (See accompanying file LICENSE_1_0.txt or copy at
6              http://www.boost.org/LICENSE_1_0.txt)
7
8    This stylesheet extracts information about headers, classes, etc.
9    from the Doxygen-generated reference documentation and writes
10    it as QuickBook templates that refer to the according Reference sections.
11-->
12<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
13<xsl:output method="text"/>
14<xsl:template match="/library-reference">
15<xsl:text disable-output-escaping="yes">[/
16              Copyright Andrey Semashev 2007 - 2020.
17     Distributed under the Boost Software License, Version 1.0.
18        (See accompanying file LICENSE_1_0.txt or copy at
19              http://www.boost.org/LICENSE_1_0.txt)
20
21    This document is a part of Boost.Log library documentation.
22
23     This document was automatically generated,  DO NOT EDIT!
24/]
25</xsl:text>
26<xsl:apply-templates>
27<xsl:with-param name="namespace"/>
28<xsl:with-param name="enclosing_namespace"/>
29</xsl:apply-templates>
30</xsl:template>
31
32<!-- Skip any text nodes -->
33<xsl:template match="text()"/>
34
35<!-- Headers -->
36<xsl:template match="header">
37<xsl:param name="namespace"/>
38<xsl:param name="enclosing_namespace"/>
39[template <xsl:value-of select="translate(@name, '/.', '__')"/>[][headerref <xsl:value-of select="@name"/>]]
40<xsl:apply-templates>
41<xsl:with-param name="namespace" select="$namespace"/>
42<xsl:with-param name="enclosing_namespace" select="$enclosing_namespace"/>
43</xsl:apply-templates>
44</xsl:template>
45
46<!-- Namespaces - only needed to construct fully qualified class names -->
47<xsl:template match="namespace">
48<xsl:param name="namespace"/>
49<xsl:param name="enclosing_namespace"/>
50<xsl:variable name="namespace_prefix">
51<xsl:value-of select="$namespace"/><xsl:if test="string-length($namespace) &gt; 0"><xsl:text>::</xsl:text></xsl:if>
52</xsl:variable>
53<xsl:apply-templates>
54<xsl:with-param name="namespace" select="concat($namespace_prefix, @name)"/>
55<xsl:with-param name="enclosing_namespace" select="@name"/>
56</xsl:apply-templates>
57</xsl:template>
58
59<!-- Classses -->
60<xsl:template match="class|struct">
61<xsl:param name="namespace"/>
62<xsl:param name="enclosing_namespace"/>
63[template <xsl:value-of select="concat('class_', $enclosing_namespace, '_', @name)"/>[][classref <xsl:value-of select="concat($namespace, '::', @name)"/><xsl:text> </xsl:text><xsl:value-of select="@name"/>]]
64<xsl:apply-templates>
65<xsl:with-param name="namespace" select="concat($namespace, '::', @name)"/>
66<xsl:with-param name="enclosing_namespace" select="concat($enclosing_namespace, '_', @name)"/>
67</xsl:apply-templates>
68</xsl:template>
69
70<!-- Free functions - currently disabled because multiple overloads generate duplicate QuickBook templates -->
71<!--
72<xsl:template match="function">
73<xsl:param name="namespace"/>
74<xsl:param name="enclosing_namespace"/>
75[template <xsl:value-of select="concat('func_', $enclosing_namespace, '_', @name)"/>[][funcref <xsl:value-of select="concat($namespace, '::', @name)"/><xsl:text> </xsl:text><xsl:value-of select="@name"/>]]
76</xsl:template>
77-->
78
79</xsl:transform>
80