1 <?xml version="1.0" encoding="utf-8"?>
\r
4 Copyright (C) 2003 Free Software Foundation, Inc.
\r
6 This file is part of GNU Classpath.
\r
8 GNU Classpath is free software; you can redistribute it and/or modify
\r
9 it under the terms of the GNU General Public License as published by
\r
10 the Free Software Foundation; either version 2, or (at your option)
\r
13 GNU Classpath is distributed in the hope that it will be useful, but
\r
14 WITHOUT ANY WARRANTY; without even the implied warranty of
\r
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
16 General Public License for more details.
\r
18 You should have received a copy of the GNU General Public License
\r
19 along with GNU Classpath; see the file COPYING. If not, write to the
\r
20 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
\r
24 <!-- Creates the package descriptor files for HTML documentation.
\r
27 <xsl:stylesheet version="1.0"
\r
28 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
\r
29 xmlns:gjdoc="http://www.gnu.org/software/cp-tools/gjdocxml"
\r
30 xmlns:html="http://www.w3.org/TR/REC-html40"
\r
31 xmlns="http://www.w3.org/TR/REC-html40">
\r
33 <xsl:include href="html_common.xsl"/>
\r
35 <xsl:output method="xml"
\r
39 <xsl:strip-space elements="*"/>
\r
41 <xsl:template match="/">
\r
45 <xsl:call-template name="output_title">
\r
46 <xsl:with-param name="p_pagetitle" select="$gjdoc.outputfile.info"/>
\r
47 </xsl:call-template>
\r
48 <xsl:call-template name="include_common"/>
\r
50 <body class="classdoc" onload="if(parent.contentPageLoaded)parent.contentPageLoaded(getTitle())">
\r
52 <!-- Top Navigation Bar -->
\r
53 <xsl:call-template name="output_navbar">
\r
54 <xsl:with-param name="p_show_package" select="0"/>
\r
55 <xsl:with-param name="p_curr_package" select="1"/>
\r
56 <xsl:with-param name="p_show_package_tree" select="1"/>
\r
57 <xsl:with-param name="p_top" select="1"/>
\r
58 </xsl:call-template>
\r
60 <div class="pagebody">
\r
62 <h1 class="classdoc-title">Package <xsl:value-of select="$gjdoc.outputfile.info"/></h1>
\r
64 <div class="classdoc-package-comment-body">
\r
65 <xsl:apply-templates select="/gjdoc:rootdoc/gjdoc:packagedoc[@name=$gjdoc.outputfile.info]/gjdoc:firstSentenceTags/node()"/>
\r
68 <xsl:if test="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info][gjdoc:isInterface]">
\r
69 <table border="1" cellspacing="0" width="100%" class="classdoc-table">
\r
70 <tr><td colspan="2" class="section-header"><div class="section-header">Interface Summary</div></td></tr>
\r
71 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info][gjdoc:isInterface]">
\r
72 <xsl:sort select="@name" order="ascending"/>
\r
73 <xsl:call-template name="output-classes-summary"/>
\r
78 <xsl:if test="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info][gjdoc:isOrdinaryClass]">
\r
79 <table border="1" cellspacing="0" width="100%" class="classdoc-table">
\r
80 <tr><td colspan="2" class="section-header"><div class="section-header">Class Summary</div></td></tr>
\r
81 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info][gjdoc:isOrdinaryClass]">
\r
82 <xsl:sort select="@name" order="ascending"/>
\r
83 <xsl:call-template name="output-classes-summary"/>
\r
88 <xsl:if test="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info][gjdoc:isException]">
\r
89 <table border="1" cellspacing="0" width="100%" class="classdoc-table">
\r
90 <tr><td colspan="2" class="section-header"><div class="section-header">Exception Summary</div></td></tr>
\r
91 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info][gjdoc:isException]">
\r
92 <xsl:sort select="@name" order="ascending"/>
\r
93 <xsl:call-template name="output-classes-summary"/>
\r
98 <xsl:if test="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info][gjdoc:isError]">
\r
99 <table border="1" cellspacing="0" width="100%" class="classdoc-table">
\r
100 <tr><td colspan="2" class="section-header"><div class="section-header">Error Summary</div></td></tr>
\r
101 <xsl:for-each select="/gjdoc:rootdoc/gjdoc:classdoc[gjdoc:containingPackage/@name=$gjdoc.outputfile.info][gjdoc:isError]">
\r
102 <xsl:sort select="@name" order="ascending"/>
\r
103 <xsl:call-template name="output-classes-summary"/>
\r
108 <a name="description"><p> </p></a>
\r
109 <h1 class="classdoc-sub-title package-description">Package <xsl:value-of select="$gjdoc.outputfile.info"/> Description</h1>
\r
111 <div class="classdoc-package-comment-body">
\r
112 <xsl:apply-templates select="/gjdoc:rootdoc/gjdoc:packagedoc[@name=$gjdoc.outputfile.info]/gjdoc:inlineTags/node()"/>
\r
117 <!-- Bottom Navigation Bar -->
\r
118 <xsl:call-template name="output_navbar">
\r
119 <xsl:with-param name="p_show_package" select="0"/>
\r
120 <xsl:with-param name="p_curr_package" select="1"/>
\r
121 <xsl:with-param name="p_show_package_tree" select="1"/>
\r
122 <xsl:with-param name="p_top" select="0"/>
\r
123 </xsl:call-template>
\r
129 <xsl:template name="output-classes-summary">
\r
130 <xsl:variable name="v_currentclass" select="@qualifiedtypename"/>
\r
131 <xsl:variable name="v_sub_xml_filename" select="concat(@qualifiedtypename,'.xml')"/>
\r
133 <td class="class-link">
\r
134 <a href="{concat(@name, '.html')}" class="package-link">
\r
135 <xsl:value-of select="@name"/>
\r
138 <td class="class-summary-description">
\r
139 <xsl:variable name="v_docstring" select="document($v_sub_xml_filename,/gjdoc:rootdoc)/gjdoc:classdoc[@qualifiedtypename=$v_currentclass]/gjdoc:firstSentenceTags/node()"/>
\r
141 <xsl:when test="$v_docstring">
\r
142 <xsl:for-each select="$v_docstring">
\r
143 <xsl:value-of select="." disable-output-escaping="yes"/>
\r
147 <i>No description available.</i>
\r