libjava/ChangeLog:
[official-gcc.git] / libjava / classpath / tools / resource / gnu / classpath / tools / gjdoc / doctranslets / html / packageclasses.xsl
blob430b94447ab56e4aa818e632dade820ce831f727
1 <?xml version="1.0" encoding="utf-8"?>
3 <!-- packageclasses.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 package descriptor files for HTML documentation.
25 -->
27 <xsl:stylesheet version="1.0"
28 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
29 xmlns:gjdoc="http://www.gnu.org/software/cp-tools/gjdocxml"
30 xmlns:html="http://www.w3.org/TR/REC-html40"
31 xmlns="http://www.w3.org/TR/REC-html40">
33 <xsl:include href="html_common.xsl"/>
35 <xsl:output method="xml"
36 encoding="utf-8"
37 indent="no"/>
39 <xsl:strip-space elements="*"/>
41 <xsl:template name="add_link_to_class">
42 <a href="{concat(@name, '.html')}" target="content" class="menu packageclasses">
43 <xsl:choose>
44 <xsl:when test="gjdoc:isInterface">
45 <i><xsl:value-of select="@name"/></i>
46 </xsl:when>
47 <xsl:otherwise>
48 <xsl:value-of select="@name"/>
49 </xsl:otherwise>
50 </xsl:choose>
51 </a><br/>
52 </xsl:template>
54 <xsl:template match="/">
56 <html>
57 <head>
58 <title>
59 <xsl:value-of select="concat(/gjdoc:rootdoc/gjdoc:title, ' - ', 'Classes in ', $gjdoc.outputfile.info)"/>
60 </title>
61 <xsl:call-template name="include_common"/>
62 </head>
63 <body onload="secondaryPageLoaded('classes');" class="menu packageclasses">
64 <h3 class="menu-title"><a href="package-summary.html" target="content"><xsl:value-of select="$gjdoc.outputfile.info"/></a></h3>
65 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info and not(child::gjdoc:isError or child::gjdoc:isException)]">
66 <xsl:sort select="@name" order="ascending"/>
67 <xsl:call-template name="add_link_to_class"/>
68 </xsl:for-each>
70 <xsl:if test="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info and child::gjdoc:isException]">
71 <h3><xsl:value-of select="$gjdoc.outputfile.info"/> Exceptions</h3>
72 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info and child::gjdoc:isException]">
73 <xsl:sort select="@name" order="ascending"/>
74 <xsl:call-template name="add_link_to_class"/>
75 </xsl:for-each>
76 </xsl:if>
78 <xsl:if test="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info and child::gjdoc:isError]">
79 <h3><xsl:value-of select="$gjdoc.outputfile.info"/> Errors</h3>
80 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info and child::gjdoc:isError]">
81 <xsl:sort select="@name" order="ascending"/>
82 <xsl:call-template name="add_link_to_class"/>
83 </xsl:for-each>
84 </xsl:if>
85 </body>
86 </html>
88 </xsl:template>
90 </xsl:stylesheet>