Update: SOLVED! The problem was (as usual) permissions. The web user did have enough permissions to create the XML that I wanted to process, but it did not have permissions to LIST the files in that temp directory. And therefore -e $source failed even though open IN, '<', $source worked.

I ended up making a copy of the XML into a subdirectory created by the web user where I could proces it without any problems.
/Update

I'm trying to use the XML::LibXSLT to do some XML->HTML transformation. If I try it as myself, everything works correctly, if I try the same code, with the same XML and the same template via web, the $Stylesheet->transform_file($source) dies with "Error applying stylesheet: (get error out of libxslt)". Jolly good, but HOW? How am I supposed to get the error? The docs dot even mention errors.

And does anyone have any idea what could be wrong? The web user does have premissions to the XML and template files, to the libxml2.dll, libxslt_win32.dll, libexslt_win32.dll, the perl libraries, ... I'm using Perl 5.8.0 ActivePerl 805, XML::LibXSLT 1.53, XML::LibXML 1.56, under Win2k server and IIS/5.0. The code is inside a COM dll created by PerlCtrl 5.1.0 build 510.

Thanks, Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne


In reply to XML::LibXSLT and "Error applying stylesheet: (get error out of libxslt)" by Jenda

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.