logo       

does urlregexpmapping work correctly?: msg#00041

java.enhydra.xmlc

Subject: does urlregexpmapping work correctly?

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.

I have two questions:
Has anyone experienced this problem before and how did you resolve it?
Should this be listed as a bug since xmlc's documentation says that many
-urlregexpmapping args can be used?


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.

One last note; the most recent version of Java's regex supports both lookahead
and lookbehind. This could really become handy in urlmappings.


- Kyle Aaron




------------------------------------------------------------------------------
This message may contain confidential information, and is intended only for the
use of the individual(s) to whom it is addressed.


==============================================================================


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise