how to get all the images from a folder with extension .jpg using xslt
For example,I have this folder by name, test under which some n number of images are stored with .jpg extension as well as some log files. Now I need top get only .jpg images but not log files using XSLT. Is this possible.?
In Saxon 9.7 with XSLT 3.0 support you can get a sequence of URIs with a certain file name ending with e.g. uri-collection('directory-name?select=*.jpg'). I am not sure what you want to do exactly when you say "get all the images", the suggestion would allow you to get the file URIs of the images, e.g. file:/root/directory-name/file1.jpg.
Asked in February 2016Viewed 3,903 timesVoted 9Answered 1 times