
Locale::Maketext::Extract::Plugin::XSL - XSL file parser

Version 0.4

my $ext = Locale::Maketext::Extract->new(
plugins => {'Locale::Maketext::Extract::Plugin::XSL' => '*'} );
$ext->extract_file('test.xsl');
$ext->compile();
or perhaps more convenient:
xgettext.pl -P Locale::Maketext::Extract::Plugin::XSL <files>

Extracts strings to localise from XSL stylesheet files.
Using Perl, custom localisation functions may be registered using "register_function" in XML::LibXSLT->register_function().


This plugin will check for localisation functions in all attribute values of the XSL document. Valid localisation function names are:
Note that only the local-name for the function will be checked for. Namespace prefixes will be ignored. I.e. <xsl:value-of select="i18n:loc('Hello World')"/> and <xsl:value-of select="sth:loc('Hello World')"/> will be treated the same.

File types this plugin should handle
Extraction function. Parses XSL document and adds localisation entries
Extract loc functions from XPATH expressions

for extracting translatable strings from common template systems and perl source files.

Michael Kroell, <pepl at cpan.org>

Please report any bugs or feature requests to bug-locale-maketext-extract-plugin-xsl at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Locale-Maketext-Extract-Plugin-XSL. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
perldoc Locale::Maketext::Extract::Plugin::XSL
You can also look for information at:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Locale-Maketext-Extract-Plugin-XSL
http://cpanratings.perl.org/d/Locale-Maketext-Extract-Plugin-XSL
http://search.cpan.org/dist/Locale-Maketext-Extract-Plugin-XSL


Copyright 2008-2011 Michael Kroell, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.