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>
|