public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl
@ 2007-09-18  7:04 Xavier Neys (neysx)
  0 siblings, 0 replies; 8+ messages in thread
From: Xavier Neys (neysx) @ 2007-09-18  7:04 UTC (permalink / raw
  To: gentoo-commits

neysx       07/09/18 07:04:19

  Modified:             devlist.xsl
  Log:
  Added retired devs and status column to passwd format on phreak's request

Revision  Changes    Path
1.3                  xml/htdocs/xsl/devlist.xsl

file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?r1=1.2&r2=1.3

Index: devlist.xsl
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- devlist.xsl	25 Mar 2007 10:02:32 -0000	1.2
+++ devlist.xsl	18 Sep 2007 07:04:18 -0000	1.3
@@ -3,14 +3,16 @@
                 xmlns:exslt="http://exslt.org/common"
                 xmlns="http://earth.google.com/kml/2.1"
                 extension-element-prefixes="exslt">
-<xsl:output omit-xml-declaration="yes" indent="yes" cdata-section-elements="description"/>
+
+<xsl:output     omit-xml-declaration="yes"
+                indent="yes"
+                cdata-section-elements="description"/>
 
 <xsl:param name="mode"/>
 
 <xsl:variable name="rollcall" xmlns="">
  <xsl:for-each select="document('userinfo.xml', .)/userlist/user">
   <xsl:sort select="@username"/>
-  <xsl:if test="translate(status,'tired', 'TIRED')!='RETIRED'">
    <user nick="{@username}">
    <name>
    <xsl:choose>
@@ -31,8 +33,11 @@
      <xsl:value-of select="location"/>
    </location>
    <roles><xsl:value-of select="normalize-space(roles)"/></roles>
+   <location><xsl:value-of select="normalize-space(location)"/></location>
+    <xsl:if test="string-length(status) > 0">
+     <status><xsl:value-of select="translate(normalize-space(status),'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/></status>
+    </xsl:if>
    </user>
-  </xsl:if>
  </xsl:for-each>
 </xsl:variable>
 
@@ -53,13 +58,13 @@
 
 <!-- Default mode, similar to /etc/passwd -->
 <xsl:template match="/devlist">
-<xsl:text>#nick:name:location:latitude:longitude:pgpkey
+<xsl:text>#nick:name:location:latitude:longitude:pgpkey:status
 </xsl:text>
 <xsl:apply-templates select="exslt:node-set($rollcall)/user"/>
 </xsl:template>
 
 <xsl:template match="user">
- <xsl:value-of select="concat(@nick, ':', name, ':', location, ':', location/@lat, ':', location/@lon, ':', pgpkey, '&#xA;')"/>
+ <xsl:value-of select="concat(@nick, ':', name, ':', location, ':', location/@lat, ':', location/@lon, ':', pgpkey, ':', status, '&#xA;')"/>
 </xsl:template>
 
 
@@ -68,7 +73,7 @@
 <xsl:text>{
   "developers": [
 </xsl:text>
-<xsl:apply-templates select="exslt:node-set($rollcall)/user[location/@lat]" mode="yaml"/>
+<xsl:apply-templates select="exslt:node-set($rollcall)/user[location/@lat and not(status)]" mode="yaml"/>
 <xsl:text>  ]
 }
 </xsl:text>
@@ -78,7 +83,8 @@
  <xsl:variable name="single-quote">'</xsl:variable>
  <xsl:variable name="double-quote">"</xsl:variable>
  <xsl:variable name="roles" select="translate(roles, $double-quote, $single-quote)"/>
- <xsl:value-of select="concat('    {&#34;nick&#34;: &#34;', @nick,'&#34;, &#34;name&#34;: &#34;', name, '&#34;, &#34;lat&#34;: ', location/@lat, ', &#34;lon&#34;: ', location/@lon, ', &#34;roles&#34;: &#34;', $roles, '&#34;}')"/>
+ <xsl:variable name="loc" select="translate(location, $double-quote, $single-quote)"/>
+ <xsl:value-of select="concat('    {&#34;nick&#34;: &#34;', @nick,'&#34;, &#34;name&#34;: &#34;', name, '&#34;, &#34;lat&#34;: ', location/@lat, ', &#34;lon&#34;: ', location/@lon, ', &#34;roles&#34;: &#34;', $roles, '&#34;, &#34;loc&#34;: &#34;', $loc, '&#34;}')"/>
  <xsl:if test="position()!=last()">,</xsl:if>
  <xsl:text>&#xA;</xsl:text>
 </xsl:template>
@@ -89,7 +95,7 @@
 <xsl:text disable-output-escaping="yes">&lt;?xml version="1.0" encoding="UTF-8"?&gt;&#xA;</xsl:text>
 <kml>
 <Document>
-  <xsl:apply-templates select="exslt:node-set($rollcall)/user" mode="kml"/>
+  <xsl:apply-templates select="exslt:node-set($rollcall)/user[location/@lat and not(status)]" mode="kml"/>
 </Document>
 </kml>
 </xsl:template>



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl
@ 2007-10-11 15:31 Xavier Neys (neysx)
  0 siblings, 0 replies; 8+ messages in thread
From: Xavier Neys (neysx) @ 2007-10-11 15:31 UTC (permalink / raw
  To: gentoo-commits

neysx       07/10/11 15:31:29

  Modified:             devlist.xsl
  Log:
  Added xml mode

Revision  Changes    Path
1.4                  xml/htdocs/xsl/devlist.xsl

file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?r1=1.3&r2=1.4

Index: devlist.xsl
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- devlist.xsl	18 Sep 2007 07:04:18 -0000	1.3
+++ devlist.xsl	11 Oct 2007 15:31:28 -0000	1.4
@@ -30,13 +30,18 @@
        <xsl:attribute name="lon"><xsl:value-of select="location/@longitude"/></xsl:attribute>
        <xsl:attribute name="lat"><xsl:value-of select="location/@latitude"/></xsl:attribute>
      </xsl:if>
-     <xsl:value-of select="location"/>
+     <xsl:value-of select="normalize-space(location)"/>
    </location>
    <roles><xsl:value-of select="normalize-space(roles)"/></roles>
-   <location><xsl:value-of select="normalize-space(location)"/></location>
-    <xsl:if test="string-length(status) > 0">
+   <xsl:if test="string-length(status) > 0">
      <status><xsl:value-of select="translate(normalize-space(status),'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/></status>
-    </xsl:if>
+   </xsl:if>
+   <xsl:if test="email[@role='gentoo']">
+    <email role="gentoo"><xsl:value-of select="email[@role='gentoo'][1]"/></email>
+   </xsl:if>
+   <xsl:if test="email[@role!='gentoo']">
+    <email role="other"><xsl:value-of select="email[@role!='gentoo'][1]"/></email>
+   </xsl:if>
    </user>
  </xsl:for-each>
 </xsl:variable>
@@ -49,6 +54,9 @@
     <xsl:when test="$mode='kml'">
       <xsl:apply-templates mode="kml"/>
     </xsl:when>
+    <xsl:when test="$mode='xml'">
+      <xsl:apply-templates mode="xml"/>
+    </xsl:when>
     <xsl:otherwise>
       <xsl:apply-templates/>
     </xsl:otherwise>
@@ -113,4 +121,37 @@
   </Placemark>
 </xsl:template>
 
+
+<!-- xml for sites where no roll-call is available -->
+<xsl:template match="/devlist" mode="xml" xmlns=''>
+<xsl:text disable-output-escaping="yes">&lt;?xml version="1.0" encoding="UTF-8"?&gt;&#xA;</xsl:text>
+ <xsl:element name="userlist">
+  <xsl:apply-templates select="exslt:node-set($rollcall)/user" mode="xml"/>
+ </xsl:element>
+</xsl:template>
+
+<xsl:template match="user" mode="xml" xmlns=''>
+   <xsl:element name="user">
+    <xsl:attribute name="username"><xsl:value-of select="@nick"/></xsl:attribute>
+    <realname><xsl:attribute name="fullname"><xsl:value-of select="name/text()"/></xsl:attribute></realname>
+    <pgpkey><xsl:value-of select="pgpkey"/></pgpkey>
+    <location>
+     <xsl:if test="location/@lon and location/@lat">
+       <xsl:attribute name="longitude"><xsl:value-of select="location/@lon"/></xsl:attribute>
+       <xsl:attribute name="latitude"><xsl:value-of select="location/@lat"/></xsl:attribute>
+     </xsl:if>
+     <xsl:value-of select="location"/>
+    </location>
+    <xsl:if test="status">
+      <status><xsl:value-of select="status"/></status>
+    </xsl:if>
+    <xsl:if test="email[@role='gentoo']">
+      <email role="gentoo"><xsl:value-of select="email[@role='gentoo']"/></email>
+    </xsl:if>
+    <xsl:if test="email[@role='other']">
+      <email role="other"><xsl:value-of select="email[@role='other']"/></email>
+    </xsl:if>
+  </xsl:element>
+</xsl:template>
+
 </xsl:stylesheet>



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl
@ 2007-11-15  8:17 Xavier Neys (neysx)
  0 siblings, 0 replies; 8+ messages in thread
From: Xavier Neys (neysx) @ 2007-11-15  8:17 UTC (permalink / raw
  To: gentoo-commits

neysx       07/11/15 08:17:16

  Modified:             devlist.xsl
  Log:
  Removed role attribute from <email>

Revision  Changes    Path
1.5                  xml/htdocs/xsl/devlist.xsl

file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?r1=1.4&r2=1.5

Index: devlist.xsl
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- devlist.xsl	11 Oct 2007 15:31:28 -0000	1.4
+++ devlist.xsl	15 Nov 2007 08:17:15 -0000	1.5
@@ -36,11 +36,11 @@
    <xsl:if test="string-length(status) > 0">
      <status><xsl:value-of select="translate(normalize-space(status),'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/></status>
    </xsl:if>
-   <xsl:if test="email[@role='gentoo']">
-    <email role="gentoo"><xsl:value-of select="email[@role='gentoo'][1]"/></email>
+   <xsl:if test="email[substring-after(text(),'@')='gentoo.org']">
+    <email><xsl:value-of select="email[substring-after(text(),'@')='gentoo.org'][1]"/></email>
    </xsl:if>
-   <xsl:if test="email[@role!='gentoo']">
-    <email role="other"><xsl:value-of select="email[@role!='gentoo'][1]"/></email>
+   <xsl:if test="email[substring-after(text(),'@')!='gentoo.org']">
+    <email><xsl:value-of select="email[substring-after(text(),'@')!='gentoo.org'][1]"/></email>
    </xsl:if>
    </user>
  </xsl:for-each>
@@ -145,11 +145,11 @@
     <xsl:if test="status">
       <status><xsl:value-of select="status"/></status>
     </xsl:if>
-    <xsl:if test="email[@role='gentoo']">
-      <email role="gentoo"><xsl:value-of select="email[@role='gentoo']"/></email>
+    <xsl:if test="email[substring-after(text(),'@')='gentoo.org']">
+     <email><xsl:value-of select="email[substring-after(text(),'@')='gentoo.org'][1]"/></email>
     </xsl:if>
-    <xsl:if test="email[@role='other']">
-      <email role="other"><xsl:value-of select="email[@role='other']"/></email>
+    <xsl:if test="email[substring-after(text(),'@')!='gentoo.org']">
+     <email><xsl:value-of select="email[substring-after(text(),'@')!='gentoo.org'][1]"/></email>
     </xsl:if>
   </xsl:element>
 </xsl:template>



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl
@ 2009-08-14 16:24 Xavier Neys (neysx)
  0 siblings, 0 replies; 8+ messages in thread
From: Xavier Neys (neysx) @ 2009-08-14 16:24 UTC (permalink / raw
  To: gentoo-commits

neysx       09/08/14 16:24:15

  Modified:             devlist.xsl
  Log:
  Make aliases available in xml mode

Revision  Changes    Path
1.6                  xml/htdocs/xsl/devlist.xsl

file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?r1=1.5&r2=1.6

Index: devlist.xsl
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- devlist.xsl	15 Nov 2007 08:17:15 -0000	1.5
+++ devlist.xsl	14 Aug 2009 16:24:15 -0000	1.6
@@ -42,6 +42,9 @@
    <xsl:if test="email[substring-after(text(),'@')!='gentoo.org']">
     <email><xsl:value-of select="email[substring-after(text(),'@')!='gentoo.org'][1]"/></email>
    </xsl:if>
+   <xsl:for-each select="alias">
+    <alias><xsl:value-of select="."/></alias>
+   </xsl:for-each>
    </user>
  </xsl:for-each>
 </xsl:variable>
@@ -151,6 +154,9 @@
     <xsl:if test="email[substring-after(text(),'@')!='gentoo.org']">
      <email><xsl:value-of select="email[substring-after(text(),'@')!='gentoo.org'][1]"/></email>
     </xsl:if>
+    <xsl:for-each select="alias">
+     <alias><xsl:value-of select="."/></alias>
+    </xsl:for-each>
   </xsl:element>
 </xsl:template>
 






^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl
@ 2009-11-03 21:48 Xavier Neys (neysx)
  0 siblings, 0 replies; 8+ messages in thread
From: Xavier Neys (neysx) @ 2009-11-03 21:48 UTC (permalink / raw
  To: gentoo-commits

neysx       09/11/03 21:48:57

  Modified:             devlist.xsl
  Log:
  #291062 Allow several <pgpkey> element in userinfo.xml

Revision  Changes    Path
1.7                  xml/htdocs/xsl/devlist.xsl

file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/devlist.xsl?r1=1.6&r2=1.7

Index: devlist.xsl
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- devlist.xsl	14 Aug 2009 16:24:15 -0000	1.6
+++ devlist.xsl	3 Nov 2009 21:48:57 -0000	1.7
@@ -24,7 +24,9 @@
      </xsl:otherwise>
    </xsl:choose>
    </name>
-   <pgpkey><xsl:value-of select="pgpkey"/></pgpkey>
+   <xsl:for-each select="pgpkey">
+    <pgpkey><xsl:value-of select="."/></pgpkey>
+   </xsl:for-each>
    <location>
      <xsl:if test="location/@longitude and location/@latitude">
        <xsl:attribute name="lon"><xsl:value-of select="location/@longitude"/></xsl:attribute>
@@ -75,7 +77,15 @@
 </xsl:template>
 
 <xsl:template match="user">
- <xsl:value-of select="concat(@nick, ':', name, ':', location, ':', location/@lat, ':', location/@lon, ':', pgpkey, ':', status, '&#xA;')"/>
+ <xsl:variable name="pgpkeys">
+  <xsl:for-each select="pgpkey">
+   <xsl:value-of select="."/>
+   <xsl:if test="not(position()=last())">
+    <xsl:text>,</xsl:text>
+   </xsl:if>
+  </xsl:for-each>
+ </xsl:variable>
+ <xsl:value-of select="concat(@nick, ':', name, ':', location, ':', location/@lat, ':', location/@lon, ':', $pgpkeys, ':', status, '&#xA;')"/>
 </xsl:template>
 
 
@@ -137,7 +147,9 @@
    <xsl:element name="user">
     <xsl:attribute name="username"><xsl:value-of select="@nick"/></xsl:attribute>
     <realname><xsl:attribute name="fullname"><xsl:value-of select="name/text()"/></xsl:attribute></realname>
-    <pgpkey><xsl:value-of select="pgpkey"/></pgpkey>
+    <xsl:for-each select="pgpkey">
+     <pgpkey><xsl:value-of select="."/></pgpkey>
+    </xsl:for-each>
     <location>
      <xsl:if test="location/@lon and location/@lat">
        <xsl:attribute name="longitude"><xsl:value-of select="location/@lon"/></xsl:attribute>






^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl
@ 2010-06-09 21:48 Robin H. Johnson (robbat2)
  0 siblings, 0 replies; 8+ messages in thread
From: Robin H. Johnson (robbat2) @ 2010-06-09 21:48 UTC (permalink / raw
  To: gentoo-commits

robbat2     10/06/09 21:48:59

  Modified:             devlist.xsl
  Log:
  Add joinDate to yaml output.

Revision  Changes    Path
1.8                  xml/htdocs/xsl/devlist.xsl

file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?r1=1.7&r2=1.8

Index: devlist.xsl
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -p -w -b -B -u -u -r1.7 -r1.8
--- devlist.xsl	3 Nov 2009 21:48:57 -0000	1.7
+++ devlist.xsl	9 Jun 2010 21:48:59 -0000	1.8
@@ -105,7 +105,7 @@
  <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('    {&#34;nick&#34;: &#34;', @nick,'&#34;, &#34;name&#34;: &#34;', name, '&#34;, &#34;lat&#34;: ', location/@lat, ', &#34;lon&#34;: ', location/@lon, ', &#34;roles&#34;: &#34;', $roles, '&#34;, &#34;loc&#34;: &#34;', $loc, '&#34;}')"/>
+ <xsl:value-of select="concat('    {&#34;nick&#34;: &#34;', @nick,'&#34;, &#34;name&#34;: &#34;', name, '&#34;, &#34;joined&#34;: &#34;', joined, '&#34;, &#34;lat&#34;: ', location/@lat, ', &#34;lon&#34;: ', location/@lon, ', &#34;roles&#34;: &#34;', $roles, '&#34;, &#34;loc&#34;: &#34;', $loc, '&#34;}')"/>
  <xsl:if test="position()!=last()">,</xsl:if>
  <xsl:text>&#xA;</xsl:text>
 </xsl:template>






^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl
@ 2010-06-28  8:12 Robin H. Johnson (robbat2)
  0 siblings, 0 replies; 8+ messages in thread
From: Robin H. Johnson (robbat2) @ 2010-06-28  8:12 UTC (permalink / raw
  To: gentoo-commits

robbat2     10/06/28 08:12:52

  Modified:             devlist.xsl
  Log:
  Try to improve join data.

Revision  Changes    Path
1.9                  xml/htdocs/xsl/devlist.xsl

file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.9&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.9&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?r1=1.8&r2=1.9

Index: devlist.xsl
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -p -w -b -B -u -u -r1.8 -r1.9
--- devlist.xsl	9 Jun 2010 21:48:59 -0000	1.8
+++ devlist.xsl	28 Jun 2010 08:12:52 -0000	1.9
@@ -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('    {&#34;nick&#34;: &#34;', @nick,'&#34;, &#34;name&#34;: &#34;', name, '&#34;, &#34;joined&#34;: &#34;', joined, '&#34;, &#34;lat&#34;: ', location/@lat, ', &#34;lon&#34;: ', location/@lon, ', &#34;roles&#34;: &#34;', $roles, '&#34;, &#34;loc&#34;: &#34;', $loc, '&#34;}')"/>
+ <xsl:variable name="joined" select="translate(joined, $double-quote, $single-quote)"/>
+ <xsl:value-of select="concat('    {&#34;nick&#34;: &#34;', @nick,'&#34;, &#34;name&#34;: &#34;', name, '&#34;, &#34;joined&#34;: &#34;', $joined, '&#34;, &#34;lat&#34;: ', location/@lat, ', &#34;lon&#34;: ', location/@lon, ', &#34;roles&#34;: &#34;', $roles, '&#34;, &#34;loc&#34;: &#34;', $loc, '&#34;}')"/>
  <xsl:if test="position()!=last()">,</xsl:if>
  <xsl:text>&#xA;</xsl:text>
 </xsl:template>






^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl
@ 2010-07-22  2:15 Robin H. Johnson (robbat2)
  0 siblings, 0 replies; 8+ messages in thread
From: Robin H. Johnson (robbat2) @ 2010-07-22  2:15 UTC (permalink / raw
  To: gentoo-commits

robbat2     10/07/22 02:15:39

  Modified:             devlist.xsl
  Log:
  Add joined and retired to XML of userinfo/devinfo.

Revision  Changes    Path
1.10                 xml/htdocs/xsl/devlist.xsl

file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/xsl/devlist.xsl?r1=1.9&r2=1.10

Index: devlist.xsl
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/devlist.xsl,v
retrieving revision 1.9
retrieving revision 1.10
diff -p -w -b -B -u -u -r1.9 -r1.10
--- devlist.xsl	28 Jun 2010 08:12:52 -0000	1.9
+++ devlist.xsl	22 Jul 2010 02:15:39 -0000	1.10
@@ -34,6 +34,12 @@
      </xsl:if>
      <xsl:value-of select="normalize-space(location)"/>
    </location>
+   <xsl:for-each select="joined">
+    <joined><xsl:value-of select="normalize-space(.)"/></joined>
+   </xsl:for-each>
+   <xsl:for-each select="retired">
+    <retired><xsl:value-of select="normalize-space(.)"/></retired>
+   </xsl:for-each>
    <roles><xsl:value-of select="normalize-space(roles)"/></roles>
    <xsl:if test="string-length(status) > 0">
      <status><xsl:value-of select="translate(normalize-space(status),'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/></status>






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-07-22  2:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03 21:48 [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl Xavier Neys (neysx)
  -- strict thread matches above, loose matches on Subject: below --
2010-07-22  2:15 Robin H. Johnson (robbat2)
2010-06-28  8:12 Robin H. Johnson (robbat2)
2010-06-09 21:48 Robin H. Johnson (robbat2)
2009-08-14 16:24 Xavier Neys (neysx)
2007-11-15  8:17 Xavier Neys (neysx)
2007-10-11 15:31 Xavier Neys (neysx)
2007-09-18  7:04 Xavier Neys (neysx)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox