Skip Menu |
 

This queue is for tickets about the XML-Filter-XSLT CPAN distribution.

Report information
The Basics
Id: 305
Status: resolved
Worked: 5 min
Priority: 0/
Queue: XML-Filter-XSLT

People
Owner: Nobody in particular
Requestors: khampton [...] totalcinema.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: (no value)

Attachments
C:\WINDOWS\Desktop\desktop crap\LibXSLT.diff



Subject: [PATCH] XML::Filter::XSLT::LibXSLT
Download (untitled) / with headers
text/plain 180b
XML::Filter::XSLT::LibXSLT in the XML-Filter-XSLT-0.02 distribution did not feature the set_stylesheet_uri() method advertised in the Synopsis; the attached patch fixes that. -kip
*** /root/.cpan/build/XML-Filter-XSLT-0.02/lib/XML/Filter/XSLT/LibXSLT.pm Tue Jan 22 14:24:17 2002 --- /usr/lib/perl5/site_perl/5.005/XML/Filter/XSLT/LibXSLT.pm Sun Feb 24 22:27:28 2002 *************** *** 14,19 **** --- 14,32 ---- my $class = shift; my %params = @_; my $self = bless \%params, $class; + return $self; + } + + sub set_stylesheet_uri { + # <ubu> hey look, now it does what the synopsis says it can.. ;-> + my $self = shift; + my $uri = shift; + $self->{Source}{SystemId} = $uri; + } + + sub start_document { + my $self = shift; + # copy logic from XML::SAX::Base for getting "something" out of Source key. # parse stylesheet # store *************** *** 38,45 **** } $self->{StylesheetDOM} = $styledoc; - return $self; } sub end_document { --- 51,58 ---- } $self->{StylesheetDOM} = $styledoc; + $self->SUPER::start_document(@_) } sub end_document {
Download (untitled) / with headers
text/plain 264b
[KHAMPTON - Mon Feb 25 07:14:13 2002]: Show quoted text
> XML::Filter::XSLT::LibXSLT in the XML-Filter-XSLT-0.02 distribution > did not feature the set_stylesheet_uri() method advertised in the > Synopsis; the attached patch fixes that.
Applied and 0.03 uploaded to CPAN. Thanks.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.