|
Geoserver can be configured to deliver only xlink:title when hard-0coded in the configuration, but not when the values are coming from the datastore. e.g.: <AttributeMapping> <targetAttribute>gsml:observationMethod</targetAttribute> <ClientProperty> <name>xlink:title</name> <value>'unknown'</value> </ClientProperty> </AttributeMapping>
Gives: <gsml:observationMethod xlink:title="unknown"/>
Getting it from the database where both xlink:href and xlink:title are present works: <AttributeMapping> <targetAttribute>gwml2:gwAquiferType</targetAttribute> <ClientProperty> <name>xlink:href</name> <value>gwaquifertype_href</value> </ClientProperty> <ClientProperty> <name>xlink:title</name> <value>gwaquifertype_title</value> </ClientProperty> </AttributeMapping>
Generates: <gwml2:gwAquiferType xlink:title="Unclassified" xlink:href="">
Whereas if only xlink:title is requested it doesn't return any value: <AttributeMapping> <targetAttribute>gwml2:gwAquiferType</targetAttribute> <!--<ClientProperty> <name>xlink:href</name> <value>gwaquifertype_href</value> </ClientProperty> --> <ClientProperty> <name>xlink:title</name> <value>gwaquifertype_title</value> </ClientProperty> </AttributeMapping>
Results in a missing <gwml2:gwAquiferType> tag.
|