Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
more useful options
 
PerlMonks  

Re^3: XML::XSLT problem

by gellyfish (Monsignor)
on Nov 17, 2006 at 09:33 UTC ( #584681=note: print w/ replies, xml ) Need Help??


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


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.

/J\


Comment on Re^3: XML::XSLT problem
Download Code
Re^4: XML::XSLT problem
by artist (Parson) on Nov 17, 2006 at 15:43 UTC
    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.


    --Artist

      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.

      /J\

        Interesting.. I found <fo> tags in my original XSL. Should they be processed in correctly with XSLT or should throw the error?

        Update: Actually, I <fo> tags works fine, but <xsl:variable> tag gives problem: Here is the sample code

        <xsl:variable name="TextFontSize">10</xsl:variable>
        On further investigation, I found that this tag works fine inside <xsl:template> but fails when you declare it globally, See Example 3.
        --Artist

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-04-18 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (461 votes), past polls