White space entity is resolved when validating DTD but I wish it wouldn't
Posted: Tue Apr 26, 2022 3:40 pm
When I validate an article against the JATS dtd in our validation service (JAVA, runs on a unix machine) that contains the following code:
I get this validation error:
entity that is the direct child of the mml:mrow element.
However, when I validate it against the same dtd in Oxygen, I get no error. It seems like the entity is resolved as a 'whitespace' and ignored.
While I get that this is the correct behaviour
I was wondering if there was a possibility to not resolve these whitespace entities so that we can replicate the behaviour of our server in Oxygen?
Thanks,
Zsofia
Code: Select all
<mml:math><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mi>a</mml:mi> <mml:mo>.</mml:mo><mml:msub><mml:mi>c</mml:mi><mml:mi>p</mml:mi></mml:msub><mml:mo>.</mml:mo><mml:mi>ρ</mml:mi></mml:mrow></mml:math>
This is triggered by theThe content of element type "mml:mrow" must match "(copyright-statement*,copyright-year*,copyright-holder*,license*)". Children of type "character reference" are not allowed.
Code: Select all
 
However, when I validate it against the same dtd in Oxygen, I get no error. It seems like the entity is resolved as a 'whitespace' and ignored.
While I get that this is the correct behaviour

Thanks,
Zsofia