1 package SL::Template::XML;
3 use SL::Template::HTML;
7 @ISA = qw(SL::Template::HTML);
15 return $type->SUPER::new(@_);
19 my ($self, $variable) = @_;
20 my $form = $self->{"form"};
22 $variable = $main::locale->quote_special_chars('Template/XML', $variable);
24 # Allow no markup to be converted into the output format
25 my @markup_replace = ('b', 'i', 's', 'u', 'sub', 'sup');
27 foreach my $key (@markup_replace) {
28 $variable =~ s/\<(\/?)${key}\>//g;
37 if ($self->{"form"}->{"format"} =~ /elsterwinston/i) {
38 return "application/xml ";
39 } elsif ($self->{"form"}->{"format"} =~ /elstertaxbird/i) {
40 return "application/x-taxbird";
47 # tempfile needet for XML Output