<div>Hi Alan,</div>
<div> </div>
<div>I found one small bug: the default value of expressionType complex type is &#39;CONSTANT&#39;. However, the stylesheet will only quote if the value of the attribute is equal to &#39;CONSTANT&#39;, which is not if you don&#39;t supply a value for this attribute. All other cases seem to work fine. That is, &lt;expression&gt;583&lt;/expression&gt; will not be quoted with the current stylesheet.</div>

<div> </div>
<div>Thanks!<br><br></div>
<div class="gmail_quote">On Mon, Mar 22, 2010 at 12:04 PM, Alan Boudreault <span dir="ltr">&lt;<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Alexandre, could you test the new xsl file  and see if your two issues have<br>been fixed. You can get it via:<br>
<a href="http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile/mapfile.xsl?format=raw" target="_blank">http://trac.osgeo.org/mapserver/browser/trunk/mapserver/xmlmapfile/mapfile.xsl?format=raw</a><br><br>I did a quick fix to integrate it in MS 5.6.3, which is supposed to be<br>
released today.<br><br>expression/filter examples:<br>&lt;expression type=&quot;CONSTANT&quot;&gt;583&lt;/expression&gt; or &lt;expression&gt;583&lt;/expression&gt;<br>will be quoted.<br>&lt;expression type=&quot;REGEX&quot;&gt;/.../&lt;/expression&gt; and<br>
&lt;expression type=&quot;MSEXPR&quot;&gt;(...)&lt;/expression&gt; will not be quoted.<br><br>symbol examples:<br>&lt;symbol type=&quot;NAME&quot;&gt;star.gif&lt;/symbol&gt; will be quoted<br>&lt;symbol type=&quot;ID&quot;&gt;32&lt;/symbol&gt; will not be quoted<br>
<br>Thanks,<br><font color="#888888">Alan<br></font>
<div>
<div></div>
<div class="h5"><br>On March 19, 2010 02:59:17 pm Alexandre Soares wrote:<br>&gt; The symbol attribute (which does not get quoted by default) causes a<br>&gt;  problem if the value references a stmbol&#39;s name. I think it could also<br>
&gt;  benefit from your fix.<br>&gt;<br>&gt; Thank you!<br>&gt; On Fri, Mar 19, 2010 at 2:49 PM, Alan Boudreault<br>&gt;<br>&gt; &lt;<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>&gt;wrote:<br>&gt; &gt; Alexandre, you are right, if the expression is an regular expression, it<br>
&gt; &gt; shouldn&#39;t be quoted. I think the only solution would be to add an<br>&gt; &gt; attribute in<br>&gt; &gt; the xml schema, that will specify if the expression is an regular<br>&gt; &gt; expression<br>&gt; &gt; of not. Something like:<br>
&gt; &gt;<br>&gt; &gt; &lt;expression regex=&quot;ON&quot;&gt;&lt;/expression&gt;<br>&gt; &gt;<br>&gt; &gt; In this case, the xsl transformation would not quote it. I take a note on<br>&gt; &gt; that<br>&gt; &gt; and should fix this in the next few days.<br>
&gt; &gt;<br>&gt; &gt; Thanks for reporting!<br>&gt; &gt; Alan<br>&gt; &gt;<br>&gt; &gt; On March 19, 2010 02:21:45 pm Alexandre Soares wrote:<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; When I transform my xml map file to a map file, my expressions that<br>
&gt; &gt;<br>&gt; &gt; contain<br>&gt; &gt;<br>&gt; &gt; &gt; a regular expression (the same is true for filters) are rendered with<br>&gt; &gt; &gt;  double quotes (because the stylesheet has the quote=&quot;1&quot; param for<br>
&gt; &gt; &gt; those templates).<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Is there an intended way to achieve this? I know I could modify the<br>&gt; &gt; &gt; stylesheet to not quote those elements and then quote-wrap my value if<br>
&gt; &gt; &gt; I need them (in case of string comparison).<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thank you!<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Alan Boudreault<br>&gt; &gt; Mapgears<br>&gt; &gt; <a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com</a><br>
&gt;<br><br></div></div>--<br>
<div>
<div></div>
<div class="h5">Alan Boudreault<br>Mapgears<br><a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com</a><br></div></div></blockquote></div><br>