Re: [mapserver-users] Map file xsl transformation and regular expressions

2010-03-22 Thread Alan Boudreault
Alexandre, could you test the new xsl file and see if your two issues have been fixed. You can get it via: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile/mapfile.xsl?format=raw I did a quick fix to integrate it in MS 5.6.3, which is supposed to be released today.

Re: [mapserver-users] Map file xsl transformation and regular expressions

2010-03-22 Thread Alexandre Soares
Hi Alan, I found one small bug: the default value of expressionType complex type is 'CONSTANT'. However, the stylesheet will only quote if the value of the attribute is equal to 'CONSTANT', which is not if you don't supply a value for this attribute. All other cases seem to work fine. That is,

Re: [mapserver-users] Map file xsl transformation and regular expressions

2010-03-22 Thread Alan Boudreault
It's fixed. The new xslt will be in MapServer 5.6.3. Thanks, Alan On March 22, 2010 02:56:16 pm Alexandre Soares wrote: Hi Alan, I found one small bug: the default value of expressionType complex type is 'CONSTANT'. However, the stylesheet will only quote if the value of the attribute is

Re: [mapserver-users] Map file xsl transformation and regular expressions

2010-03-19 Thread Alan Boudreault
Alexandre, you are right, if the expression is an regular expression, it shouldn't be quoted. I think the only solution would be to add an attribute in the xml schema, that will specify if the expression is an regular expression of not. Something like: expression regex=ON/expression In this

Re: [mapserver-users] Map file xsl transformation and regular expressions

2010-03-19 Thread Alexandre Soares
The symbol attribute (which does not get quoted by default) causes a problem if the value references a stmbol's name. I think it could also benefit from your fix. Thank you! On Fri, Mar 19, 2010 at 2:49 PM, Alan Boudreault aboudrea...@mapgears.comwrote: Alexandre, you are right, if the

Re: [mapserver-users] Map file xsl transformation and regular expressions

2010-03-19 Thread Daniel Morissette
Alan Boudreault wrote: Alexandre, you are right, if the expression is an regular expression, it shouldn't be quoted. I think the only solution would be to add an attribute in the xml schema, that will specify if the expression is an regular expression of not. Something like: expression