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

Subject: Re: [jats-list] Re: Validating a JATS document with xmllint and the XSD schema
From: Alf Eaton <eaton.alf@xxxxxxxxx>
Date: Sat, 19 Oct 2013 18:39:58 +0100
So it did! Thanks Jeff.

For reference, libxml 2.9.1 is fine, libxml 2.7.8 gives the error.

On 18 October 2013 19:08, Jeff Beck <beck.jeff@xxxxxxxxx> wrote:
> Alf
>
> The latest libxml fixed this problem.
>
> Jeff
>
>
>> On Oct 18, 2013, at 1:06 PM, Alf Eaton <eaton.alf@xxxxxxxxx> wrote:
>>
>> 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