forked from phpDocumentor/template.responsive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
class.xsl
28 lines (24 loc) · 1.07 KB
/
class.xsl
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
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="html" />
<xsl:include href="layout.xsl" />
<xsl:include href="elements/common.xsl" />
<xsl:include href="elements/function.xsl" />
<xsl:include href="elements/constant.xsl" />
<xsl:include href="elements/property.xsl" />
<xsl:include href="elements/class.xsl" />
<!-- Body text that is inserted into the layout -->
<xsl:template match="/project" mode="contents">
<xsl:variable
name="element"
select="/project/file/class[full_name=$full_name]|/project/file/interface[full_name=$full_name]"
/>
<div class="row">
<div class="span4"><xsl:apply-templates select="$element" mode="sidebar" /></div>
<div class="span8"><xsl:apply-templates select="$element" mode="contents"/></div>
</div>
</xsl:template>
<xsl:template match="/" mode="title">
<xsl:text> » </xsl:text>
<xsl:value-of select="$full_name" />
</xsl:template>
</xsl:stylesheet>