Search the web
Sign In
New User? Sign Up
jsci
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
questions about MathMLParser   Message List  
Reply | Forward Message #209 of 369 |
Re: [jsci] questions about MathMLParser


Its on CVS,
http://cvs.sourceforge.net/viewcvs.py/jsci/jsci/classes/JSci/mathml/MathMLDocume\
ntImpl.java?rev=1.5&view=auto


but i'll send you a new jar as well.

--- Jarry Liu <stoneofjava@...> wrote:

> Mark,
>
> I really appreciate your wonderful work and kind
> help.
> But I still have questions:
>
> 1. Do you mean the method of Element
> createElementNS(String namespaceURI,String
> qualifiedName, String localpart) should be added to
> MathMLDocumentImpl.java ?
>
> 2. If so, can you share the implement of it. I just
> checked http://jsci.sourceforge.net/. It seems that
> you have not updated it yet.
>
> Sergei, I will post my code out as soon as it
> works.
>
> Best regards.
>
> Jarry
>
>
>
>
>
> --- Mark Hale <mj_hale@...> wrote:
>
> >
> > Hi,
> >
> > I believe I've fixed this now in the CVS. Problem
> > was
> > a change to the Xerces API.
> >
> > Modified: MathMLDocumentImpl class,
> > added new Xerces
> > createElementNS(String,String,String)
> > method.
> >
> > Also, don't forget the xmlns declaration:
> > <math
> xmlns="http://www.w3.org/1998/Math/MathML">
> >
> >
> > Regards,
> >
> > Mark
> >
> > --- Jarry Liu <stoneofjava@...> wrote:
> >
> > > Mark,
> > >
> > > New problem comes out in my work. It compiles
> and
> > > executes through, but the result is not correct.
> > The
> > > length of pareList is 0. ( Object parseList[]
> =
> > > parser.translateToJSciObjects(); )
> > >
> > > My MathML file is as folowing. I tried to add
> > <html>
> > > as root and insert one more block of <math>, but
> > > still
> > > got the same result. I don't know what is the
> > > problem?
> > > somthing wrong with the MathML file or any bugs
> in
> > > java file? Could you please give me some idea?
> > >
> > > Jarry
> > >
> > >
> > > <?xml version="1.0"?>
> > > <!DOCTYPE math PUBLIC "-//W3C//DTD MathML
> 2.0//EN"
> > >
> > >
> "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">
> > > <math >
> > > <apply>
> > > <plus/>
> > > <cn>25</cn>
> > > <cn>31</cn>
> > > </apply>
> > > </math>
> > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Yahoo! Mail Mobile
> > > Take Yahoo! Mail with you! Check email on your
> > > mobile phone.
> > > http://mobile.yahoo.com/learn/mail
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > > jsci-unsubscribe@yahoogroups.com
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
___________________________________________________________
> >
> > How much free photo storage do you get? Store your
> > holiday
> > snaps for FREE with Yahoo! Photos
> > http://uk.photos.yahoo.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
>
> Yahoo! Groups Links
>
>
> jsci-unsubscribe@yahoogroups.com
>
>
>
>
>






___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail
http://uk.messenger.yahoo.com



Tue Jul 5, 2005 3:54 pm

mj_hale
Offline Offline
Send Email Send Email

Forward
Message #209 of 369 |
Expand Messages Author Sort by Date

Hi, all I tried to run a small sample using jsci IO to read MathML. I compile Problem.java through, but when running, I got following exception : Exception in...
stoneofjava
Offline Send Email
Jun 30, 2005
4:09 pm

