diff options
Diffstat (limited to 'xml/htdocs/xsl/devlist.xsl')
-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> |