My first patch on the mozilla trunk
Par Laurentj le vendredi, juin 24 2005, 17:30 - Projets - Lien permanent
My current project is an XML wysiwyg editor, based on Composer/Firefox. It will include a RelaxNG validator and I need a library to validate values against XML Schema datatype. Fortunately, I found a such library in the mozilla trunk, in the schema-validation extension developped by Doron Rosenberg. It is used by the XForms extension.
However, I can't use the main class (nsSchemaValidator.cpp) as is because it depends on other components that i don't need. So I move all method I want (IsValid* and Validate*) to my own class.
With my own test suite, I found some bug on this methods (the schema-validation extension is still in developpement). So I fixed them, and then I proposed a patch on bugzilla.
This patch contains only few lines of code. But this is my first patch for the mozilla project and so, this is a great moment for me :-)
Commentaires
My first patch was a one liner in a makefile ! Your's is a lot more deeper in the code, Congratulations !!