in reply to Re^4: Validating XML file with XML::Schematron::LibXSLT
in thread Validating XML file with XML::Schematron::LibXSLT

The test suite is run as part of the install process ... if you downloaded the .t file, its not much good to run it without the data files it references

cpanm --test-only XML::Schematron::LibXSLT

  • Comment on Re^5: Validating XML file with XML::Schematron::LibXSLT

Replies are listed 'Best First'.
Re^6: Validating XML file with XML::Schematron::LibXSLT
by hiruzen (Novice) on Jul 30, 2014 at 05:22 UTC
    cpanm --test-only XML::Schematron::LibXSLT gives following output
    --> Working on XML::Schematron::LibXSLT Fetching http://www.cpan.org/authors/id/K/KH/KHAMPTON/XML-Schematron-1 +.09.tar.gz ... OK Configuring XML-Schematron-1.09 ... OK Building and testing XML-Schematron-1.09 ... OK Successfully tested XML-Schematron-1.09

      Ok, so, the schematron validates. So back to your question Validating XML file with XML::Schematron::LibXSLT, with the new_with_traits not printing anything (no $messages),

      when verify returns no $messages it probably means file is valid according to schema

      Does that make sense? Do you have a file you know to be bad against your schema and a file you know to be good against your schema to test against your schema?