View Single Post
  #2 (permalink)  
Old November 8th, 2007, 12:15 PM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

XPath 2.0 has a function called 'collection()' but its implementation depends greatly on the particular XSLT processor you are using. Some implementations will return you a collection of files in a directory, but not subdirectories as well.

Depending on which XSLT processor you are using you are probably best to write the code to get the list of XML files in that and call the stylesheet recursively (e.g. if your using a java xslt processor then write some java to get the list of filenames).

/- Sam Judson : Wrox Technical Editor -/