Skip to content

Commit

Permalink
return simple array
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Jan 30, 2016
1 parent 212f487 commit f4f1d0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/resources/directory/htdocs/default_dir2json.xsl
Expand Up @@ -19,7 +19,7 @@
<!-- TODO: Also include sub-directories
<xsl:apply-templates select="/dir:directory/*"/>
-->
{ "myData":[
[
<xsl:for-each select="/dir:directory/dir:file">
{
"name":"<xsl:value-of select="@name"/>",
Expand All @@ -28,7 +28,6 @@
}<xsl:if test="position() != last()">,</xsl:if>
</xsl:for-each>
]
}
</xsl:template>

<xsl:template match="dir:directory">
Expand Down

0 comments on commit f4f1d0e

Please sign in to comment.