[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
> For my education, would you please explain why this XPath expression selects all <row> elements: > //row[matches(affected_tables, '[ ;]?ARPT[ ;]?')] matches(affected_tables, '[ ;]?ARPT[ ;]?' ) is the same as matches(affected_tables, 'ARPT') which is same as contains( affected_tables, 'ARPT') as you are matching ARPT preceded and followed by 0 or 1 ";" but that is true if the string contains ARPT and false otherwise. [;]? is the same as ;? and adds no constraint as it always matches
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|