From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Pokorný Date: Thu, 5 Dec 2013 18:24:15 +0100 Subject: [Cluster-devel] [PATCH 6/6] rgmanager: ra2rng.xsl: {ip, fs}-nfslock: use common wildcard block In-Reply-To: <1386264255-22340-1-git-send-email-jpokorny@redhat.com> References: <1386264255-22340-1-git-send-email-jpokorny@redhat.com> Message-ID: <1386264255-22340-7-git-send-email-jpokorny@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Note that the silent rule before the arrangement like this is that the wildcard block under int:agent-parameter-specialization will always be the first one there, as element sets union will preserve the document ordering (hence [last()] will point to the last item in document order rather than the item of the last union operand). Signed-off-by: Jan Pokorn? --- rgmanager/src/resources/ra2rng.xsl | 51 ++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/rgmanager/src/resources/ra2rng.xsl b/rgmanager/src/resources/ra2rng.xsl index e025e37..3c10e48 100644 --- a/rgmanager/src/resources/ra2rng.xsl +++ b/rgmanager/src/resources/ra2rng.xsl @@ -15,6 +15,18 @@ + + + + + + 0 + 1 + no + yes + + + @@ -73,15 +85,6 @@ true - - - - 0 - 1 - no - yes - - @@ -153,15 +156,6 @@ yes - - - - 0 - 1 - no - yes - - 0 @@ -502,12 +496,21 @@ 'rha:description=', $Q, normalize-space(shortdesc), $Q)"/> + select="( + document('')/*/int:agent-parameter-specialization + /int:agent[ + @name = '*' + ]/int:parameter[ + @name = current()/@name + ] + | + document('')/*/int:agent-parameter-specialization + /int:agent[ + @name = current()/../../@name + ]/int:parameter[ + @name = current()/@name + ] + )[last()]/*"/> -- 1.8.1.4