Re: [xsl] Nested filters, or filter too complicated.

Subject: Re: [xsl] Nested filters, or filter too complicated.
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Jan 2018 16:15:53 -0000
On 17.01.2018 16:19, Kerry, Richard richard.kerry@xxxxxxxx wrote:
<x:template match="type[text()='Action'][$data/device-description/param[@name=../base-name/text()]/@standard='no')] " >

You don't need all the explicit text() checks and in the second predicate I think you want


match="type[. = 'Action'][../base-name = $data/device-description/param[@standard='no']/@name]"

or perhaps

match="device-value[base-name = $data/device-description/param[@standard='no']/@name]/type[. = 'Action']"

Current Thread