package-info.xsl revision 1008
286N/A<!--
286N/A ! CDDL HEADER START
286N/A !
286N/A ! The contents of this file are subject to the terms of the
286N/A ! Common Development and Distribution License, Version 1.0 only
286N/A ! (the "License"). You may not use this file except in compliance
286N/A ! with the License.
286N/A !
286N/A ! You can obtain a copy of the license at
286N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
286N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
286N/A ! See the License for the specific language governing permissions
286N/A ! and limitations under the License.
286N/A !
286N/A ! When distributing Covered Code, include this CDDL HEADER in each
286N/A ! file and include the License file at
286N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
286N/A ! add the following below this CDDL HEADER, with the fields enclosed
286N/A ! by brackets "[]" replaced with your own identifying information:
286N/A ! Portions Copyright [yyyy] [name of copyright owner]
286N/A !
286N/A ! CDDL HEADER END
286N/A !
286N/A !
286N/A ! Portions Copyright 2007 Sun Microsystems, Inc.
286N/A ! -->
286N/A<xsl:stylesheet version="1.0" xmlns:adm="http://www.opends.org/admin"
286N/A xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
286N/A <xsl:import href="java-utilities.xsl" />
286N/A <xsl:output method="text" encoding="us-ascii" />
286N/A <!--
286N/A Global parameter: the sub-package name. Either 'meta', 'client', or 'server'.
286N/A -->
286N/A <xsl:param name="type" select="'.'" />
286N/A <!--
286N/A Main document parsing template.
286N/A -->
286N/A <xsl:template match="/">
286N/A <xsl:call-template name="copyright-notice" />
286N/A <xsl:text>&#xa;</xsl:text>
286N/A <xsl:text>&#xa;</xsl:text>
286N/A <xsl:text>&#xa;</xsl:text>
286N/A <xsl:value-of select="'/**&#xa;'" />
286N/A <xsl:choose>
286N/A <xsl:when test="$type='meta'">
286N/A <xsl:call-template name="add-java-comment">
286N/A <xsl:with-param name="indent-text" select="' *'" />
286N/A <xsl:with-param name="content"
286N/A select="concat('Provides introspection interfaces for the ',
286N/A normalize-space(adm:package/adm:synopsis),
286N/A ' This package provides programmatic access to ',
286N/A 'information about the managed objects, their ',
286N/A 'properties, their relationships with other ',
286N/A 'managed objects, and their inheritance model.')" />
286N/A </xsl:call-template>
286N/A </xsl:when>
286N/A <xsl:when test="$type='client'">
286N/A <xsl:call-template name="add-java-comment">
286N/A <xsl:with-param name="indent-text" select="' *'" />
286N/A <xsl:with-param name="content"
286N/A select="concat('Provides client-side interfaces for querying ',
286N/A 'and managing the ',
286N/A normalize-space(adm:package/adm:synopsis),
286N/A ' Applications can use the interfaces defined ',
286N/A 'within this package to retrieve, list, create, ',
286N/A 'and remove managed objects, as well as query ',
286N/A 'and update their properties.')" />
286N/A </xsl:call-template>
286N/A </xsl:when>
286N/A <xsl:when test="$type='server'">
286N/A <xsl:call-template name="add-java-comment">
286N/A <xsl:with-param name="indent-text" select="' *'" />
286N/A <xsl:with-param name="content"
286N/A select="concat('Provides server-side interfaces for accessing ',
286N/A 'the ', normalize-space(adm:package/adm:synopsis),
286N/A ' Components within the server can use the ',
286N/A 'interfaces defined within this package to query ',
286N/A 'the properties of the managed objects and ',
286N/A 'register to be notified when managed objects are ',
286N/A 'added, removed, or modified.')" />
286N/A </xsl:call-template>
286N/A </xsl:when>
286N/A <xsl:otherwise>
286N/A <xsl:message terminate="yes">
286N/A <xsl:value-of
286N/A select="concat('Invalid package-info sub-package name: ', $type)" />
286N/A </xsl:message>
286N/A </xsl:otherwise>
286N/A </xsl:choose>
286N/A <xsl:value-of select="' */&#xa;'" />
286N/A <xsl:value-of
286N/A select="concat('package ', adm:package/@name, '.', $type, ';&#xa;')" />
286N/A </xsl:template>
286N/A</xsl:stylesheet>
286N/A