[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to select elements containing ARPT but not el

Subject: Re: How to select elements containing ARPT but not elementscontaining APPC_ARPT or ARPT_RMK?
From: "Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 24 Oct 2022 09:51:19 -0000
Re:  How to select elements containing ARPT but not  el
Hi Folks,

Thank you for your excellent responses. The code you provided works
perfectly.

For my education, would you please explain why this XPath expression selects
all <row> elements:

//row[matches(affected_tables, '[ ;]?ARPT[ ;]?')]

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

/Roger

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.