[XMLForm] RE: XMLForm changes
Status: Beta
Brought to you by:
ivelin
From: Baxter, B. <Bre...@sc...> - 2003-06-14 16:02:24
|
At last I have checked in my changes. Basically I had to check out another copy of the code and re-do all of my changes as I had originally checked it out as "anonymous" and not with my SF user name. Anyway, everything should be in right now. A few notes: - I noticed that there are Eclipse .project and .classpath files, I did nothing with these (I am an emacs guy). If they don't work, then someone will have to help me out. - There appears to be a version of the .java and .class files checked in under /webapp/WEB-INF/classes. I assumed that this was a mistake and did nothing with these files. All my changes were to the .java files in /src directory. - I added the jakarta-oro and xalan jars to /webapp/WEB-INF/lib as these are now required to build. I did a clean check out and build (with ANT) and it built just fine for me. I also ran a few sanity tests and things seemed to be working. Let me know if anyone finds a bug. Thanks. Brent -----Original Message----- From: Baxter, Brent Sent: Thursday, June 05, 2003 10:49 AM To: freebuilder-xmlform Subject: XMLForm changes I have been running my changes locally, and things seem to be fine so far. I'll try to get my changes checked in over the next day or two so that others can start testing as well. For those of you on the list that may be wondering what I am doing, here it is in a nutshell. Basically I want to use XMLForm on a project but I am restricted to JDK 1.3. There were several classes being used in the XMLForm that are JDK 1.4 dependant, such as logging and regular expressions. Ivelin agreed that if I was willing to do the work, he would take the patches to make the code non-JDK 1.4 dependent. So, what I ended up doing was the following: - Removed references to java.util.regex.* and replaced them with org.apache.oro.text.regex.* - Removed references to java.util.logging.* and replaced them with org.apache.commons.logging.* - Compiled with Xalan 2.5.0 which deprecated org.apache.xalan.serializer.* and replaced with org.apache.xml.serializer.* - Using Xalan 2.5.0 also required me to change the content handler property in XMLFormTransformerHandler on line 1293 to the following: outputProperties.setProperty("{http://xml.apache.org/xalan}content-handler", "org.apache.xml.serializer.ToXMLStream"); - I also have a bug fix that was causing only the first xf:violation to be inserted into the XPath of the resulting document. This was simply changing the "break" to "continue" on line 740 of XMLFormTransformerHandler Comments on any of these changes are welcomed. Right now it is all local on my machine, so it would be easy to change something now prior to checking it all in. Brent --- Brent Baxter Siemens Corporate Research bre...@sc... -----Original Message----- From: Ivelin Ivanov [mailto:iv...@ap...] Sent: Wednesday, June 04, 2003 10:44 PM To: Baxter, Brent Cc: freebuilder-xmlform Subject: Re: [struts-xsl] Troubles with XForms Sounds good. You should now have R/W permissions to the sf CVS. Let me know when you are finished with the check-ins and testing so that I can test myself. -=Ivelin=- |