This must have been done many times, so can some one show me where to find
the answer?
I have a series of personal names in natural order that I need to invert.
The surname is always last except when followed by ‘Jr’, or ‘Sr’ (either of
which may not be present). I want to represent:
J Allen Rogers –> Rogers, J Allen
Bill T Wilson Jr –> Wilson, Bill T (Jr)
A B Brown –> Brown, A B
John Victor Case Sr –> Case, John Victor (Sr)
and so on. There may be a single space or multiple spaces between some the
elements of the name.
It looks like <xsl:analyze-string> will do this, but I do not know how to
write regex.
Thanks,
Mark
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--