[XMLForm] Re: [struts-xsl] Troubles with XForms
Status: Beta
Brought to you by:
ivelin
|
From: Ivelin I. <iv...@ap...> - 2003-06-05 02:44:09
|
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=- ----- Original Message ----- From: "Baxter, Brent" <Bre...@sc...> To: "'Ivelin Ivanov'" <iv...@ap...> Cc: <je...@op...> Sent: Wednesday, June 04, 2003 9:20 AM Subject: RE: [struts-xsl] Troubles with XForms > > Ivelin, > > Well, I am familiar enough with the code to find/replace a few method calls > and to track down a bug or two. I will continue to use my fixes to be > reasonably sure that they are going to be fine. My sf.net login is > "brentbaxter". > > I will also attempt to subscribe and send my email to the xmlform mail list. > I tried to subscribe a few days ago, but I have a feeling that my company is > blocking email from that domain so I will attempt to subscribe again with my > personal email address. > > Thanks. > Brent > > -----Original Message----- > From: Ivelin Ivanov [mailto:iv...@ap...] > Sent: Wednesday, June 04, 2003 12:05 AM > To: Baxter, Brent > Cc: je...@op... > Subject: Re: [struts-xsl] Troubles with XForms > > > > Brent, > > It seems that you're up to speed on the XMLForm code (not that there's too > much to it). > I don't want to delay your patches any longer, so why don't you give me your > sf login id? > I would only ask that you submit your latest email to xmlform mailing list > and make sure that it continues to work with jdk 1.4 and tomcat 4.x. > > -=Ivelin=- > > ----- Original Message ----- > From: "Baxter, Brent" <Bre...@sc...> > To: <iv...@ap...> > Cc: <je...@op...> > Sent: Tuesday, June 03, 2003 4:33 PM > Subject: RE: [struts-xsl] Troubles with XForms > > > > > > Ivelin, > > > > Jeff sent me your message regarding the creation of a patch for XMLForm. > > So, as suggested I have a modified local copy of the XMLForm code (started > > with a checkout from the top of the CVS tree on SF.net) that removes the > > dependency on JDK 1.4 classes. I am compiling with JDK 1.3.1 right now > and > > it compiles fine and seems to run just fine. The summary of changes are > as > > follows: > > > > - 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 > > orp.apache.commons.loggin > > - Compiled with Xalan 2.5.0 which deprecated org.apache.xalan.serializer.* > > to org.apache.xml.serializer.* and 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 included a fix that I previously sent to you changing the "break" > > to "continue" on line 740 of XMLFormTransformerHandler > > > > Anyway, let me know how you would like to proceed. I think it would be > best > > for you to take my code and review/test it for a while. After that we can > > discuss how to proceed with getting the changes into the source tree. > > > > Let me know. > > > > Thanks. > > Brent > > > > > > -----Original Message----- > > From: Jeff Pennal [mailto:je...@op...] > > Sent: Tuesday, June 03, 2003 9:30 AM > > To: str...@ya... > > Subject: Re: [struts-xsl] Troubles with XForms > > > > > > Hi Brent, > > > > I received this response from the lead developer of XMLForm: > > > I just don't have the time to support more than one JDK. > > > logging and XML libs are the only reason for the JDK 1.4 requirement. > > > Should be relatively easy to switch to commons logging and the > > xerces/xalan > > > libs. > > > If your folks have time to provide the patch I will apply it. > > > > > > -=Ivelin=- > > > > So, it sounds like you can patch XMLForm and send it to him then you'll > > have a distribution of XMLForm that you can use. > > > > Jeff > > > > Baxter, Brent wrote: > > > > > > > > It turns out my problems with XForms doesn't have anything to do with > the > > > templates. At the same time that I tried the new version of stxx with > the > > > template approach I had also rolled back my version of the JDK since my > > > project will not permit JDK 1.4. When will I learn not to change more > > than > > > one thing at a time! It turns out that the XMLForm implementation of > > XForms > > > is dependant on JDK 1.4 since it uses the new logging classes in J2SE > 1.4. > > > So, now I am off to find an alternative to XMLForm's implementation of > > > XForms. There appears to be a project called Chiba that also has an > open > > > source implementation of the XForms recommended standard. Anyone have > any > > > experience with this project? > > > > > > Brent > > > > > > > > > -----Original Message----- > > > From: Baxter, Brent > > > Sent: Friday, May 30, 2003 4:26 PM > > > To: 'str...@ya...' > > > Subject: RE: [struts-xsl] Custom template languages made easy with XSLT > > > > > > > > > > > > Have you tried this using XForm syntax in your template XML file? I am > > > having trouble getting the pipeline to work correctly. > > > > > > Brent > > > > > > > > > -----Original Message----- > > > From: mrdon42 [mailto:mr...@tw...] > > > Sent: Thursday, May 29, 2003 10:34 PM > > > To: str...@ya... > > > Subject: [struts-xsl] Custom template languages made easy with XSLT > > > > > > > > > I've added a new example to stxx that demonstrates how to use stxx to > > > create a custom template language. The problem is it can be hard for > > > web developers to learn and be comfortable with XSLT. Also, XSLT's > > > have a tendency to clutter with XSL elements as pages get more > > > complicated. One solution is a custom template language. > > > > > > Take the stxx example contactListExample. Instead of creating a > > > largish XSLT file with HTML and xsl logic, create a custom template > > > language that looks like this: > > > > > > <html> > > > <body> > > > <table width="75%" border="1" align="center"> > > > <tr> > > > <td colspan="2" bgcolor="lightblue" align="center"> > > > <br/> > > > <h4><a href="./index.do"><msg > > > key="example.toIndex"/></a></h4> > > > </td> > > > </tr> > > > <tr bgcolor="lightgrey"> > > > <td><b>Name</b></td> > > > <td><b>Email</b></td> > > > </tr> > > > <for-each-address> > > > <tr> > > > <td><name /></td> > > > <td><email /></td> > > > </tr> > > > </for-each-address> > > > </table> > > > </body> > > > </html> > > > > > > Not only is it easy to read, the language is domain-specific to your > > > application making it intuitive and easy to learn. Your XSLT > > > developer creates the XSLT that will take the custom elements and turn > > > them into data pulled from stxx. > > > > > > On a side note, to make this as easy as possible, I added the ability > > > to pass parameters to your stylesheets from the transform definition. > > > Any parameter not handled by the XSLT transformer (debug, render, > > > path, or messages) will be passed to the stylesheet. > > > > > > Don > > > > > > P.S. For more information, see these resources: > > > http://www.webweavertech.com/ovidiu/weblog/archives/000257.html > > > http://www.xml.com/pub/a/2000/07/26/xslt/xsltstyle.html > > > http://www.xml.com/pub/a/2002/03/27/templatexslt.html > > > > > > > > > > > > Visit the group site at: http://groups.yahoo.com/group/struts-xsl > > > > > > > > > To unsubscribe from this group, send an email to: > > > str...@ya... > > > > > > > > > > > > > > > Your use of Yahoo! Groups is subject to > http://docs.yahoo.com/info/terms/ > > > > > > > > > > > > Visit the group site at: http://groups.yahoo.com/group/struts-xsl > > > > > > > > > To unsubscribe from this group, send an email to: > > > str...@ya... > > > > > > > > > > > > > > > Your use of Yahoo! Groups is subject to > http://docs.yahoo.com/info/terms/ > > > > > > > > > > > > > > ------------------------ Yahoo! Groups Sponsor ---------------------~--> > > FREE Cell Phones with up to $400 Cash Back! > > http://us.click.yahoo.com/_bBUKB/vYxFAA/ySSFAA/5cFolB/TM > > ---------------------------------------------------------------------~-> > > > > Visit the group site at: http://groups.yahoo.com/group/struts-xsl > > > > > > To unsubscribe from this group, send an email to: > > str...@ya... > > > > > > > > > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ |