From e958eb5bcfc9feccbda7c0841b05939506143ad8 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 16 Nov 2007 10:47:40 +0000
Subject: [PATCH] Advanced properties phase 1: tag advanced properties and perform various clean-up to the XML definitions:
---
opends/resource/admin/preprocessor.xsl | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/opends/resource/admin/preprocessor.xsl b/opends/resource/admin/preprocessor.xsl
index a890baa..f409363 100644
--- a/opends/resource/admin/preprocessor.xsl
+++ b/opends/resource/admin/preprocessor.xsl
@@ -590,7 +590,15 @@
<xsl:variable name="property"
select="$hierarchy/adm:managed-object/adm:property[@name=$name]" />
<xsl:element name="adm:property">
- <xsl:copy-of select="$property/@*" />
+ <xsl:copy-of select="$property/@*[local-name() != 'advanced']" />
+ <xsl:choose>
+ <xsl:when test="@advanced">
+ <xsl:copy-of select="@advanced" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$property/@advanced" />
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:apply-templates
select="$property/adm:TODO | $property/adm:synopsis | $property/adm:description"
mode="pre-process">
@@ -855,7 +863,6 @@
<xsl:if test="@naming-property">
<xsl:variable name="naming-property-name"
select="@naming-property" />
-
<!--
FIXME: this does not cope with the situation where the property
is inherited, referenced, or overridden.
--
Gitblit v1.10.0