1 |
robbat2 10/06/28 08:12:52 |
2 |
|
3 |
Modified: devlist.xsl |
4 |
Log: |
5 |
Try to improve join data. |
6 |
|
7 |
Revision Changes Path |
8 |
1.9 xml/htdocs/xsl/devlist.xsl |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.9&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.9&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?r1=1.8&r2=1.9 |
13 |
|
14 |
Index: devlist.xsl |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v |
17 |
retrieving revision 1.8 |
18 |
retrieving revision 1.9 |
19 |
diff -p -w -b -B -u -u -r1.8 -r1.9 |
20 |
--- devlist.xsl 9 Jun 2010 21:48:59 -0000 1.8 |
21 |
+++ devlist.xsl 28 Jun 2010 08:12:52 -0000 1.9 |
22 |
@@ -105,7 +105,8 @@ |
23 |
<xsl:variable name="double-quote">"</xsl:variable> |
24 |
<xsl:variable name="roles" select="translate(roles, $double-quote, $single-quote)"/> |
25 |
<xsl:variable name="loc" select="translate(location, $double-quote, $single-quote)"/> |
26 |
- <xsl:value-of select="concat(' {"nick": "', @nick,'", "name": "', name, '", "joined": "', joined, '", "lat": ', location/@lat, ', "lon": ', location/@lon, ', "roles": "', $roles, '", "loc": "', $loc, '"}')"/> |
27 |
+ <xsl:variable name="joined" select="translate(joined, $double-quote, $single-quote)"/> |
28 |
+ <xsl:value-of select="concat(' {"nick": "', @nick,'", "name": "', name, '", "joined": "', $joined, '", "lat": ', location/@lat, ', "lon": ', location/@lon, ', "roles": "', $roles, '", "loc": "', $loc, '"}')"/> |
29 |
<xsl:if test="position()!=last()">,</xsl:if> |
30 |
<xsl:text>
</xsl:text> |
31 |
</xsl:template> |