in reply to Validating XML file with XML::Schematron::LibXSLT

Hi hiruzen,
I have not use XML::Schematron::LibXSLT before, but looking at the documentation on metacpan, I think you are not using the module as stated.
In the Synopsis, I didn't see anything like:

... = XML::Schematron::LibXSLT->new() # empty new method
What I can see is  ... = XML::Schematron::LibXSLT->new(schema => 'my_schema.xml') # note that

Then did you notice this:
use XML::Schematron; my $pseudotron = XML::Schematron->>new_with_traits( traits => ['LibXSL +T'], schema => 'my_schema.xml');
Note the ->>, but you used -> Maybe if you make those changes it would work. Just what I observed.
Update:
Note that '->>' as specified in the module documentation is actually a typo. Noted by AM and the OP of this thread. I only wonder why that was not spotted for such a long time atleast about 24 months now.
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Replies are listed 'Best First'.
Re^2: Validating XML file with XML::Schematron::LibXSLT
by Anonymous Monk on Jul 28, 2014 at 07:06 UTC

    Note the ->>, but you used -> Maybe if you make those changes it would work. Just what I observed.

    that is obviously a typographical error, a typo

      Maybe but I wonder why that it has not been reported. Or why the Author has not seen it for about 4 years now, though it looks like there is not activity on that module for about 24 months now

      If you tell me, I'll forget.
      If you show me, I'll remember.
      if you involve me, I'll understand.
      --- Author unknown to me

        Maybe

        There is no "maybe" about it, ->> isn't a perl operator, its a syntax error

Re^2: Validating XML file with XML::Schematron::LibXSLT
by hiruzen (Novice) on Jul 28, 2014 at 08:42 UTC
    Using "->>" it gives following error:
    syntax error at schematron.pl line 27, near "->>"<br />Global symbol " +$pseudotron" requires explicit package name at schematron.pl line 28.