diff options
author | robbat2 <robbat2> | 2010-06-28 08:12:52 +0000 |
---|---|---|
committer | robbat2 <robbat2> | 2010-06-28 08:12:52 +0000 |
commit | b7a2d3f5466cce09b2f1a19f6fd22984c30520d9 (patch) | |
tree | 95d9341fd6ed4655ab8c1a9c8e9a6591d0514324 | |
parent | removed GMN links (diff) | |
download | www-redesign-b7a2d3f5466cce09b2f1a19f6fd22984c30520d9.tar.gz www-redesign-b7a2d3f5466cce09b2f1a19f6fd22984c30520d9.tar.bz2 www-redesign-b7a2d3f5466cce09b2f1a19f6fd22984c30520d9.zip |
Try to improve join data.
-rw-r--r-- | xml/htdocs/xsl/devlist.xsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xml/htdocs/xsl/devlist.xsl b/xml/htdocs/xsl/devlist.xsl index 89479027..dd2a4881 100644 --- a/xml/htdocs/xsl/devlist.xsl +++ b/xml/htdocs/xsl/devlist.xsl @@ -105,7 +105,8 @@ <xsl:variable name="double-quote">"</xsl:variable> <xsl:variable name="roles" select="translate(roles, $double-quote, $single-quote)"/> <xsl:variable name="loc" select="translate(location, $double-quote, $single-quote)"/> - <xsl:value-of select="concat(' {"nick": "', @nick,'", "name": "', name, '", "joined": "', joined, '", "lat": ', location/@lat, ', "lon": ', location/@lon, ', "roles": "', $roles, '", "loc": "', $loc, '"}')"/> + <xsl:variable name="joined" select="translate(joined, $double-quote, $single-quote)"/> + <xsl:value-of select="concat(' {"nick": "', @nick,'", "name": "', name, '", "joined": "', $joined, '", "lat": ', location/@lat, ', "lon": ', location/@lon, ', "roles": "', $roles, '", "loc": "', $loc, '"}')"/> <xsl:if test="position()!=last()">,</xsl:if> <xsl:text>
</xsl:text> </xsl:template> |