aboutsummaryrefslogtreecommitdiff
path: root/dummy
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-04-26 11:21:10 +0200
committerAdrian Kummerländer2014-04-26 11:21:10 +0200
commit0b611b7bd28851fe8096b3d2c121c68e231ada11 (patch)
tree80352794dce96cec2b86659e5a8260fb9a7686c2 /dummy
parent938ed7622656c3494ae8fdb83bc2ad4b1f31d901 (diff)
downloadInputXSLT-0b611b7bd28851fe8096b3d2c121c68e231ada11.tar
InputXSLT-0b611b7bd28851fe8096b3d2c121c68e231ada11.tar.gz
InputXSLT-0b611b7bd28851fe8096b3d2c121c68e231ada11.tar.bz2
InputXSLT-0b611b7bd28851fe8096b3d2c121c68e231ada11.tar.lz
InputXSLT-0b611b7bd28851fe8096b3d2c121c68e231ada11.tar.xz
InputXSLT-0b611b7bd28851fe8096b3d2c121c68e231ada11.tar.zst
InputXSLT-0b611b7bd28851fe8096b3d2c121c68e231ada11.zip
Implemented global DOM document cache
* the plan to return XML-nodes from each external function requires a better way to manage the lifetime of many xerces DOM document instances and their support class instances ** this is why DomDocumentCache and DomDocumentCache::item were implemented ** based on std::map so we can easily access the result of old function calls * changed external read-directory function to return the children of the document node instead of the document node itself ** removes unnecessary cruft in function calls ** will make returning status codes alongside the function result more pleasing to the eye * updated test transformation to reflect new features
Diffstat (limited to 'dummy')
-rw-r--r--dummy/transform.xsl12
1 files changed, 11 insertions, 1 deletions
diff --git a/dummy/transform.xsl b/dummy/transform.xsl
index 95467ca..62d28c2 100644
--- a/dummy/transform.xsl
+++ b/dummy/transform.xsl
@@ -24,7 +24,17 @@
</xsl:for-each>
</ul>
<ul id="filelist">
- <xsl:for-each select="external:read-directory('.')/content/item[@type='file']">
+ <xsl:for-each select="external:read-directory('.')[@type='file']">
+ <li><xsl:value-of select="."/></li>
+ </xsl:for-each>
+ </ul>
+ <ul id="filelist2">
+ <xsl:for-each select="external:read-directory('../')[@type='file']">
+ <li><xsl:value-of select="."/></li>
+ </xsl:for-each>
+ </ul>
+ <ul id="filelist3">
+ <xsl:for-each select="external:read-directory('../')[@type='directory']">
<li><xsl:value-of select="."/></li>
</xsl:for-each>
</ul>