in reply to XML::Parser trouble

Your problem is that <?xml:stylesheet type="text/xsl" href="log.xsl"?> is a processing instruction, not a start tag . You use the Stream style which by default, if no handler is set, output the input as-is.

You need to write a subroutine named PI, which will be called as per XML::Parser doc: "The $_ variable will contain a copy of the PI and the target and data are sent as 2nd and 3rd parameters respectively. The target here is xml:stylesheet and the data is type="text/xsl" href="log.xsl".

Replies are listed 'Best First'.
Re: Re: XML::Parser trouble
by gregor42 (Parson) on Apr 04, 2001 at 21:10 UTC

    Excellent! Many thanks brother mirod..

    All that I needed to do was to add:

     sub PI{}

    which handles (ingores) the processing instruction.

    Many thanks again, and Boomshanka!



    Wait! This isn't a Parachute, this is a Backpack!