While I love the Recode function, there is one problem with it. There is no (obvious) way to define a value to use if none of the 'data' items matches the 'lookupValue', and the current structure doesn't lend itself to adding one. I can see three potential ways to solve this
1) Change the definition of the 'data' element to be compared using Regular Expression syntax to the lookupValue, or 2) Add a attribute to the Function element called something like 'default'. If no match is found in the data elements, use the value it specifies as the content. 3) Define a special value/position for the data element that would be treated as the default if found. For example, if the last data item in the list was the literal value 'default' then use if no other earlier match. The first item is likely too large a change to current/expected behavior, so at best I can see this as a new 'RecodeRegEx' function or similar. The second item is the one I like best, but I don't know if the applicable standard would allow (of could be changed to allow) attributes for the Function element. The third option is likely the easiest, but I don't particularly like special cases of this nature - too easy to cause unexpected behaviors. So does anyone else have similar thoughts, and/or other ideas on how to deal with this? ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users