From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Pokorný Date: Fri, 6 Dec 2013 15:13:57 +0100 Subject: [Cluster-devel] [PATCHv5 6/6] rgmanager: ra2rng.xsl: {ip, fs}-nfslock: use common wildcard block In-Reply-To: <1386277669-31655-1-git-send-email-jpokorny@redhat.com> References: <1386277669-31655-1-git-send-email-jpokorny@redhat.com> Message-ID: <1386339237-5398-1-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 | 53 +++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/rgmanager/src/resources/ra2rng.xsl b/rgmanager/src/resources/ra2rng.xsl index 61329d3..7bb43ce 100644 --- a/rgmanager/src/resources/ra2rng.xsl +++ b/rgmanager/src/resources/ra2rng.xsl @@ -15,6 +15,18 @@ + + + + + + 0 + 1 + no + yes + + + @@ -75,15 +87,7 @@ on - - - - 0 - 1 - no - yes - - + @@ -155,15 +159,7 @@ yes - - - - 0 - 1 - no - yes - - + 0 @@ -504,12 +500,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