Thank you, Charles.

I was being a bit dense. I assumed that the example he gave was simply 
formatted like that due to wrapping!

Yes, that does do the trick :)

From: Charles Galpin [mailto:cgal...@lhsw.com]
Sent: 16 March 2012 12:32
To: Chris Haste
Cc: David Winslow; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] css Question

Chris, I'm not sure if you got an answer or not, but this works today. In fact 
the snippet he shows below should do exactly what you asked for  - notice the 
line break is quoted so it is retained.

hth
charles

On Mar 15, 2012, at 1:16 PM, Chris Haste wrote:


Thanks for the quick response David.

So am I correct to read that it can't be done at the moment? That all entries 
in the label definition will be concatenated into a single string?

Thanks

ChrisI

From: David Winslow [mailto:dwins...@opengeo.org]
Sent: 15 March 2012 17:09
To: Chris Haste
Cc: 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] css Question

The CSS module never collapses whitespace inside of "quotes," even across 
linebreaks.  Additionally, in the special case of labels any number of property 
values will be implicitly wrapped up in calls to the "concat" function, similar 
to the handling of  multiple values in SLD.

* {
    label: [STATE_NAME] "
(" [STATE_ABBR] ")";
}

I'm open to feedback on prettier notation for linebreaks but this seems 
functional at least.

--
David Winslow
OpenGeo - http://opengeo.org/
On Thu, Mar 15, 2012 at 12:51 PM, Chris Haste 
<cha...@airdata.co.uk<mailto:cha...@airdata.co.uk>> wrote:
Hello All,

I'm trying to use the CSS styling Module and can't figure out how to use the 
SLD <![CDATA[]]> construct from within the CSS to ensure that my label consists 
of two lines.

How would the following SLD be represented in CSS?

<Label>
  
<ogc:PropertyName>STATE_NAME</ogc:PropertyName><![CDATA[]]>(<ogc:PropertyName>STATE_ABBR</ogc:PropertyName>)
</Label>

Thanks in advance,

Chris

*** This communication has been sent from World Fuel Services 
Corporation or its subsidiaries or its affiliates for the intended recipient 
only and may contain proprietary, confidential or privileged information. 
If you are not the intended recipient, any review, disclosure, copying, 
use, or distribution of the information included in this communication 
and any attachments is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to this 
communication and delete the communication, including any 
attachments, from your computer. Electronic communications sent to or 
from World Fuel Services Corporation or its subsidiaries or its affiliates 
may be monitored for quality assurance and compliance purposes.***

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to