|
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How to retrieve the eleme, Dimitre Novatchev dn | Thread | [xsl] Get the duplicates in a list, Roger L Costello cos |
| Re: [xsl] How to retrieve the eleme, Martin Honnen martin | Date | Re: [xsl] How to retrieve the eleme, Liam R. E. Quin liam |
| Month |