Re: [xsl] How to retrieve the element with value DIR and not the element with value TURN_DIR?

Subject: Re: [xsl] How to retrieve the element with value DIR and not the element with value TURN_DIR?
From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Jan 2025 23:04:37 -0000
XPath 1.0:

/*/*/field[contains(concat(',', .), ',DIR,')]


On Thu, Jan 2, 2025 at 2:35b/PM Roger L Costello costello@xxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Hi Folks,
>
> I want to retrieve the <row> whose <field> has the string DIR. In the
> following example, I want the second <row> retrieved. Is there a simple
> XPath expression to achieve this?
>
> <Test>
>     <row>
>         <field>TURN_DIR, PT_TRN_DIR, NX_TRN_DIR</field>
>     </row>
>     <row>
>         <field>DIR, DIRECTION</field>
>     </row>
> </Test>

Current Thread