Re: XML::XSLT does not accept an absolute path



On Thu, 15 Nov 2007 19:45:47 -0600, "Mumia W."
<paduille.4061.mumia.w+nospam@xxxxxxxxxxxxx> wrote:

On 11/15/2007 04:02 PM, Nick Monyatovsky wrote:
I've run into a bug in XML::XSLT. If you give it an .xsl file by an
absolute name, it fails with the message:

Error while parsing: no element found at line 1, column 0, byte -1 at
C:/Perl/site/lib/XML/Parser.pm line 185

If you use relative path, no problems.

The line that's casuing the error is this:

my $xslt = XML::XSLT->new( $xslfile, warnings => 1, debug => 1);

There are no spaces anything else "weird" in the absolute path.
But this is on Windows, so it begins with "D:\users".

This looks like a minor omission somewhere in the module.
How can this be corrected?

Thanks,
-- Nick Monyatovsky

Can't you use forward slashes?

D:/users/thefile.xml


No, no luck there either. Same error.
.



Relevant Pages

  • Re: Relative hyperlinks change to absolute when saving in Word 200
    ... > Their use is not even Windows specific, rather the relative and absolute ... will create a relative path for you, ... Word will switch to an absolute path (if this option ... The moving force behind the design decision is almost always "lots of people ...
    (microsoft.public.word.docmanagement)
  • Re: Relative hyperlinks change to absolute when saving in Word 2003
    ... >> The terms relative and absolute when attached to the ... > will create a relative path for you, ... > As to Hyperlinks and this particular absolute vs. relative option, ... > Cindy Meister ...
    (microsoft.public.word.docmanagement)
  • Re: DE doesn´t find moved tabels - VFP8/SP1
    ... > The relative path to anothere drive looks just like an absolute pathk, ... >> It is absolute if it's on a different drive. ... >> Microsoft Visual FoxPro MVP ...
    (microsoft.public.fox.programmer.exchange)
  • XML::XSLT does not accept an absolute path
    ... it fails with the message: ... Error while parsing: no element found at line 1, column 0, byte -1 at ... If you use relative path, ... There are no spaces anything else "weird" in the absolute path. ...
    (comp.lang.perl.modules)
  • Re: XML::XSLT does not accept an absolute path
    ... On 11/15/2007 04:02 PM, Nick Monyatovsky wrote: ... Error while parsing: no element found at line 1, column 0, byte -1 at ... If you use relative path, ... There are no spaces anything else "weird" in the absolute path. ...
    (comp.lang.perl.modules)