This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Cannot parse MathML dtd...


Well, I am able to validate your file using xmllint from the libxml2
package.  I downloaded the mathml2 DTD archive from
http://www.w3c.org/Math/DTD/mathml2.tgz, unpacked it locally, changed your
declaration to point to my files, added a <title> and <para> to your
article, and the file validates when I use "xmllint --valid --noout
filename.xml".

Perhaps the parsers you are using are in SGML mode rather than XML mode? The
fact that it thought a colon was an illegal character rather than a
namespace separator indicates it isn't using XML parsing.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "David Adam" <david@quercus.org>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, May 31, 2004 5:05 PM
Subject: [docbook-apps] Cannot parse MathML dtd...


> Greetings!
>   I am trying to get MathML added in to DocBook, and am stymied - I
> cannot get the DTD to parse, after (I think) following all the
> suggestions I could find.  The errant code is:
>
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
> [
> <!ENTITY % MATHML.prefixed "INCLUDE">
> <!ENTITY % MATHML.prefix "mml">
> <!ENTITY % equation.content "(alt?,
> (graphic+|mediaobject+|mml:math))">
> <!ENTITY % inlineequation.content "(alt?,
> (graphic+|inlinemediaobject+|mml:math))">
> <!ENTITY % mathml2-qname-1 PUBLIC "-//W3C//ENTITIES MathML 2.0 Qualified
> Names 1.0//EN"
> "/usr/share/sgml/docbook/MathML-1.0/mathml2-qname-1.mod">
> %mathml2-qname-1;
> <!ENTITY % mathml PUBLIC "-//W3C//DTD MathML 2.0//EN"
> "/usr/share/sgml/docbook/MathML-1.0/mathml2.dtd">
> %mathml;
> ]>
> <article>
> </article>
>
> and the Emacs parser comes up with
>
> /usr/share/sgml/docbook/MathML-1.0/mathml2-qname-1.mod line 1 col 3
> entity mi.qname
> /usr/share/sgml/docbook/MathML-1.0/mathml2.dtd line 273 col 20 entity
mathml
> /home/david/IceAges2/testfile.xml line 16 col 8
> Name expected; at: :mi
>
> Parsing with nsgmls comes up with a long list of complaints about the
> colon (:) being an illegal character.  The mathml2.dtd has a single
> attribute named "xlink:href" (without the quotes) that looks like it may
> be related to the problem, but changing the colon to a period or a
> hyphen did not seem to make a difference.
>
> Any insights as to what I am doing wrong will be gratefully accepted.
> And thank you all!
>
> david adam
>
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>



To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]