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 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
|
<?xml version="1.0" encoding="UTF-8" ?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
http://www.netbeans.org/cddl-gplv2.html
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
specific language governing permissions and limitations under the
License. When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the
License Header, with the fields enclosed by brackets [] replaced by
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
Contributor(s):
The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
Microsystems, Inc. All Rights Reserved.
If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../antsrc/org/netbeans/nbbuild/Arch.xsl" />
<xsl:import href="export-apichanges.xsl" />
<xsl:output method="html" />
<xsl:param name="arch.stylesheet"/>
<xsl:param name="arch.overviewlink"/>
<xsl:param name="arch.footer"/>
<xsl:param name="arch.target"/>
<xsl:template match="/">
<xsl:variable name="interfaces" select="//api[@type='export']" />
<html>
<head>
<title>Overview</title><!-- note this is ignored -->
</head>
<body>
<p>
<xsl:apply-templates select="api-answers/answer[@id='arch-overall']/node()" mode="description"/>
</p>
<h3>What is New (see <a href="apichanges.html">all changes</a>)?</h3>
<ul>
<xsl:call-template name="api-changes" >
<xsl:with-param name="changes-since-url" select="'apichanges.html'" />
<xsl:with-param name="changes-since-amount" select="'5'" />
</xsl:call-template>
</ul>
<h3>Use Cases</h3>
<xsl:apply-templates select="//answer[@id='arch-usecases']" mode="description" />
<h3>Exported Interfaces</h3>
This table lists all of the module exported APIs
with
defined stability classifications. It is generated
based on answers to questions about the architecture
of the module. <a href="architecture-summary.html">Read them all</a>...
<!-- imported from Arch.xsl -->
<xsl:call-template name="generate-api-table" >
<xsl:with-param name="target" select="'api-group'" />
<xsl:with-param name="generate-import" select="'false'" />
</xsl:call-template>
<h3>Implementation Details</h3>
<xsl:if test="api-answers/answer[@id='arch-where']/node()" >
<h5>Where are the sources for the module?</h5>
<xsl:apply-templates select="api-answers/answer[@id='arch-where']/node()" mode="description"/>
</xsl:if>
<xsl:if test="api-answers/answer[@id='deploy-dependencies']/node()" >
<h5>What do other modules need to do to declare a dependency on this one, in addition to or instead of a plain module dependency?</h5>
<xsl:apply-templates select="api-answers/answer[@id='deploy-dependencies']/node()" mode="description"/>
</xsl:if>
<p>
Read more about the implementation in the <a href="architecture-summary.html">answers to
architecture questions</a>.
</p>
<!--
<xsl:call-template name="generate-api-table" >
<xsl:with-param name="target" select="'api-group'" />
<xsl:with-param name="generate-export" select="'false'" />
<xsl:with-param name="generate-group" select="'java'" />
</xsl:call-template>
-->
</body>
</html>
<!--
<module name="{api-answers/@module}"
target="{$arch.target}"
stylesheet="{$arch.stylesheet}"
overviewlink="{$arch.overviewlink}"
footer="{$arch.footer}">
<xsl:variable name="deploy-dependencies" select="api-answers/answer[@id='deploy-dependencies']"/>
<xsl:if test="$deploy-dependencies">
<deploy-dependencies>
<xsl:apply-templates select="$deploy-dependencies/node()"/>
</deploy-dependencies>
</xsl:if>
<xsl:variable name="arch-usecases" select="api-answers/answer[@id='arch-usecases']"/>
<xsl:if test="$arch-usecases">
<arch-usecases>
<xsl:apply-templates select="$arch-usecases/node()"/>
</arch-usecases>
</xsl:if>
</module>
-->
</xsl:template>
<xsl:template match="api" mode="description">
<xsl:param name="group" />
<xsl:param name="type" />
<xsl:variable name="name" select="@name" />
<xsl:variable name="category" select="@category" />
<xsl:variable name="url" select="@url" />
<xsl:choose>
<xsl:when test="string-length($url)>0">
<a>
<xsl:attribute name="href"><xsl:value-of select="$url" /></xsl:attribute>
<xsl:value-of select="$name" />
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$name" />
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates />
</xsl:template>
<xsl:template match="usecase" mode="description" >
<h5><xsl:value-of select="@name" /></h5>
<xsl:apply-templates select="./node()" />
</xsl:template>
<xsl:template match="@*|node()" mode="description" >
<xsl:copy >
<xsl:apply-templates select="@*|node()" mode="description" />
</xsl:copy>
</xsl:template>
<!-- Format random HTML elements as is: -->
<xsl:template match="@*|node()">
<xsl:copy >
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<!-- format the API table -->
<xsl:template name="export-api">
<xsl:param name="arch.target" />
<xsl:variable name="name" select="@name" />
<xsl:variable name="type" select="@type" />
<xsl:variable name="group" select="@group" />
<xsl:variable name="category" select="@category" />
<xsl:variable name="url" select="@url" />
<xsl:variable name="description" select="node()" />
<tr class="tabler">
<td>
<a>
<xsl:attribute name="href" >
<xsl:value-of select="$arch.target" />
<xsl:text>#</xsl:text>
<xsl:value-of select="$group"/>
<xsl:text>-</xsl:text>
<xsl:value-of select="$name"/>
</xsl:attribute>
<xsl:value-of select="$name" />
</a>
</td>
<!--
<td>
<xsl:choose>
<xsl:when test="$type='import'">Imported</xsl:when>
<xsl:when test="$type='export'">Exported</xsl:when>
<xsl:otherwise>WARNING: <xsl:value-of select="$type" /></xsl:otherwise>
</xsl:choose>
</td> -->
<td> <!-- stability category -->
<a>
<xsl:attribute name="href">
<xsl:text>http://wiki.netbeans.org/API_Stability#</xsl:text>
<xsl:value-of select="$category" />
</xsl:attribute>
<xsl:choose>
<xsl:when test="$category='official'">Official</xsl:when>
<xsl:when test="$category='stable'">Stable</xsl:when>
<xsl:when test="$category='devel'">Devel</xsl:when>
<xsl:when test="$category='third'">Third_Party</xsl:when>
<xsl:when test="$category='standard'">Standard</xsl:when>
<xsl:when test="$category='friend'">Friend</xsl:when>
<xsl:when test="$category='private'">Private</xsl:when>
<xsl:when test="$category='deprecated'">Deprecated</xsl:when>
<xsl:otherwise>
<xsl:message>
WARNING: <xsl:value-of select="$category"/>
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</a>
</td>
<td> <!-- url -->
<a href="{$url}"><xsl:value-of select="$url"/></a>
<xsl:if test="$description" >
<p>
<xsl:apply-templates select="$description" />
</p>
</xsl:if>
</td>
</tr>
</xsl:template>
<xsl:template name="print-change" >
<li>
<xsl:choose>
<xsl:when test="date/@month=1">Jan</xsl:when>
<xsl:when test="date/@month=2">Feb</xsl:when>
<xsl:when test="date/@month=3">Mar</xsl:when>
<xsl:when test="date/@month=4">Apr</xsl:when>
<xsl:when test="date/@month=5">May</xsl:when>
<xsl:when test="date/@month=6">Jun</xsl:when>
<xsl:when test="date/@month=7">Jul</xsl:when>
<xsl:when test="date/@month=8">Aug</xsl:when>
<xsl:when test="date/@month=9">Sep</xsl:when>
<xsl:when test="date/@month=10">Oct</xsl:when>
<xsl:when test="date/@month=11">Nov</xsl:when>
<xsl:when test="date/@month=12">Dec</xsl:when>
</xsl:choose><xsl:text> </xsl:text>
<xsl:value-of select="date/@day"/> '<xsl:value-of select="substring(date/@year, 3, 2)"/>
<xsl:text> </xsl:text>
<a><xsl:attribute name="href">apichanges.html#<xsl:call-template name="change-id"/></xsl:attribute>
<xsl:apply-templates select="summary/node()"/>
</a>
<p>
<xsl:apply-templates select="description/node()" mode="description" />
</p>
</li>
</xsl:template>
</xsl:stylesheet>
|