Hello All,
Thank you for you help so far.
I now am having an issue with using gmd:MD_Metadata,
I can display it fine requesting just itself, I can also see it building up the ‘feature’ when linked to another but something seems to go wrong and it just displays a blank element on output.
Below is ‘summary’ output / snippets from files, have also attached the relevant XML/XSD files and geoserver log for the entirety of the query.
Output:
<company:Employee gml:id=“company.Employee.1”>
company:fullNameempl 2</company:fullName>
company:employeeID15</company:employeeID>
company:salary10300</company:salary>
company:metadata/
</company:Employee>
Trace from geoserver.log (final output):
2013-10-21 14:42:55,777 TRACE [org.geotools.data.complex.filter] - ENTRY FeatureImpl:Employee=[AttributeImpl:employeeID=23, AttributeImpl:fullName=bm 3, AttributeImpl:salary=50000] company:metadata [FeatureImpl:MD_Metadata<MD_Metadata_Type id=gmd.MD_Metadata.3>=[ComplexAttributeImpl:dateStamp<Date_PropertyType>=[AttributeImpl:Date<Date_Type>=2012-11-11], ComplexAttributeImpl:contact<CI_ResponsibleParty_PropertyType>=[ComplexAttributeImpl:CI_ResponsibleParty<CI_ResponsibleParty_Type>=[ComplexAttributeImpl:role<CI_RoleCode_PropertyType>=[ComplexAttributeImpl:CI_RoleCode<CodeListValue_Type>=[AttributeImpl:simpleContent=Other]]]], ComplexAttributeImpl:identificationInfo<MD_Identification_PropertyType>=[ComplexAttributeImpl:MD_DataIdentification<MD_DataIdentification_Type>=[ComplexAttributeImpl:citation<CI_Citation_PropertyType>=[ComplexAttributeImpl:CI_Citation<CI_Citation_Type>=[ComplexAttributeImpl:date<CI_Date_PropertyType>=[ComplexAttributeImpl:CI_Date<CI_Date_Type>=[ComplexAttributeImpl:date<Date_PropertyType>=[AttributeImpl:Date<Date_Type>=2012-11-11]]], ComplexAttributeImpl:title<CharacterString_PropertyType>=[AttributeImpl:CharacterString=My Title 3 title]]], ComplexAttributeImpl:abstract<CharacterString_PropertyType>=[AttributeImpl:CharacterString=Abstract Number 3], ComplexAttributeImpl:language<CharacterString_PropertyType>=[AttributeImpl:CharacterString=English]]], ComplexAttributeImpl:language<CharacterString_PropertyType>=[AttributeImpl:CharacterString=English], ComplexAttributeImpl:fileIdentifier<CharacterString_PropertyType>=[AttributeImpl:CharacterString=/dev/null]]] null null
2013-10-21 14:42:55,777 DEBUG [org.geotools.xml] - _Feature is abstract
2013-10-21 14:42:55,778 TRACE [org.geotools.data.complex] - no more features, produced 3
2013-10-21 14:42:55,778 DEBUG [org.geotools.jdbc] - CLOSE CONNECTION
Snippet for feature link in Employee.xml:
company:metadata pe_id gmd:MD_Metadata FEATURE_LINK[2]Snippet for feature link in MD_Metadata.xml:
FEATURE_LINK[2] fm_idXSD Mapping file entry:
geoserver-md-fail.txt (36.6 KB)
people.xsd (3.27 KB)
MD_Metadata.xml (4.7 KB)
Employee.xml (3.13 KB)