forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r577460 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl
Date Wed, 19 Sep 2007 22:36:35 GMT
Author: rgardler
Date: Wed Sep 19 15:36:29 2007
New Revision: 577460

URL: http://svn.apache.org/viewvc?rev=577460&view=rev
Log:
DOAP only allows a single person in a helper, maintainer or developer element (although some
DOAP files misuse these elements)

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl?rev=577460&r1=577459&r2=577460&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl
Wed Sep 19 15:36:29 2007
@@ -76,7 +76,7 @@
   <xsl:template match="doap:Project">
     "label":"<xsl:call-template name="json-escape"><xsl:with-param name="text" select="doap:name"/></xsl:call-template>",
     <xsl:call-template name="categories"/>
-    <xsl:call-template name="maintainers"/>
+    <xsl:call-template name="contributors"/>
     <xsl:call-template name="programming-language"/>
     <xsl:apply-templates select="doap:name|doap:shortdesc|doap:homepage"/>
   </xsl:template>
@@ -85,14 +85,14 @@
     "<xsl:call-template name="json-escape"><xsl:with-param name="text" select="local-name(.)"/></xsl:call-template>":"<xsl:apply-templates
select="@rdf:resource"/>"<xsl:if test="not(position()=last())">, </xsl:if>
   </xsl:template>
   
-  <xsl:template name="maintainers">
+  <xsl:template name="contributors">
     <xsl:if test="doap:maintainer|doap:developer|doap:helper">
       "person" : [<xsl:apply-templates select="doap:maintainer|doap:developer|doap:helper"/>],
     </xsl:if>
   </xsl:template>
   
   <xsl:template match="doap:maintainer|doap:developer|doap:helper">
-    <xsl:apply-templates select="foaf:Person"/>
+    <xsl:apply-templates select="foaf:Person"/><xsl:if test="not(following-sibling::doap:maintainer|doap:developer|doap:helper)">,</xsl:if>
   </xsl:template>
   
   <xsl:template match="foaf:Person">



Mime
View raw message