[mapserver-users] Attributes with spaces in "gml_include_items"?
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Tue Nov 1 05:35:51 PDT 2011
Hi,
In the OGC schema for WFS I can see that feature attributes are defined as
<xs:element name
Element is described at http://www.w3schools.com/schema/el_element.asp as
<element
id=ID
name=NCName
Continue with NCName to
http://stackoverflow.com/questions/1631396/what-is-an-xsncname-type-and-when-should-it-be-used
"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.
-Jukka Rahkonen-
> -----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"?
>
> Hi,
>
> 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.
>
> Thanks,
>
> Darren
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Attributes-with-spaces-
> in-gml-include-items-tp6951338p6951338.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list