Validator.nu I/O Error...

Hi Guys,

I have just finished (I think) writing a style for the university that I am studying at, and when going to validate it gives me a bunch of warnings (which I am told to ignore), but i also get this Error: IO Error: Non-XML Content-Type: text/x-csl.

I'm assuming this is an association error, as I have associated .csl with gedit on an Ubuntu box, but it is stopping the style from validating.

Is this something that I need to be worried about, or should I just ignore it?

BTW: The style and a couple of screen shots that show my workings can be found here: http://dewie.net.au/zotero_files/

Thanks!
  • this validator is simpler & has no settings you can get wrong:
    http://simonster.github.com/csl-validator.js/

    I think setting the validator to xml for uploaded files might be the problem - you should set it to automatic - but as I said: just copy&paste into the csl specific validator
  • Awesome, Thanks! That is what i thought might be the case... I just didn't think of changing the extension to .xml, and I even searched the forums for i/o error but that post didn't come up.

    I now have it validating in both, although because the JavaScript version is telling me that 1.0.1 is an invalid version...

    Thanks again for your help... Now onto the Postgrad style...
  • (don't put 1.0.1 as a version number - Rintze knows the details of why - it's related to compatiblity - but the .0.x versions aren't specified in cs:style)
  • No worries - have changed it :)
  • @scove, are you still around? We just discovered the reason for your "IO Error: Non-XML Content-Type: text/x-csl" validation error, and I was wondering which OS you were using at the time. Was it Ubuntu?
  • Yes I am, and yes I was. Still am, and in fact, am in the process of reworking the style after a start-of-year review.

    Was the error Ubuntu specific?
  • No, it's not Ubuntu-specific. See https://github.com/zotero/zotero/issues/633 for background. In short, the validator.nu website doesn't accept the "text/x-csl" MIME type.

    I'm just a bit confused how you ended up with this MIME type for .csl styles, since I couldn't find any Linux-specific code that would do that. Do you recall if you typed out the "text/x-csl" MIME type by hand when you registered ".csl" files with gedit?
Sign In or Register to comment.