From: "Xavier Neys (neysx)" <neysx@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl
Date: Tue, 03 Nov 2009 21:48:57 +0000 [thread overview]
Message-ID: <E1N5RFJ-0005d4-Oa@stork.gentoo.org> (raw)
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, '
')"/>
+ <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, '
')"/>
</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>
next reply other threads:[~2009-11-03 21:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-03 21:48 Xavier Neys (neysx) [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-07-22 2:15 [gentoo-commits] gentoo commit in xml/htdocs/xsl: devlist.xsl 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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1N5RFJ-0005d4-Oa@stork.gentoo.org \
--to=neysx@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox