Giter Site home page Giter Site logo

Comments (9)

jeffbeckncbi avatar jeffbeckncbi commented on June 15, 2024

The value-of in the messages is supposed to report what is wrong.

Do you have an issue with processing the value-of (it doesn't look like it) or just that it is giving you bad messages? I'd like to be able to customize the messages to the content. I'll review the value-ofs throughout and make sure that they are reporting what I would expect. If I can't get them to work right, then I'll remove them all

And, of course, if you have trouble processing them, I'll remove them all.

from jats-schematrons.

jeffbeckncbi avatar jeffbeckncbi commented on June 15, 2024

The value-of in the copyright error message is working as I expect it to when I run the Schematrons with Oxygen. It should only be reporting values less than 1000 or greater than 10000. If you are seeing "2019" reported in this error message, then we might have a problem with hour the schematron processor is applying this test.

from jats-schematrons.

hubgit avatar hubgit commented on June 15, 2024

The problem is not with the message when it finds a problem, e.g. "The copyright year should have 4 digits, instead of "20019"", but when it doesn't find a problem, e.g. "The copyright year should have 4 digits, instead of "2019"".

from jats-schematrons.

hubgit avatar hubgit commented on June 15, 2024

There is also the issue that support for value-of isn't yet complete in schematron-runner, but that is at least solvable either by finishing the implementation or using a different runner.

from jats-schematrons.

jeffbeckncbi avatar jeffbeckncbi commented on June 15, 2024

I think we might have a larger problem with how the schematrons are being run. II finally got some time to run the validator on the J4R site from outside of our network. This year test is a good example.
The way that the schematron is supposed to work is that when this year testf doesn't find a problem (when the year is a 4-digit number), then there should be no output at all. The value-of should only report the value of the element when there is a problem.

<assert test="number() and number() > 999 and number() &lt; 10000">

If the test in an assert is true, then nothing should be reported because the Schematron writer is asserting that this iXPATH must be true.

I found other issues where the schematrons are not acting as expected. I'll make up some test files that are easy to understand and add them in a samples directory under jats-schematrons.

General validator issues moved to jats-validator

from jats-schematrons.

hubgit avatar hubgit commented on June 15, 2024

The way that the schematron is supposed to work is that when this year testf doesn't find a problem (when the year is a 4-digit number), then there should be no output at all. The value-of should only report the value of the element when there is a problem.

Ok, that's interesting and potentially makes this issue irrelevant - I'll investigate. Wouldn't it still be useful to have a description of the test that passed, though?

from jats-schematrons.

hubgit avatar hubgit commented on June 15, 2024

The tests that I did get to report are assigning ERROR as WARNING. Do I need to separate those in the jats4r.sch again.

The phases should be controlling which tests are assigned as errors or warnings.

from jats-schematrons.

jeffbeckncbi avatar jeffbeckncbi commented on June 15, 2024

Wouldn't it still be useful to have a description of the test that passed, though?

I think no. In order to find the right "wrong" thing, we need to test lots of places. Reporting asserts tat are true or reports that are false will just get really confusing.

from jats-schematrons.

hubgit avatar hubgit commented on June 15, 2024

Fair enough, no need to worry about this then.

from jats-schematrons.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.