aboutsummaryrefslogtreecommitdiff
path: root/dummy
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-04-21 21:47:20 +0200
committerAdrian Kummerländer2014-04-21 21:47:20 +0200
commit7142544d43b431df44d34921b0f3012fa1e0137d (patch)
tree5fb5de3222d25f0e48f24a0dbdd0d18f5d917c89 /dummy
parentcdf4ad3486debe75fe89b2f04bb62541f3ac8405 (diff)
downloadInputXSLT-7142544d43b431df44d34921b0f3012fa1e0137d.tar
InputXSLT-7142544d43b431df44d34921b0f3012fa1e0137d.tar.gz
InputXSLT-7142544d43b431df44d34921b0f3012fa1e0137d.tar.bz2
InputXSLT-7142544d43b431df44d34921b0f3012fa1e0137d.tar.lz
InputXSLT-7142544d43b431df44d34921b0f3012fa1e0137d.tar.xz
InputXSLT-7142544d43b431df44d34921b0f3012fa1e0137d.tar.zst
InputXSLT-7142544d43b431df44d34921b0f3012fa1e0137d.zip
Implemented basic external directory traversal function
* _read-directory_ lists all files in a given directory ** currently text-only output, xml planned * improved FilesystemContext path resolution (relative path is fully resolved by boost::filesystem)
Diffstat (limited to 'dummy')
-rw-r--r--dummy/transform.xsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/dummy/transform.xsl b/dummy/transform.xsl
index 803e0f6..c0437a0 100644
--- a/dummy/transform.xsl
+++ b/dummy/transform.xsl
@@ -18,11 +18,14 @@
<div id="raw">
<xsl:value-of select="external:read-file('test.txt')" />
</div>
- <ul>
+ <ul id="xml">
<xsl:for-each select="external:read-xml-file('test.txt')/tester/eintrag">
<li><xsl:value-of select="."/></li>
</xsl:for-each>
</ul>
+ <div id="filelist">
+ <xsl:value-of select="external:read-directory('.')" />
+ </div>
</body>
</html>
</xsl:template>