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

Alexandre Soares asoares1 at gmail.com
Fri Mar 19 14:59:17 EDT 2010


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
<aboudreault at mapgears.com>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 regex="ON"></expression>
>
> In this case, the xsl transformation would not quote it. I take a note on
> that
> and should fix this in the next few days.
>
> Thanks for reporting!
> Alan
>
> On March 19, 2010 02:21:45 pm Alexandre Soares wrote:
> > Hi,
> >
> > When I transform my xml map file to a map file, my expressions that
> contain
> > a regular expression (the same is true for filters) are rendered with
> >  double quotes (because the stylesheet has the quote="1" param for those
> >  templates).
> >
> > Is there an intended way to achieve this? I know I could modify the
> > stylesheet to not quote those elements and then quote-wrap my value if I
> > need them (in case of string comparison).
> >
> > Thank you!
> >
>
> --
> Alan Boudreault
> Mapgears
> http://www.mapgears.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100319/4630b014/attachment.html


More information about the mapserver-users mailing list