<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi<div class=""><br class=""></div><div class="">I am currently manually converting my mapfile into xml syntax for ease of maintenance.</div><div class="">I am having an issue in converting the following expressions</div><div class=""><br class=""></div><div class=""><div class="">            <expression>{forest,wood}</expression></div><div class="">        </div><div class="">            <expression>'residential'</expression></div><div class=""><br class=""></div><div class="">which results in</div><div class="">          </div></div><div class="">    EXPRESSION "{forest,wood}"</div><div class=""><div class="">  </div><div class="">    EXPRESSION "'residential'"</div><div class=""> </div></div><div class="">and the original working map file is</div><div class=""><br class=""></div><div class=""><div class="">  EXPRESSION {forest,wood}</div><div class=""> </div><div class="">  EXPRESSION â€˜residential'</div></div><div class=""><br class=""></div><div class="">The xml validates against the xsd/xsl, and the conversion line is </div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">xsltproc mapfile.xsl layerset_9.xml > ../min-base/layerset_9.map</span></div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">The documentation (7.0.4) states</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class="">List expressions (see </span><cite style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class="">rfc95</cite><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class="">) are a performant way to compare a string attribute to a list of multiple possible values. </span></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class="">Their behavior duplicates the existing regex or mapserver expressions, however they are significantly more performant. </span></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class="">To activate them enclose a comma separated list of values between {}, </span><strong style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class="">without</strong><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class=""> adding quotes or extra spaces.</span></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class=""><br class=""></span></span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><font color="#3e4349" face="Arial, sans-serif" class=""><span style="font-size: 12.800000190734863px;" class="">Any pointers to where I am going wrong would be helpful.</span></font></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class=""><br class=""></span></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class=""><br class=""></span></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class="">Thanks</span></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class=""><br class=""></span></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class="">Aimee</span></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(62, 67, 73); font-family: Arial, sans-serif; font-size: 12.800000190734863px;" class=""><br class=""></span></span></div></body></html>