aboutsummaryrefslogtreecommitdiff
path: root/lib/WebCoso/XSLT.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/WebCoso/XSLT.pm')
-rw-r--r--lib/WebCoso/XSLT.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/WebCoso/XSLT.pm b/lib/WebCoso/XSLT.pm
index cc64cfb..09c5b3f 100644
--- a/lib/WebCoso/XSLT.pm
+++ b/lib/WebCoso/XSLT.pm
@@ -20,6 +20,8 @@ sub new {
$self->{xslt_proc}->register_function($NS,'title-for',
sub{$self->getTitleXML(WebCoso::Common::getTitleFor($self->{fc},@_))});
+ $self->{xslt_proc}->register_function($NS,'dst-uri-for',
+ sub{WebCoso::Common::dstUriFor(@_)});
$self->{xslt_proc}->register_function($NS,'tagged',sub{$self->getTagsXML});
$self->{xslt_proc}->register_function($NS,'dates-for',
sub{$self->getDatesXML(WebCoso::Common::getDatesFor($self->{fc},@_))});
@@ -79,7 +81,7 @@ sub new {
language => $matches->[1],
filename => $deps->[-1],
));
- $self->{fc}->put($target,$xslt->output_string($out));
+ $self->{fc}->put($target,$out);
};
bless $self,$class;