I have an xslt that I need to run on multiple xml files that are present in a folder 'source' he hierarchy of the files is as follows:
file 1: source/a/1.xml file 2: source/b/2.xml file 3: source/b/3.xml file 4: source/c/4.xml
and so on. How do I run the following xslt on these xml files
<xsl:template match="/">
<xsl:for-each select="collection( 'source//*.xib')">
<xsl:variable name="filename" select="document-uri(.)"/>
<xsl:variable name="filename1">
<xsl:value-of select="substring-after($filename,'source/')"/>
</xsl:variable>
<xsl:result-document href="res/{$filename1}">
<xsl:apply-templates/>
</xsl:result-document>
</xsl:for-each>
</xsl:template>