Jody Garnett ha scritto:
> 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.

I'll need to see some examples. Anyways, the current code is already
parsing the mixed content

> 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?

No no, whatever expression you want. The only issue is that spaces are
being eaten. Imho to make it a good mini template languages we'd have
to preserve spaces instead.

As an alternative, I can roll in a function that behaves like a real
template language, freemarker. I have an experiment in a geoserver 
community module that looks more or less like this:

                       <ogc:Function name="freemarker">
                         <ogc:Literal><![CDATA[<html><body>
This is bridge <b>${FID.value}</b> whose name is <i>${NAME.value}</i>
</body></html>]]></ogc:Literal>
                       </ogc:Function>

(FID and NAME are attribute names of the current feature)
Yet, that would require quite a bit more work since that function
requires the support geoserver is providing to wrap gt2 features
into a freemarker model.

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

Reply via email to