[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] has anyone been able to get the docbook + mathml + svg schema customization layer working in oXygen since mml rng 2006-9-8?
Here is the new version Yutaka Furubayashi made in response to a bug report I submitted (see below). http://yupotan.sppd.ne.jp/relax-ng/mml2-relaxng20060908.zip Here is the old version, which has no problems with oXygen, but is incorrect. http://yupotan.sppd.ne.jp/relax-ng/mml2-relaxng20060604.zip Here is the bug report I submitted, though I have much more complicated MathML to validate if you want that: Greetings from a humble American visitor: I am using your RELAX NG MathML schema to validate the example below. Except for the preamble, both example versions are identical. As far as I can tell, your schema indicates the example is invalid, but the official MathML DTD at http://www.w3.org/TR/MathML2/dtd/mathml2.dtd indicates the markup is valid. Your schema says the <plus/> and <cn type='integer'>1</cn> elements aren't allowed in that context. I generated this example from Mathematica, so I am reasonably sure it should be valid. Is there an error in your schema? Thank you very much for your time, example DTD version (valid): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd"> <math> <semantics> <mrow> <mrow><mi>as</mi><mo>+</mo><mn>1</mn></mrow> <mo></mo> <mi>b</mi></mrow> <annotation-xml encoding='MathML-Content'> <apply><eq/><apply> <plus/><ci>as</ci> <cn type='integer'>1</cn> </apply><ci>b</ci> </apply> </annotation-xml> </semantics> </math> example RNG version (is this really invalid?): <math 'http://www.w3.org/1998/Math/MathML'> <semantics> <mrow> <mrow><mi>as</mi><mo>+</mo><mn>1</mn></mrow> <mo></mo> <mi>b</mi></mrow> <annotation-xml encoding='MathML-Content'> <apply><eq/><apply> <plus/><ci>as</ci> <cn type='integer'>1</cn> </apply><ci>b</ci> </apply> </annotation-xml> </semantics> </math> On 9/29/06, Dave Pawson <davep@dpawson.co.uk> wrote: > Jirka Kosek wrote: > > Chris Chiasson wrote: > >> If I just load mathml2.rng in oXygen and validate that alone, it still > >> shows an error: > >> > >> SystemID: > >> \\Wsip-70-182-153-37.br.br.cox.net\chris\.xml\mathml\mml-datatypes.rng > >> Location: 67:11 > >> Description: conflicting ID-types for attribute "xref" of element > >> "matrix" from namespace "http://www.w3.org/1998/Math/MathML" > > > > Well, then you should report bug to the author of this MathML schema. > > But if you will use mathml2-stub.rng which I provided, you should get > > working schema. > > From one of the mathml WG. > Possibly the rng schema is one done by a trang conversion from the DTD. > > Could you tell me the source of the schema please, > and I'll try and find out where a better one is, if there is one. > > regards DaveP > > > > > > regards > > -- > Dave Pawson > XSLT XSL-FO FAQ. > http://www.dpawson.co.uk > > -- http://chris.chiasson.name/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]