in reply to Re^4: xml::xslt xpath question
in thread xml::xslt xpath question

And I found the bug:
elsif ( $path =~ s/^\/(child\:\:|)(\*|[\w\.\:\-]+)\[(\S+?)\]// ) ^^^^
Switching that line to following should do the trick:
elsif ( $path =~ s/^\/(child\:\:|)(\*|[\w\.\:\-]+)\[(.+?)\]//s )

Reported.

Replies are listed 'Best First'.
Re^6: xml::xslt xpath question (solution)
by Anonymous Monk on Jul 06, 2009 at 21:12 UTC
    I don't understand. Where should I apply this to fix my problem? Thanks for your help!
      In XML/XSLT.pm. You can find the full path using the following:
      perl -e'use XML::XSLT; print $INC{"XML/XSLT.pm"}'

      Update: Or

      perldoc -l XML::XSLT
        Thank you ikegami (Sage), It now runs without error.