citation-style-language / csl-validator Goto Github PK
View Code? Open in Web Editor NEWValidator for CSL styles and locales
Home Page: https://validator.citationstyles.org/
License: MIT License
Validator for CSL styles and locales
Home Page: https://validator.citationstyles.org/
License: MIT License
The link here
should go to http://validator.citationstyles.org/ instead of just http://citationstyles.org/.
This may be what you mentioned earlier, not sure. After uploading a local file to the validator, if you refresh the page in the browser, the selection persists in history (it still says "File Upload"), but the button is replaced with an input field (I guess for the URL). The button should also persist.
Looks like NU validator is still up -- maybe related to move to https?
Last time when validator.nu was down the validator beach-balled forever.
Now that we have http://formatter.citationstyles.org/ (https://github.com/citation-style-language/formatter), which reformats styles similar to https://github.com/citation-style-language/utilities/blob/master/csl-reindenting-and-info-reordering.py, and allows validation against the stricter https://github.com/citation-style-language/schema/blob/master/csl-repository.rnc, I'm wondering what the best workflows would be to guide users towards a style submission.
I could keep http://validator.citationstyles.org/ as the landing page. When a user tests a style that doesn't generate validation errors, we currently provide a link to https://github.com/citation-style-language/styles/blob/master/CONTRIBUTING.md. We could replace this with a link to a wizard/form that helps the user follow https://github.com/citation-style-language/styles/wiki/Style-Requirements. We can also offer validation results against csl-repository.rnc, and show a textarea box with the reformatted style, and perhaps a download button to save it to disk.
I know @fbennett already played with a way to directly create a GitHub pull request from a webpage, but that seems like a later worry.
Currently we report "success".
See https://wiki.whatwg.org/wiki/Validator.nu_JSON_Output#The_.22type.22_string
@rmzelle
I tried to validate a style through "File Upload", and got an error :
-With the in-house validator ( validator.citationstyles.org/? ) : "Validation failed: Non-XML Content-Type: “text/x-csl”."
-With validator.nu, "IO Error: Non-XML Content-Type: text/x-csl."
Thanks
As a personal reminder, I have a little bit of RunKit code that shows the latest libraries in https://cdnjs.com/, which makes it easier to spot which of the JS libraries in the CSL validator, formatter, and my ref-extractor are out-of-date:
I've just tried validating a style against the 1.0.1 schema, and I'm getting this error:
Validation failed: HTTP resource not retrievable. The HTTP status from the remote server was: 404.
Can you say something about the licence for this code?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.