# # Here's the stylesheet. The annoying part is that the # actual change is three lines, the rest is grammar. You # can add multiple templates to make simultaneous changes. # my $xsl = < $new_time EOS # # The perl is down here # use XML::XSLT; my $xslt = XML::XSLT->new ($xsl, warnings => 1); $xslt->transform ($xmlfile); print $xslt->toString; $xslt->dispose();