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