1<?xml version="1.0" encoding="utf-8"?>
2
3<!-- index.xsl
4     Copyright (C) 2003 Free Software Foundation, Inc.
5
6     This file is part of GNU Classpath.
7
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.
12
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.
17
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     -->
23
24<!-- Creates the index.html file for HTML documentation. This is only
25     a simple frameset.
26     -->
27
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">
33
34  <xsl:include href="html_common.xsl"/>
35
36  <xsl:output method="html"
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"/>
41
42  <xsl:strip-space elements="*"/>
43
44  <xsl:template match="/">
45    <html>
46      <head>
47        <xsl:call-template name="include_common"/>
48      </head>
49      <frameset cols="20%,80%">
50        <xsl:choose>
51          <xsl:when test="count(/gjdoc:rootdoc/gjdoc:packagedoc) > 1">
52            <frameset rows="25%,75%">
53              <frame src="allpackages.html" name="packages"/>
54              <frame src="allclasses.html" name="classes"/>
55            </frameset>
56            <frame src="index_noframes.html" name="content"/>
57          </xsl:when>
58          <xsl:otherwise>
59            <frame src="allclasses.html" name="classes"/>
60            <frame src="{concat(translate(/gjdoc:rootdoc/gjdoc:packagedoc[position()=1]/@name, '.', '/'), '/package-summary.html')}" name="content"/>
61          </xsl:otherwise>
62        </xsl:choose>
63      </frameset>
64    </html>
65  </xsl:template>
66</xsl:stylesheet>
67