libjava/ChangeLog:
[official-gcc.git] / libjava / classpath / tools / resource / gnu / classpath / tools / gjdoc / doctranslets / html / index_noframes.xsl
blobab45102313fef3bf6b841dddb118e20409fea0cb
1 <?xml version="1.0" encoding="utf-8"?>
3 <!-- index_noframes.xsl
4 Copyright (C) 2003 Free Software Foundation, Inc.
6 This file is part of GNU Classpath.
8 GNU Classpath is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GNU Classpath is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU Classpath; see the file COPYING. If not, write to the
20 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 02111-1307 USA.
22 -->
24 <!-- Creates the index.html file for HTML documentation. This is only
25 a simple frameset.
26 -->
28 <xsl:stylesheet version="1.0"
29 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
30 xmlns:gjdoc="http://www.gnu.org/software/cp-tools/gjdocxml"
31 xmlns:html="http://www.w3.org/TR/REC-html40"
32 xmlns="http://www.w3.org/TR/REC-html40">
34 <xsl:include href="html_common.xsl"/>
36 <xsl:output method="xml"
37 encoding="utf-8"
38 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
39 doctype-system="http://www.w3.org/TR/html4/loose.dtd"
40 indent="no"/>
42 <xsl:strip-space elements="*"/>
44 <xsl:template name="output_packagedoc_tr">
45 <tr>
46 <td class="package-link">
47 <a href="{concat(translate(@name,'.','/'), '/package-summary.html')}" class="package-link">
48 <xsl:value-of select="@name"/>
49 </a>
50 </td>
51 <td class="package-summary-description">
52 <xsl:apply-templates select="./gjdoc:firstSentenceTags/node()"/>
53 </td>
54 </tr>
55 </xsl:template>
57 <xsl:template match="/">
58 <html>
59 <head>
60 <xsl:call-template name="output_title">
61 <xsl:with-param name="p_pagetitle" select="'Overview'"/>
62 </xsl:call-template>
63 <xsl:call-template name="include_common"/>
64 </head>
65 <body class="classdoc" onload="if(parent.contentPageLoaded)parent.contentPageLoaded(document.title)">
67 <!-- Top Navigation Bar -->
68 <xsl:call-template name="output_navbar">
69 <xsl:with-param name="p_show_frames" select="1"/>
70 <xsl:with-param name="p_show_noframes" select="0"/>
71 <xsl:with-param name="p_curr_noframes" select="1"/>
72 <xsl:with-param name="p_show_package" select="0"/>
73 <xsl:with-param name="p_show_package_tree" select="0"/>
74 <xsl:with-param name="p_show_full_tree" select="1"/>
75 <xsl:with-param name="p_show_index" select="1"/>
76 <xsl:with-param name="p_show_help" select="1"/>
77 <xsl:with-param name="p_top" select="1"/>
78 </xsl:call-template>
80 <div class="pagebody">
82 <xsl:if test="$gjdoc.option.doctitle">
83 <h1 class="overview-doctitle"><xsl:value-of select="$gjdoc.option.doctitle"/></h1>
84 </xsl:if>
85 <xsl:if test="/gjdoc:rootdoc/gjdoc:firstSentenceTags">
86 <div class="overview-description-top">
87 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:firstSentenceTags/node()">
88 <xsl:copy-of select="."/>
89 </xsl:for-each>
90 </div>
91 <div class="classdoc-tag-section-header">See Also:</div>
92 <dl class="classdoc-list">
93 <dt><a href="#description">Description</a></dt>
94 </dl>
95 </xsl:if>
97 <xsl:choose>
98 <xsl:when test="/gjdoc:rootdoc/gjdoc:packagegroup">
99 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:packagegroup">
100 <h1 class="classdoc-title"><xsl:value-of select="@name"/></h1>
101 <table border="1" cellspacing="0" class="classdoc-table">
102 <xsl:for-each select="gjdoc:package">
103 <xsl:variable name="v_name" select="@name"/>
104 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:packagedoc[@name=$v_name]">
105 <xsl:call-template name="output_packagedoc_tr"/>
106 </xsl:for-each>
107 </xsl:for-each>
108 </table>
109 </xsl:for-each>
110 </xsl:when>
111 <xsl:otherwise>
112 <h1 class="classdoc-title">All Packages</h1>
113 <table border="1" cellspacing="0" class="classdoc-table">
114 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:packagedoc">
115 <xsl:call-template name="output_packagedoc_tr"/>
116 </xsl:for-each>
117 </table>
118 </xsl:otherwise>
119 </xsl:choose>
120 <xsl:if test="/gjdoc:rootdoc/gjdoc:inlineTags">
121 <a name="description"/>
122 <div class="overview-description-full">
123 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:inlineTags/node()">
124 <xsl:copy-of select="."/>
125 </xsl:for-each>
126 </div>
127 </xsl:if>
128 </div>
130 <!-- Bottom Navigation Bar -->
131 <xsl:call-template name="output_navbar">
132 <xsl:with-param name="p_show_frames" select="1"/>
133 <xsl:with-param name="p_show_noframes" select="0"/>
134 <xsl:with-param name="p_curr_noframes" select="1"/>
135 <xsl:with-param name="p_show_package" select="0"/>
136 <xsl:with-param name="p_show_package_tree" select="0"/>
137 <xsl:with-param name="p_show_full_tree" select="1"/>
138 <xsl:with-param name="p_show_index" select="1"/>
139 <xsl:with-param name="p_show_help" select="1"/>
140 <xsl:with-param name="p_top" select="0"/>
141 </xsl:call-template>
143 </body>
144 </html>
145 </xsl:template>
146 </xsl:stylesheet>