Multiple inputs: process all files in directory
I would like to capture a sequence of elements that belong to multiple input XML files that are contained in the same directory as the XSLT document:
<xsl:variable name="allfiles" select="*.xml/descendant::testdata"/>
I am using Saxon and XSLT 2.0.
I found some documentation that suggested I could use something like this:
<xsl:for-each select="file:///path/to/directory">
<!-- process the documents -->
</xsl:for-each>
but that was not working for me. Any suggestions?
|