[PATCH 5/7] Split last_name and first_name for buddies in UDDF export
Martin Long
martin at longhome.co.uk
Tue Dec 9 15:24:51 PST 2014
---
xslt/uddf-export.xslt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index ff9f364..e558ca5 100644
--- a/xslt/uddf-export.xslt
+++ b/xslt/uddf-export.xslt
@@ -73,8 +73,11 @@
</xsl:attribute>
<personal>
<first_name>
- <xsl:value-of select="."/>
+ <xsl:value-of select="substring-before(., ' ')"/>
</first_name>
+ <last_name>
+ <xsl:value-of select="substring-after(., ' ')"/>
+ </last_name>
</personal>
</buddy>
</xsl:for-each>
--
1.9.1
More information about the subsurface
mailing list