| 1 | |||
| 2 | ################################################################################### | ||
| 3 | # | ||
| 4 | # Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de | ||
| 5 | # Embperl - Copyright (c) 2008-2015 Gerald Richter | ||
| 6 | # Embperl - Copyright (c) 2015-2023 actevy.io | ||
| 7 | # | ||
| 8 | # You may distribute under the terms of either the GNU General Public | ||
| 9 | # License or the Artistic License, as specified in the Perl README file. | ||
| 10 | # | ||
| 11 | # THIS PACKAGE IS PROVIDED 'AS IS' AND WITHOUT ANY EXPRESS OR | ||
| 12 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
| 13 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
| 14 | # | ||
| 15 | ################################################################################### | ||
| 16 | |||
| 17 | |||
| 18 | |||
| 19 | package Embperl::Recipe::LibXSLT ; | ||
| 20 | |||
| 21 | use strict ; | ||
| 22 | use vars qw{@ISA} ; | ||
| 23 | |||
| 24 | use Embperl::Recipe::XSLT ; | ||
| 25 | |||
| 26 | no warnings "uninitialized" ; | ||
| 27 | |||
| 28 | @ISA = ('Embperl::Recipe::XSLT') ; | ||
| 29 | |||
| 30 | # --------------------------------------------------------------------------------- | ||
| 31 | # | ||
| 32 | # Create a new recipe by converting request parameter | ||
| 33 | # | ||
| 34 | # --------------------------------------------------------------------------------- | ||
| 35 | |||
| 36 | |||
| 37 | sub get_recipe | ||
| 38 | |||
| 39 | { | ||
| 40 | my ($class, $r, $recipe) = @_ ; | ||
| 41 | |||
| 42 | $r -> component -> config -> xsltproc ('libxslt') ; | ||
| 43 | return Embperl::Recipe::XSLT -> get_recipe ($r, $recipe) ; | ||
| 44 | } | ||
| 45 | |||
| 46 | |||
| 47 | 1 ; |