From 45359adc09ac1d9e48206c549e667ed6965c7cd3 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 28 May 2007 15:31:13 +0000
Subject: [PATCH] Fix the following issues:
---
opends/resource/admin/preprocessor.xsl | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/opends/resource/admin/preprocessor.xsl b/opends/resource/admin/preprocessor.xsl
index 56a18f7..246a4e2 100644
--- a/opends/resource/admin/preprocessor.xsl
+++ b/opends/resource/admin/preprocessor.xsl
@@ -696,6 +696,36 @@
</xsl:copy>
</xsl:template>
<!--
+ Process a relative inherited default behavior
+ -->
+ <xsl:template match="adm:relative" mode="pre-process">
+ <xsl:param name="mopackage" select="/.." />
+ <xsl:param name="moname" select="/.." />
+ <xsl:param name="hierarchy" select="/.." />
+ <xsl:copy>
+ <!--
+ Shallow copy.
+ -->
+ <xsl:copy-of select="@*" />
+ <!--
+ Add missing attribute managed-object-package if it is not provided.
+ -->
+ <xsl:if test="not(@managed-object-package)">
+ <xsl:attribute name="managed-object-package">
+ <xsl:value-of select="$mopackage" />
+ </xsl:attribute>
+ </xsl:if>
+ <!--
+ Apply templates to subordinate elements.
+ -->
+ <xsl:apply-templates mode="pre-process">
+ <xsl:with-param name="mopackage" select="$mopackage" />
+ <xsl:with-param name="moname" select="$moname" />
+ <xsl:with-param name="hierarchy" select="$hierarchy" />
+ </xsl:apply-templates>
+ </xsl:copy>
+ </xsl:template>
+ <!--
Process a user-friendly-name element.
-->
<xsl:template match="adm:user-friendly-name"
--
Gitblit v1.10.0