Hi Jon,
I think Carlos meant to use the official MathML namespace instead of a DTD
reference:
xmlns:mathml="http://www.w3.org/1998/Math/MathML"
It seems loading the MathML DTD confused Jing. The DocBook 5 RelaxNG schema
permits elements in the MathML namespace, but it does not try to validate
them. But it seems your problem is recognizing the named character entities
in the MathML DTD. If Jing does not like loading the entire MathML DTD as
you tried, it would probably accept loading just the entity declarations
from the DTD. You could try copying the MathML dtd to another file and
stripping out all *but* the entity declarations. Those are conveniently
located at the end of the DTD file. Then reference that file in the
parameter entity in the DOCTYPE to load those entities.
Then Jing should validate against the DocBook 5 RNG schema. If you also
want to validate the embedded MathML elements, you will need a validator
compatible with NVDL such as oNVDL ( http://www.oxygenxml.com/onvdl.html ).
Bob Stayton
Sagehill Enterprises
b...@sagehill.net
From: Carlos Araya
Sent: Wednesday, October 30, 2013 1:24 PM
To: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Should xmllint successfully validate docbook 5
containing XIncludes?
Have you tried using the namespace declaration in your document?
Something like this:
<?xml version="1.0" encoding="utf-8"?>
<article xmlns='http://docbook.org/ns/docbook'
xmlns:xlink='http://www.w3.org/1999/xlink'
xmlns:mathml="http://www.w3.org/TR/MathML2/dtd/mathml2.dtd"
version="5.0" xml:lang="en"><title>Title of your document</title>
This should replace the entity declaration and still let your mathml
validate.
HTH,Carlos
On Tue, Oct 29, 2013 at 2:53 AM, Jon Leech <j...@alumni.caltech.edu> wrote:
On 10/28/2013 10:31 PM, Bob Stayton wrote:
The short answer is no, xmllint does not successfully validate DocBook 5
documents that are in fact valid.
I normally use Jing to validate DocBook 5. I've not seen it hang like you
have.
Thanks, that's good to know going forward. It turns out that stripping
the
<!DOCTYPE refentry [
<!ENTITY % mathml PUBLIC "-//W3C//DTD MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/mathml2.dtd">
%mathml;
]>
prolog from my documents will prevent jing from hanging. Unfortunately it
will also
prevent some of them from validating, since they use MathML entities like ⌊
.
I filed a bug on the jing project page to ask about this but perhaps I'm
missing
some other way to be able to use these entities that would work around this
issue?
Jon Leech
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org