citation-style-language/styles — comment on commit e5e6e779e4a5d364eea0ac5eca279fea47cc031e
File: mammal-review.csl line 7
By bdarcus:

On Tue, Jan 10, 2012 at 12:57 PM, Charles Parnot

wrote:
> Damn it! I thought that would be caught by the validator :-)

It definitely should catch that; it's basic XML. If it doesn't, maybe
you ought to use a different validator (RNV is superfast, compliant,
open source, etc.).

> It looks like we could use a meta-validator script… I'll probably cook one up one at some point and share it. So, to summarize:
>
> - it should validate using the online validator against CSL 1.0

See above.

> - make sure the id is unique
> - have the id follow the title, replacing & with and (and then diacritics etc…), all lowercase
> - name of the file should be the same as the id
> - section should be added and should be CC by-sa 3.0
> - check element --> should be added
> - check rel="documentation" element --> should be added
> - check rel="self" element --> should be here and consistent
> - check the et-al-related attributes for consistency
> - check for unescaped characters
> - check that the 'citation-format' attribute is present only once and consistent with
> - check we have at least on 'field' attribute
>
> Some of these would be warnings, some can be considered errors.

I thought some of us started to work on such a script. Rintze, do you remember?

> Anything else?
>
> Charles
>
>
> On Jan 10, 2012, at 9:46 AM, Rintze M. Zelle wrote:
>
>> An unescaped ampersand. You were so close to committing a perfect style!
>>
>> ---
>> Reply to this email directly or view it on GitHub:
>> https://github.com/citation-style-language/styles/commit/e5e6e779e4a5d364eea0ac5eca279fea47cc031e#commitcomment-854055
>
> --
> Charles Parnot
> charles.parnot@gmail.com
> twitter: @cparnot
> http://mekentosj.com
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/citation-style-language/styles/commit/e5e6e779e4a5d364eea0ac5eca279fea47cc031e#commitcomment-854099