Hi Andrea; there are new "official" string functions in town - the work Eclesia has been doing on SE1.1 has brought them to light. It looks like this allows for some functions with a variable number of parameters. So when you do boil this down to a single Expression we may have a better function for you to use.
As for the meaning of the <Lable>....</Label> section I think we would all like to the behave like a mini template; it output exactly what is between the tags substituting <PropertyName> tags where needed. Can you confirm for me that other expressions can be used here - or is it just PropertyName? Cheers, Jody Andrea Aime wrote: > Hi, > I'm trying to solve the two > following issues: > http://jira.codehaus.org/browse/GEOS-1661 > http://jira.codehaus.org/browse/GEOS-1620 > > and I have a working patch, but I would love some feedback > on the merits of the issues themselves. > In SLD the <Label> element is allowed mixed syntax, meaning > that one can mix test and elements inside of it. This is > very useful to build attribute dependent labels without > getting stuck in complex OGC function usage. > > Yet, this falls short when someone is in need of including > a whitespace in the concatenation, since the parser behaviour > is to collapse it, thus eating whitespaces and newlines. > > Now, this is the default xml behaviour, and there is a way > to override it explicity, using xs:whitespace=preserve in > the xml schema. > > The Label element in SLD is just declared as mixed content: > http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-mixed-content > > meaning you can mix elements and free text... yet that does not > tell much about how whitespace should be handled. I guess > that it would mean whitespace should be collapsed, but then > again this seems like a gross limitation for label usage > (see the silly workarounds some people have found to actually > put white spaces in their labels). > > Soo... opinions? Shall we consider the SLD xsd schema broken > and keep white spaces as they are for labels? Or shall > we let people keep on doing very silly dances to stuck > space\newline chars in between their labels? > > Cheers > Andrea > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel