[mapserver-users] Attributes with spaces in "gml_include_items"?
Jukka.Rahkonen at mmmtike.fi
Tue Nov 1 08:35:51 EDT 2011
In the OGC schema for WFS I can see that feature attributes are defined as
Element is described at http://www.w3schools.com/schema/el_element.asp as
Continue with NCName to
"Practical restrictions of an NCName
The practical restrictions of NCName are that it cannot contain several symbol characters like :, @, $, %, &, /, +, ,, ;, whitespace characters or different parenthesis. Furthermore an NCName cannot begin with a number, dot or minus character although they can appear later in an NCName."
Conclusion: Space character is not allowed in the attribute name. You must use other means for styling the titles.
> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta daz4805
> Lähetetty: 1. marraskuuta 2011 13:33
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: [mapserver-users] Attributes with spaces in "gml_include_items"?
> I am very new to Mapserver work so please do bear with me.
> I am trying to amend a mapserver .map file to make available
> some attribute
> data from our database.
> At the moment, I am only able to make available attribute
> columns that are
> only one word like 'Name' for example.
> Is it possible to add in the gml_include_items section 'First
> Name' for
> example where there is a space between First and Name?
> I have done some digging looking for examples etc and people
> are either only
> using one word or are using underscores between words. What I
> want is for it
> to display on screen as First Name not FirstName or
> First_Name or just Name.
> I have tried with single and double quotes etc but it just
> ends up breaking
> my identify tool in my mapping application.
> Any help very much appreciated.
> View this message in context:
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
More information about the mapserver-users