xsl-list
[Top] [All Lists]

[xsl] How to iterate over all XML files in all subfolders in a folder?

2019-07-31 08:57:54
Hi Folks,

I have a folder that contains subfolders. Within each subfolder is a bunch of 
XML files. I want to iterate over all the XML files in all the subfolders. I 
tried the following and it doesn't work:

<xsl:for-each select="collection('folder/*?select=*.xml')">
    <xsl:message>
        Root element = <xsl:value-of select="name(/*)"/>
    </xsl:message>
</xsl:for-each>

What is the correct way to do this?

/Roger
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>