Skip to content

Commit

Permalink
files added
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Jan 30, 2016
1 parent 8b9ebe2 commit 212f487
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/resources/directory/htdocs/default_dir2json.xsl
Expand Up @@ -16,11 +16,19 @@
<xsl:param name="yanel.globalHtdocsPath" select="'YANELHTDOCS_IS_NULL'"/>

<xsl:template match="/">
{ "myData":"test"
}
<!--
<!-- 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"/>",
"date":"<xsl:value-of select="@date"/>",
"workflowState":"<xsl:value-of select="@workflow-state"/>"
}<xsl:if test="position() != last()">,</xsl:if>
</xsl:for-each>
]
}
</xsl:template>

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

0 comments on commit 212f487

Please sign in to comment.