[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCHv2 5/6] rgmanager: ra2rng.xsl: infra for param value datatyping/restriction



Signed-off-by: Jan Pokorný <jpokorny redhat com>
---
 rgmanager/src/resources/ra2rng.xsl | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/rgmanager/src/resources/ra2rng.xsl b/rgmanager/src/resources/ra2rng.xsl
index eb9f5b1..2f81d16 100644
--- a/rgmanager/src/resources/ra2rng.xsl
+++ b/rgmanager/src/resources/ra2rng.xsl
@@ -67,6 +67,10 @@
     </choice>
 </int:common-optional-parameters>
 
+<int:agent-parameter-specialization>
+    <!-- int:agent @name="..." > int:parameter @name="..." > PATTERN -->
+</int:agent-parameter-specialization>
+
 <xsl:variable name="SP" select="' '"/>
 <xsl:variable name="NL" select="'&#xA;'"/>
 <xsl:variable name="NLNL" select="'&#xA;&#xA;'"/>
@@ -359,6 +363,13 @@
                             'name=',            $Q, @name,                      $Q, $SP,
                             'rha:description=', $Q, normalize-space(shortdesc), $Q)"/>
                         <xsl:with-param name="indented" select="$use-indented"/>
+                        <xsl:with-param name="fill-with"
+                                        select="document('')/*/int:agent-parameter-specialization
+                                                /int:agent[
+                                                    @name = current()/../../@name
+                                                ]/int:parameter[
+                                                    @name = current()/@name
+                                                ]/*"/>
                     </xsl:call-template>
                     <xsl:value-of select="$NL"/>
 
-- 
1.8.1.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]