xsl-list
[Top] [All Lists]

Re: [xsl] XPath to test that a middle name consists of a letter followed by a period and nothing else ?

2016-06-02 08:35:42
On Thu, 2016-06-02 at 11:39 +0000, Costello, Roger L.
costello(_at_)mitre(_dot_)org wrote:
Hi Folks,

Here is an example of a valid middle initial:

      <MI>H.</MI>

Others have comented on the expression. I'll note that as someone with
two middle initials I've more than once had problems doing business in
the USA - with large companies. One US bank that I use requires one
middle initial and that my home bank account be in exactly the same
name in order to be able to transfer money, so I ended up changing my
home bacnk account to have an "alias" in the end.

Hence, allow zero or more middle initial elements.

But you know, you should trust people to enter their names. They know
the rules for them better than you do, even if you don't want to do
business with e.e. cummings or people from countries where lower case
or an apostrophe or an accented character might start a name.

Liam


-- 
Liam R. E. Quin <liam(_at_)w3(_dot_)org>
The World Wide Web Consortium (W3C)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>