Andrew Shitov > XSLT-Dependencies-0.2 > XSLT::Dependencies

Download:
XSLT-Dependencies-0.2.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.2   Source  

NAME ^

XSLT::Dependencies - Finds all the files included or imported by particular XSLT

SYNOPSIS ^

 use XSLT::Dependencies;
 my $dep = new XSLT::Dependencies;
 my @dep_list = XSLT::Dependencies->explore('myfile.xslt');

ABSTRACT ^

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.

DESCRIPTION ^

XSLT::Dependencies scans the given XSTL file and all the files it includes by xsl:include or xsl:import directives.

new

Creates a new instance of XSLT::Dependencies object.

 my $dep = new XSLT::Dependencies;

explore

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.

RANDOM THOUGHTS ^

Note that version 0.2 does not follow any non-standard namespace scheme except 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.

AUTHOR ^

Andrew Shitov, <andy@shitov.ru>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: