[jats-list] Re: Validating a JATS document with xmllint and the XSD schema

Subject: [jats-list] Re: Validating a JATS document with xmllint and the XSD schema
From: Alf Eaton <eaton.alf@xxxxxxxxx>
Date: Fri, 18 Oct 2013 18:06:12 +0100
For reference, I was able to solve my problem (which was actually a
problem in xmllint/libxml) by commenting out a line of the MathML XSD
file (for the CrossRef validation it was MathML3, which gave a
similar, but different, error).

Alf

On 18 October 2013 16:08, Alf Eaton <eaton.alf@xxxxxxxxx> wrote:
> Has anyone been able to successfully validate a JATS document using
> xmllint and the JATS XSD schema?
>
> I can validate a file perfectly using the DTD:
> % xmllint example.xml --noout --loaddtd --valid
>
> but when using the schema it complains about part of the MathML module:
> % xmllint example.xml --noout --schema
> http://jats.nlm.nih.gov/publishing/1.0/xsd/JATS-journalpublishing1.xsd
>
> => http://jats.nlm.nih.gov/publishing/1.0/xsd/ncbi-mathml2/content/constructs.xsd:193:
> element complexType: Schemas parser error : complex type
> 'piecewise.type': The content model is not determinist.
> => WXS schema http://jats.nlm.nih.gov/publishing/1.0/xsd/JATS-journalpublishing1.xsd
> failed to compile
>
> Normally I'd just use the DTD, but now that the JATS schema has been
> incorporated into CrossRef's deposit schema[1] there's a need for
> validation against the XSD schema as well.
>
> Thanks,
> Alf
>
> [1] http://www.crossref.org/schema/deposit/crossref4.3.3.xsd

Current Thread