diff options
author | Adrian Kummerländer | 2014-04-22 22:49:56 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-04-22 22:49:56 +0200 |
commit | 34b2f97ac57489d7c9555a3cb0c92c808a4948ea (patch) | |
tree | e54b367a4e4d5204c47b1478d1a0253cf42c2f25 /dummy | |
parent | 7142544d43b431df44d34921b0f3012fa1e0137d (diff) | |
download | InputXSLT-34b2f97ac57489d7c9555a3cb0c92c808a4948ea.tar InputXSLT-34b2f97ac57489d7c9555a3cb0c92c808a4948ea.tar.gz InputXSLT-34b2f97ac57489d7c9555a3cb0c92c808a4948ea.tar.bz2 InputXSLT-34b2f97ac57489d7c9555a3cb0c92c808a4948ea.tar.lz InputXSLT-34b2f97ac57489d7c9555a3cb0c92c808a4948ea.tar.xz InputXSLT-34b2f97ac57489d7c9555a3cb0c92c808a4948ea.tar.zst InputXSLT-34b2f97ac57489d7c9555a3cb0c92c808a4948ea.zip |
Implemented basic XML output of external read-directory function
* output is generated from XML hand-generated in a std::stringstream
** while this works reasonably well it is not how it should by done, i.e. this will have to be reimplemented using xerces / xalan constructs
** => this is intended to try out how a read-directory could work in a XSLT context
Diffstat (limited to 'dummy')
-rw-r--r-- | dummy/transform.xsl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dummy/transform.xsl b/dummy/transform.xsl index c0437a0..6dc45dc 100644 --- a/dummy/transform.xsl +++ b/dummy/transform.xsl @@ -23,9 +23,11 @@ <li><xsl:value-of select="."/></li> </xsl:for-each> </ul> - <div id="filelist"> - <xsl:value-of select="external:read-directory('.')" /> - </div> + <ul id="filelist"> + <xsl:for-each select="external:read-directory('.')/content/file"> + <li><xsl:value-of select="."/></li> + </xsl:for-each> + </ul> </body> </html> </xsl:template> |