You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2007/07/14 00:43:09 UTC
svn commit: r556168 -
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.doap/resources/stylesheets/descriptorIndex-to-JSON.xsl
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>