Hi all,
I think I can prepare a patch for this shortly using the last variant
proposed by Andrea (I did some testing patching the SLDParser and
everything seems to work well).
I would use the "free text" (not included in a value tag) as the default
value if no locale is specified.

So, something like:
<Title>default title
 <value lang="it">Titolo</value>
 <value lang="en">Title</value>
 ...
</Title>

Also: do you think any other part (xsd, validators, parsers) would need to
be touched to allow mixed content in Title and Abstract classes?

Mauro


2013/5/23 Jody Garnett <jody.garn...@gmail.com>

>  Yeah I like that, more similar to the W3C <span lang="fr"> approach for
> html documents.
>
> Only wrinkle would be to define the document default lang, and use <value>
> for the alternatives.
>
> --
> Jody Garnett
>
> On Wednesday, 22 May 2013 at 8:35 AM, Andrea Aime wrote:
>
> Thinking about it, I would like to propose a further variant that is
> possibly cleaner on the user's eyes, and better to parse.
>
> Just like we extended the content of some SLD elements already (think
> geometry, not limited anymore to a property name)
> we could allow mixed content in Title and Abstract and allow either:
>
> <Title>My title</Title>
>
> or:
>
> <Title>
>     <value lang="en">xxx</value>
>     <value lang="fr">yyy</value>
>     ...
> </Title>
>
> which would parse directly into a international string.
>
> Opinions?
>
> Cheers
> Andrea
>
>
> --
> ==
> GeoServer training in Milan, 6th & 7th June 2013!  Visit
> http://geoserver.geo-solutions.it for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring
> service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>
>


-- 
==
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.
==

Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to