cliMOProfile.xsl revision 2872
0N/A<!--
0N/A ! CDDL HEADER START
0N/A !
0N/A ! The contents of this file are subject to the terms of the
0N/A ! Common Development and Distribution License, Version 1.0 only
0N/A ! (the "License"). You may not use this file except in compliance
0N/A ! with the License.
0N/A !
0N/A ! You can obtain a copy of the license at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
0N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
0N/A ! See the License for the specific language governing permissions
0N/A ! and limitations under the License.
0N/A !
0N/A ! When distributing Covered Code, include this CDDL HEADER in each
0N/A ! file and include the License file at
0N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
0N/A ! add the following below this CDDL HEADER, with the fields enclosed
0N/A ! by brackets "[]" replaced with your own identifying information:
0N/A ! Portions Copyright [yyyy] [name of copyright owner]
0N/A !
0N/A ! CDDL HEADER END
0N/A !
0N/A !
0N/A ! Portions Copyright 2007 Sun Microsystems, Inc.
0N/A ! -->
0N/A<xsl:stylesheet version="1.0"
0N/A xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
0N/A xmlns:adm="http://www.opends.org/admin"
0N/A xmlns:cli="http://www.opends.org/admin-cli">
0N/A <xsl:import href="preprocessor.xsl" />
0N/A <xsl:output method="text" encoding="us-ascii" />
0N/A <!--
0N/A Document parsing.
0N/A -->
0N/A <xsl:template match="/">
0N/A <!--
0N/A Determine if the managed object is for customization.
0N/A -->
0N/A <xsl:choose>
0N/A <xsl:when
0N/A test="$this/adm:profile[@name='cli']/cli:managed-object/@custom='true'">
0N/A <xsl:value-of select="'is-for-customization=true&#xa;'" />
0N/A </xsl:when>
0N/A <xsl:otherwise>
0N/A <xsl:value-of select="'is-for-customization=false&#xa;'" />
0N/A </xsl:otherwise>
0N/A </xsl:choose>
0N/A <!--
0N/A Process each relation definition.
0N/A -->
0N/A <xsl:for-each select="$this-all-relations">
0N/A <xsl:sort select="@name" />
0N/A <!--
0N/A Generate list of properties which should be displayed by default in list-xxx operations.
0N/A -->
0N/A <xsl:value-of
0N/A select="concat('relation.', @name, '.list-properties=')" />
0N/A <xsl:for-each
0N/A select="adm:profile[@name='cli']/cli:relation/cli:default-property">
0N/A <xsl:value-of select="@name" />
0N/A <xsl:if test="current() != last()">
0N/A <xsl:value-of select="','" />
0N/A </xsl:if>
0N/A </xsl:for-each>
0N/A <xsl:value-of select="'&#xa;'" />
0N/A </xsl:for-each>
0N/A </xsl:template>
0N/A</xsl:stylesheet>
0N/A