RE: Do some elements contain strings from other elemen
Piet, I was only interested academically how one would programmatically select the last word in a element and because of the very reason you pointed out, we are only looking for contains(). Until we start getting data that doesn't have the full un-split name or Surname, Christian name and First name etc... nonsense (we have no control over the incoming data format) and start getting Given and Family name or something similar, a rough match is all we will ever expect without building some huge parsing app that uses some sort of dictionary. And don't start me on Address1, Address2. But I take your point! Sorry for wandering off topic Tommy;) William Charlton The yMonda team yMonda Limited w: www.ymonda.net -----Original Message----- From: P/C [mailto:piet.v.oostrum@xxxxxxxxx] On Behalf Of Piet van Oostrum Sent: 27 January 2011 16:19 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: Do some elements contain strings from other elements? W Charlton wrote: > Martin, > > Yes thanks noted and I'm aware of that. Contains() is all we need. > > Although as an academic question I'd be interested to hear how anyone > would match on the last word in the <FullName/> element. Apparently you assume that the last word in the FullName is the FamilyName, but even in English names that isn't always correct. You probably don't have a sure way to split the FullName, however. -- Piet van Oostrum Cochabamba. URL: http://pietvanoostrum.com/ Nu Fair Trade woonartikelen op http://www.zylja.com
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