Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: XML::XSLT problem

by artist (Parson)
on Nov 16, 2006 at 23:05 UTC ( #584627=note: print w/replies, xml ) Need Help??

in reply to Re: XML::XSLT problem
in thread XML::XSLT problem

I am using version 0.48 for XML::XSLT as recently downloaded from CPAN. I copied that in my home directory and now, I get the message : Can't call method "createDocumentFragment" on an undefined value at XML/ line 766.

Replies are listed 'Best First'.
Re^3: XML::XSLT problem
by gellyfish (Monsignor) on Nov 17, 2006 at 09:33 UTC

    This sounds like you are trying to process a stylesheet without having loaded an XML document first. Please could you supply the smallest piece of code and sample XML and XSLT files that give this error - I'm pretty sure the code you have above wouldn't do this because it XML::DOM's createDocumentFragment() is only used when certain XSLT directives need to insert generated elements into the outout document.

    BTW don't bother following up the cpanforum posting, I'm not going to respond in both places.


      Thanks, gellyfish.
      When I used a different XSL file, I don't see this error and everything works fine. But, I still like to have my original XSL file working. I am not the author of XSL file.

        Quite. But if it is a bug I will need to see the XSL to diagnose and fix it. From the location of the error it would appear that the problem is with the way either a <xsl:variable /> or <xsl:param /> is being dealt with but I'd still need to see the inputs to see what is really going on.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://584627]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2021-12-04 08:33 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (30 votes). Check out past polls.