1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:output method="text"/>
<!-- éventuellement des paramètres -->
<xsl:template match="tagfile">
<xsl:apply-templates select="compound[@kind = 'page']"/>
<xsl:apply-templates select="compound[@kind = 'group']"/>
</body></html>
</xsl:template>
<xsl:template match="compound[@kind = 'page']">
<html><head>
<style>
<!--
.description {
display: none;
border: 1px solid #aaa;
background-color: #f9f9f9;
padding: 5px;
font-size: 95%;
width: 600px
}
//-->
</style>
<script language="javascript">
<!--
function togglePluginFontWeight(id) {
var plugin = document.getElementById('plugin_' + id);
if (plugin.style["fontWeight"] != "bold")
plugin.style["fontWeight"] = "bold";
else {
var description = document.getElementById('description_' + id);
if (description.style.display != "block")
plugin.style["fontWeight"] = "normal";
}
}
function expandCollapse(id) {
var description = document.getElementById('description_' + id);
var button = document.getElementById('button_' + id);
if (description.style.display == "block") {
description.style.display = "none";
button.src = "../common/opened.gif";
} else {
description.style.display = "block";
button.src = "../common/closed.gif";
}
}
//-->
</script>
</head>
<body width="800" style="color=#000000; font-size: 11pt; font-family: sans-serif">
</xsl:template>
<xsl:template match="compound[@kind = 'group']">
<h3>
<xsl:value-of select="title"/>
</h3><ul>
<xsl:for-each select="class">
<xsl:variable name="name_class" select="concat('class',current())"/>
<li><span id="plugin_<xsl:value-of select="current()"/>" style="cursor: pointer;" onclick="expandCollapse('<xsl:value-of select="current()"/>');" onmouseover="togglePluginFontWeight('<xsl:value-of select="current()"/>');" onmouseout="togglePluginFontWeight('<xsl:value-of select="current()"/>');"><img src="../common/opened.gif" id="button_<xsl:value-of select="current()"/>"><xsl:value-of select="current()"/></span>
<div id="description_<xsl:value-of select="current()"/>" class="description">
<xsl:for-each select="document(concat('xml/class',current(),'.xml'))/doxygen/compounddef[@id=$name_class]">
<p><u>Description</u><br/></p>
<xsl:apply-templates select="briefdescription"/>
<br/>
<xsl:apply-templates select="detaileddescription"/>
<br/>
</xsl:for-each>
</div></li>
</xsl:for-each>
</ul>
</xsl:template>
<xsl:template match="briefdescription|detaileddescription">
<xsl:apply-templates select="para"/>
</xsl:template>
<xsl:template match="para">
<p>
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="ulink">
<a href="<xsl:value-of select="@url"/>"><xsl:value-of select="current()"/></a>
</xsl:template>
<xsl:template match="simplesect[@kind='author']">
<dl><dt><b>AUTHORS</b></dt>
<dd>
<xsl:apply-templates/>
</dd></dl>
</xsl:template>
<xsl:template match="simplesect[@kind='note']">
<dl><dt><b>NOTES</b></dt>
<dd>
<xsl:apply-templates/>
</dd></dl>
</xsl:template>
<xsl:template match="simplesect[@kind='version']">
<dl><dt><b>VERSION</b></dt>
<dd>
<xsl:apply-templates/>
</dd></dl>
</xsl:template>
<xsl:template match="itemizedlist">
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="listitem">
<li>
<xsl:apply-templates/>
</li>
</xsl:template>
<xsl:template match="bold">
<b>
<xsl:apply-templates/>
</b>
</xsl:template>
<xsl:template match="ref">
<font color="#6c94cb">
<xsl:apply-templates/>
</font>
</xsl:template>
<xsl:template match="linebreak">
<br/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
|