XSLT::Dependencies - Finds all the files included or imported by particular XSLT
use XSLT::Dependencies; my $dep = new XSLT::Dependencies; my @dep_list = XSLT::Dependencies->explore('myfile.xslt');
XSLT::Dependencies builds a list of all the files included or imported by a given XSTL one. Recursive dependencies always result in a flattened list.
XSLT::Dependencies scans the given XSTL file and all the files it includes by xsl:include or xsl:import directives.
xsl:include
xsl:import
Creates a new instance of XSLT::Dependencies object.
my $dep = new XSLT::Dependencies;
Scans a file together with all its dependencies and returns a list of absolute paths for every dependent file.
my @dep_list = XSLT::Dependencies->explore('myfile.xslt');
Resultant list does not include the path to the top-level file for which explore was called. If some file is included more then once, it gives a single item in the result. The list is not sorted in any way.
explore
Note that version 0.2 does not follow any non-standard namespace scheme except xsl:.
xsl:
The idea behind XSLT::Dependencies was to find all the files that are used to create the final XSLT transformation tree and take a decision whether you need to refresh cached version of the main one.
Andrew Shitov, <andy@shitov.ru>
XSLT::Dependencies module is a free software. You may redistribute and (or) modify it under the same terms as Perl, which ever version you mean.
To install XSLT::Dependencies, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XSLT::Dependencies
CPAN shell
perl -MCPAN -e shell install XSLT::Dependencies
For more information on module installation, please visit the detailed CPAN module installation guide.