chinni February 2016

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.?

Answers


Martin Honnen February 2016

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.

Post Status

Asked in February 2016
Viewed 3,903 times
Voted 9
Answered 1 times

Search




Leave an answer