summaryrefslogtreecommitdiff
path: root/buildscripts/jGrouseDoc/skins/noframes/xslt/nfcommon.xslt
blob: 16759432c2323719230b03ce1988c1f973707acf (plain)
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
<!-- 
	jGrouseDoc template file. Renders search pane
	@Copyright (c) 2007 by Denis Riabtchik. All rights reserved. See license.txt and http://jgrouse.com for details@
	$Id: nfcommon.xslt 276 2007-12-09 00:50:40Z denis.riabtchik $
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0">
	
    <xsl:template name="navigationPane">
        <xsl:param name="elementType"/>
	    <div class="navigation" id="navigation">
	       <xsl:element name="ul">
	           <xsl:if test="$elementType = 'logical'">
	               <xsl:attribute name="class">navContent</xsl:attribute>
	           </xsl:if>
               <xsl:if test="$elementType != 'logical'">
                   <xsl:attribute name="class">navContent closed</xsl:attribute>
               </xsl:if>
	           <li>
			       <div class="navTree">
			           <h2 onclick="jgdoc.NavPanel.clicked(event)">
			             <a href="javascript:jgdoc.NavPanel.dummy()">Navigation</a></h2>
			           <ul class="navContent2">
			               <li>
					           <div>
					               <a class="openAll" href="javascript:jgdoc.NavTree.onOpenAll()">Open All</a>
					               <a class="closeAll" href="javascript:jgdoc.NavTree.onCloseAll()">Close All</a>
					           </div>
					           
					           <div>
					               <ul id = "content" class="contents">
					                   Loading...
					               </ul>
					           </div>
					       </li>
					   </ul>
			       </div>
			   </li>
		   </xsl:element>
		   <xsl:element name="ul">
               <xsl:if test="$elementType = 'file'">
                   <xsl:attribute name="class">navContent</xsl:attribute>
               </xsl:if>
               <xsl:if test="$elementType != 'file'">
                   <xsl:attribute name="class">navContent closed</xsl:attribute>
               </xsl:if>
               <li>
                   <div class="fileTree">
                       <h2 onclick="jgdoc.NavPanel.clicked(event)">
                            <a href="javascript:jgdoc.NavPanel.dummy()">Files</a></h2>
                       <ul class="navContent2">
                           <li>
				                <xsl:for-each select="/jgdoc/items/file[@isModuleFile='false']">
				                    <xsl:sort select="@id"/>
				                    <div>
				                        <xsl:element name="a">
				                            <xsl:attribute name="href">physical/<xsl:value-of select="@path"/>.html</xsl:attribute>
				                            <xsl:value-of select="comment/name"/>
				                        </xsl:element>
				                    </div>
				                </xsl:for-each> 
                           </li>
                       </ul>
                   </div>
               </li>
           </xsl:element>		       
           <xsl:element name="ul">
               <xsl:if test="$elementType = 'module'">
                   <xsl:attribute name="class">navContent</xsl:attribute>
               </xsl:if>
               <xsl:if test="$elementType != 'module'">
                   <xsl:attribute name="class">navContent closed</xsl:attribute>
               </xsl:if>
               <li>
                   <div class="moduleTree">
                       <h2 onclick="jgdoc.NavPanel.clicked(event)">
                        <a href="javascript:jgdoc.NavPanel.dummy()">Modules</a></h2>
                       <ul class="navContent2">
                           <li>
				                <xsl:for-each select="/jgdoc/items/module">
				                    <xsl:sort select="@id"/>
				                    <div>
				                        <xsl:element name="a">
				                            <xsl:attribute name="href">physical/<xsl:value-of select="@path"/>.html</xsl:attribute>
				                            <xsl:value-of select="comment/name"/>
				                        </xsl:element>
				                    </div>
				                </xsl:for-each> 
                           </li>
                       </ul>
                   </div>
               </li>
            </xsl:element>            
	    </div>
    </xsl:template>
	
</xsl:stylesheet>