diff options
Diffstat (limited to '')
-rw-r--r-- | src/boost/tools/docca/example/xsl/custom-overrides.xsl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/boost/tools/docca/example/xsl/custom-overrides.xsl b/src/boost/tools/docca/example/xsl/custom-overrides.xsl new file mode 100644 index 000000000..7f1a4d143 --- /dev/null +++ b/src/boost/tools/docca/example/xsl/custom-overrides.xsl @@ -0,0 +1,25 @@ +<xsl:stylesheet version="3.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + exclude-result-prefixes="xs" + expand-text="yes"> + + <xsl:variable name="doc-ref" select="'docca.ref'"/> + <xsl:variable name="doc-ns" select="'example'"/> + <xsl:variable name="include-private-members" select="false()"/> + + <xsl:template mode="includes-template-footer" match="location"> + <xsl:variable name="convenience-header" as="xs:string?"> + <xsl:apply-templates mode="convenience-header" select="@file"/> + </xsl:variable> + <xsl:if test="$convenience-header"> + <xsl:text>{$nl}</xsl:text> + <xsl:text>Convenience header [include_file boost/{$convenience-header}]</xsl:text> + <xsl:text>{$nl}</xsl:text> + </xsl:if> + </xsl:template> + + <xsl:template mode="convenience-header" match="@file[contains(., 'boost/json')]">json.hpp</xsl:template> + <xsl:template mode="convenience-header" match="@file"/> + +</xsl:stylesheet> |