1 package SL::Template::XML;
3 use parent qw(SL::Template::HTML);
11 return $type->SUPER::new(@_);
15 my ($self, $variable) = @_;
16 my $form = $self->{"form"};
18 $variable = $main::locale->quote_special_chars('Template/XML', $variable);
20 # Allow no markup to be converted into the output format
21 my @markup_replace = ('b', 'i', 's', 'u', 'sub', 'sup');
23 foreach my $key (@markup_replace) {
24 $variable =~ s/\<(\/?)${key}\>//g;
33 if ($self->{"form"}->{"format"} =~ /elsterwinston/i) {
34 return "application/xml ";
35 } elsif ($self->{"form"}->{"format"} =~ /elstertaxbird/i) {
36 return "application/x-taxbird";
43 # tempfile needet for XML Output