cliMOProfile.xsl revision 47d2767b9dcbe773d73a6532269b7eb0856897d1
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! Common Development and Distribution License, Version 1.0 only
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! (the "License"). You may not use this file except in compliance
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! or http://forgerock.org/license/CDDLv1.0.html.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! file and include the License file at legal-notices/CDDLv1_0.txt.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! information:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ! Copyright 2008 Sun Microsystems, Inc.
1c3134bddb7b413373d1668cbc4b7d95c2477667Mark de Reeper xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster xmlns:cli="http://opendj.forgerock.org/admin-cli">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster <xsl:output method="text" encoding="us-ascii" />
c184142912cff04e5442d8bf70febe477285fb1cCraig McDonnell Document parsing.
c184142912cff04e5442d8bf70febe477285fb1cCraig McDonnell Determine if the managed object is for customization.
c184142912cff04e5442d8bf70febe477285fb1cCraig McDonnell test="$this/adm:profile[@name='cli']/cli:managed-object/@custom='true'">
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster <xsl:value-of select="'is-for-customization=true
'" />
c184142912cff04e5442d8bf70febe477285fb1cCraig McDonnell <xsl:value-of select="'is-for-customization=false
'" />
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Process each relation definition.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Generate the naming argument override if present
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster select="concat('relation.', @name,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster '.naming-argument-override=',
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster adm:profile[@name='cli']/cli:relation/@naming-argument-override,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster '
')" />
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Generate list of properties which should be displayed by default in list-xxx operations.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott select="concat('relation.', @name, '.list-properties=')" />
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster select="adm:profile[@name='cli']/cli:relation/cli:default-property">