forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r556168 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl
Date Fri, 13 Jul 2007 22:43:09 GMT
Author: rgardler
Date: Fri Jul 13 15:43:07 2007
New Revision: 556168

URL: http://svn.apache.org/viewvc?view=rev&rev=556168
Log:
@whitespace remove whitespace to create more compact JSON files

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?view=diff&rev=556168&r1=556167&r2=556168
==============================================================================
--- 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
Fri Jul 13 15:43:07 2007
@@ -21,31 +21,18 @@
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
   xmlns:doap="http://usefulinc.com/ns/doap#">
-  <xsl:template match="/">
-    {
-      "items" : [
-        <xsl:apply-templates/>
-      ]
-    } 
-  </xsl:template>
-  <xsl:template match="descriptors">
-    <xsl:apply-templates/>
-  </xsl:template>
-  <xsl:template match="descriptor">
-    <xsl:apply-templates/>
-  </xsl:template>
-  <xsl:template match="doap:Project">
-    {
-      <xsl:apply-templates/>
-    },
-  </xsl:template>
-  <xsl:template match="doap:shortdesc">    
-    shortdesc : <xsl:value-of select="."/>
-  </xsl:template>
-  <xsl:template match="doap:name">    
-    name : <xsl:value-of select="."/>,
-  </xsl:template>
-  <xsl:template match="doap:homepage">    
-    homepage : <xsl:value-of select="@rdf:resource"/>,
+  <xsl:template match="/">{ "items" : [<xsl:apply-templates/>]} 
   </xsl:template>
+  
+  <xsl:template match="descriptors"><xsl:apply-templates/></xsl:template>
+  
+  <xsl:template match="descriptor"><xsl:apply-templates/></xsl:template>
+  
+  <xsl:template match="doap:Project">{<xsl:apply-templates/>},</xsl:template>
+  
+  <xsl:template match="doap:shortdesc">shortdesc : <xsl:value-of select="."/></xsl:template>
+  
+  <xsl:template match="doap:name">name : <xsl:value-of select="."/>,</xsl:template>
+  
+  <xsl:template match="doap:homepage">homepage : <xsl:value-of select="@rdf:resource"/>,</xsl:template>
 </xsl:stylesheet>



Mime
View raw message