forked from phpDocumentor/template.responsive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.xsl
39 lines (33 loc) · 1.46 KB
/
packages.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
29
30
31
32
33
34
35
36
37
38
39
<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/package.xsl" />
<xsl:include href="elements/class.xsl" />
<xsl:include href="elements/function.xsl" />
<xsl:include href="elements/constant.xsl" />
<xsl:template match="/project" mode="contents">
<xsl:variable name="element" select="//package[@full_name = $full_name]"/>
<xsl:variable name="parent_name">
<xsl:if test="local-name($element/..) = 'package'">
<xsl:value-of select="concat($element/../@full_name, '\')"/>
</xsl:if>
</xsl:variable>
<div class="row">
<div class="span4">
<xsl:apply-templates select="$element" mode="sidebar-nav">
<xsl:with-param name="parent_name" select="$parent_name"/>
</xsl:apply-templates>
</div>
<div class="span8 package-contents">
<xsl:apply-templates select="$element" mode="contents">
<xsl:with-param name="parent_name" select="$parent_name"/>
</xsl:apply-templates>
</div>
</div>
</xsl:template>
<xsl:template match="/" mode="title">
<xsl:text> » </xsl:text>
<xsl:value-of select="$full_name" />
</xsl:template>
</xsl:stylesheet>