I suspect its because your XML is not valid. It is missing a <math> root element. ... JSci.mathml.MathMLDocumentImpl.getDocumentElement(Unknown ... ...
Mark Hale
mj_hale
Offline Send Email
Jun 30, 2005
4:41 pm

Mark, Thanks for your quick reply. I tried to add <math> tag into the xml file, but still got the same exception. I am not sure if I wrote the right DOCTYPE,...
Jarry Liu
stoneofjava
Offline Send Email
Jun 30, 2005
5:13 pm

It should work if the xml validates against the DTD. But, I'm adjusting the code to be a little bit lenient. ... ...
Mark Hale
mj_hale
Offline Send Email
Jun 30, 2005
5:21 pm

I really appreciate it and wait for good news from you. ... ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up...
Jarry Liu
stoneofjava
Offline Send Email
Jun 30, 2005
5:42 pm

Hi, Mark Sorry to bother you again. I worked on this issue several hours already, but still have no idea what's wrong with my code. Do you have any examples...
Jarry Liu
stoneofjava
Offline Send Email
Jun 30, 2005
8:23 pm

... Try building JSci with this file. ... === message truncated === ___________________________________________________________ Yahoo! Messenger - NEW crystal...
Mark Hale
mj_hale
Offline Send Email
Jun 30, 2005
8:30 pm

OK ... ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football ...
Jarry Liu
stoneofjava
Offline Send Email
Jun 30, 2005
8:39 pm

Mark, It works! So amazing! By the way, I found you changed a little code in function getDocumnetElement(). Changing return value from (MathMLElement) math...
Jarry Liu
stoneofjava
Offline Send Email
Jun 30, 2005
9:13 pm

Mark, New problem comes out in my work. It compiles and executes through, but the result is not correct. The length of pareList is 0. ( Object parseList[] = ...
Jarry Liu
stoneofjava
Offline Send Email
Jul 1, 2005
3:06 pm

Hi, I believe I've fixed this now in the CVS. Problem was a change to the Xerces API. Modified: MathMLDocumentImpl class, added new Xerces...
Mark Hale
mj_hale
Offline Send Email
Jul 2, 2005
3:32 am

Mark, I really appreciate your wonderful work and kind help. But I still have questions: 1. Do you mean the method of Element createElementNS(String...
Jarry Liu
stoneofjava
Offline Send Email
Jul 5, 2005
3:37 pm

Its on CVS, http://cvs.sourceforge.net/viewcvs.py/jsci/jsci/classes/JSci/mathml/MathMLDocumentImpl.java?rev=1.5&view=auto but i'll send you a new jar as well. ...
Mark Hale
mj_hale
Offline Send Email
Jul 5, 2005
3:54 pm

I got it. Mark. Now I can continue on my project. If any problems , I will let you know. Thanks again for your wondful work. You saved us a lot. Jarry ... ...
Jarry Liu
stoneofjava
Offline Send Email
Jul 5, 2005
4:28 pm

I got it. Mark. Now I can continue on my project. If any problems , I will let you know. Thanks again for your wondful work. You saved us a lot. Jarry ... ...
Jarry Liu
stoneofjava
Offline Send Email
Jul 5, 2005
4:28 pm

Mark, I got a new question. If I pass number to java file and use evaluate(), I can get correct result. But If I parse variable (ci) to java file and use...
Jarry Liu
stoneofjava
Offline Send Email
Jul 5, 2005
10:56 pm

Try using JSci.maths.MathInteger instead of java.lang.Integer. MathInteger supports operations rather than just being a wrapper like Integer. ... ...
Mark Hale
mj_hale
Offline Send Email
Jul 5, 2005
11:08 pm

That was so easy and it works. I should not spent 3 hours on it. Thanks so much. ... __________________________________________________ Do You Yahoo!? Tired...
Jarry Liu
stoneofjava
Offline Send Email
Jul 6, 2005
1:47 pm

Hi, Mark Sorry to bother you again. I worked on this issue several hours already, but still have no idea what's wrong with my code. Do you have any examples...
Jarry Liu
stoneofjava
Offline Send Email
Jun 30, 2005
8:24 pm

Excuse txt, on cell fone. Try with a pure mml doc not mixed html ... =?ISO-8859-1?B?TmV3IHByb2JsZW0gY29tZXMgb3V0IGluIG15IHdvcmsuIEl0IGNvbXBpbGVzIGFuZA0=?= ... ...
Mark Hale
mj_hale
Offline Send Email
Jul 1, 2005
3:58 pm

Thanks Mark. But I got the same result of 0 after I changing the mml file. If you are busy, we can talk about it later when you have time. ... ...
Jarry Liu
stoneofjava
Offline Send Email
Jul 1, 2005
4:23 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help