|
Re: does urlregexpmapping work correctly?: msg#00042java.enhydra.xmlc
Hi Kyle, At 09:21 AM 7/30/2003 -0600, you wrote: I have been doing more tests on the -urlregexpmapping arg to the xmlc command. It seems that the xmlc command will support two -urlregexpmapping args but not more. To test this, I created an index.htm that has a three images in it with the urls ../images/im1.gif, ../images/im2.gif, and ../images/im3.gif. I use three -urlregexpmapping args to replace each ../images/im<num>.gif to be images/im<num>.jpg. Only two of the mappings take place. The third is ignored. Can you attach actual test cases you used, including your options.xmlc and the html files (attach in a zip file)? I have two questions: I would think it is a bug. I trust you are using the latest XMLC? That is, either XMLC-2.2beta1 or the latest XMLC CVS? If not, see: http://forge.objectweb.org/projects/xmlc/ Also, for some reason the -urlregexpmapping does not support the lookahead feature. This feature is supported by GNU but only with the expression syntax set to Perl 5. The default xmlc is using is another syntax that does not support lookahead. Any idea where this is set? I haven't looked at how XMLC implements -urlregexpmapping as of yet, so any pointers would be helpful. I don't see why XMLC's default shouldn't allow full functionality? Anyone else have comments on this? One last note; the most recent version of Java's regex supports both lookahead and lookbehind. This could really become handy in urlmappings. I don't foresee using the JDK's regexp stuff since that wasn't added until j2sdk1.4, right? I think we still want to say we are compatible with JDK1.3.1 (or maybe even 1.3.0). I also don't see changing from gnu-regexp for the XMLC-2.2 release since we are purely in bugfix mode moving toward release at this time. We could consider moving to one of the Jakarta regexp packages for a later XMLC release which, very likely, supports lookbehind. Maybe you can investigate this? Jake - Kyle Aaron
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | does urlregexpmapping work correctly?, Kyle Aaron |
|---|---|
| Next by Date: | Re: does urlregexpmapping work correctly?, Mark Diekhans |
| Previous by Thread: | does urlregexpmapping work correctly?, Kyle Aaron |
| Next by Thread: | Re: does urlregexpmapping work correctly?, Mark Diekhans |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |