Subject: Re: [xsl] How to select elements containing ARPT but not elements containing APPC_ARPT or ARPT_RMK? From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 22 Oct 2022 18:32:27 -0000 |
On Sat, Oct 22, 2022 at 06:21:20PM -0000, Roger L Costello costello@xxxxxxxxx scripsit: > Hi Folks, > > Here is my input: > > <test> > <row> > <column_header>A</column_header> > <affected_tables>ARPT_RMK</affected_tables> > </row> > <row> > <column_header>B</column_header> > <affected_tables>APPC_ARPT</affected_tables> > </row> > <row> > <column_header>C</column_header> > <affected_tables>HLPT; ARPT</affected_tables> > </row> > <row> > <column_header>D</column_header> > <affected_tables>HLPT; ARPT; VFR_RTE</affected_tables> > </row> > <row> > <column_header>E</column_header> > <affected_tables>ARPT; VFR_RTE</affected_tables> > </row> > <row> > <column_header>F</column_header> > <affected_tables>ARPT</affected_tables> > </row> > <row> > <column_header></column_header> > <affected_tables>ARPT</affected_tables> > </row> > </test> > > I want to output the column_headers of all rows whose affected_tables contain ARPT. > 2. What is a correct solution? //row[tokenize(affected_tables,'; ') = 'ARPT' ][normalize-space(column_header)]/column_header 1. you're checking for the rows with a child column_header element, rather than checking for column_header element children with a string value. -- Graydon Saunders | graydonish@xxxxxxxxx ^fs oferiode, pisses swa mfg. -- Deor ("That passed, so may this.")
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to select elements contai, Roger L Costello cos | Thread | Re: [xsl] How to select elements co, Gary Gapinski lists@ |
[xsl] How to select elements contai, Roger L Costello cos | Date | Re: [xsl] How to select elements co, Gary Gapinski lists@ |
Month |