Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/boostbook/xsl/doxygen/collect.xsl @ 29

Last change on this file since 29 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 2.1 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3   Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com>
4 
5   Distributed under the Boost Software License, Version 1.0.
6   (See accompanying file LICENSE_1_0.txt or copy at
7   http://www.boost.org/LICENSE_1_0.txt)
8  -->
9<xsl:stylesheet        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
10  <xsl:output method="xml" version="1.0" indent="yes" standalone="yes" />
11 
12  <xsl:param name="doxygen.xml.path">./</xsl:param>
13 
14  <xsl:template match="/">
15    <doxygen>
16      <xsl:attribute name="version">
17        <xsl:choose>
18          <xsl:when test="doxygen">
19            <xsl:value-of select="doxygen/attribute::version"/>
20          </xsl:when>
21          <xsl:otherwise>
22            <xsl:value-of select="doxygenindex/attribute::version"/>
23          </xsl:otherwise>
24        </xsl:choose>
25      </xsl:attribute>
26
27      <!-- Load all doxgen generated xml files -->
28      <xsl:for-each select="doxygen/compound">
29        <xsl:variable name="id">
30          <xsl:choose>
31            <xsl:when test="@refid">
32              <xsl:value-of select="@refid"/>
33            </xsl:when>
34            <xsl:when test="@id">
35              <xsl:value-of select="@id"/>
36            </xsl:when>
37          </xsl:choose>
38        </xsl:variable>
39        <xsl:if test="$id">
40          <xsl:copy-of select="document( concat($doxygen.xml.path, '/',
41                               $id, '.xml' ) )/doxygen/*" />
42        </xsl:if>
43      </xsl:for-each>
44      <xsl:for-each select="doxygenindex/compound">
45        <xsl:variable name="id">
46          <xsl:choose>
47            <xsl:when test="@refid">
48              <xsl:value-of select="@refid"/>
49            </xsl:when>
50            <xsl:when test="@id">
51              <xsl:value-of select="@id"/>
52            </xsl:when>
53          </xsl:choose>
54        </xsl:variable>
55        <xsl:if test="$id">
56          <xsl:copy-of select="document( concat($doxygen.xml.path, '/',
57                               $id, '.xml' ) )/doxygen/*" />
58        </xsl:if>
59      </xsl:for-each>
60    </doxygen>
61  </xsl:template>
62</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.