<div dir="ltr"><div>Hi Martin,<br><br></div>thanks for the patches. Mostly they look good to me but I am still reading them through. This one is quite problematic...<br><div><div><br>If the buddy is e.g. only the first name, neither of the first_name nor last_name is filled. Also, if the last name contains a space, this won't work (e.g. Milhouse Van Houten). And, unfortunately it is possible to give the last name before first...but we might just not care about this last case.<br><br>miika<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 1:24 AM, Martin Long <span dir="ltr"><<a href="mailto:martin@longhome.co.uk" target="_blank">martin@longhome.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
 xslt/uddf-export.xslt | 5 ++++-<br>
 1 file changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt<br>
index ff9f364..e558ca5 100644<br>
--- a/xslt/uddf-export.xslt<br>
+++ b/xslt/uddf-export.xslt<br>
@@ -73,8 +73,11 @@<br>
             </xsl:attribute><br>
             <personal><br>
               <first_name><br>
-                <xsl:value-of select="."/><br>
+                <xsl:value-of select="substring-before(., ' ')"/><br>
               </first_name><br>
+              <last_name><br>
+                <xsl:value-of select="substring-after(., ' ')"/><br>
+              </last_name><br>
             </personal><br>
           </buddy><br>
         </xsl:for-each><br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.1<br>
<br>
_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
</font></span></blockquote></div><br></div>