Geonetwork 2.1 generates an error in the xml structure in "data quality"
(ISO19139)
I go to tab of geonet2.1: advanced view -> data quality
I select "Absolute external positional accuracy" and I add "report[+]"
I select "Quantitative result" and I add "result[+]"
This produces 2 tags incorrect: A) in line 6; B) in line 8
abstract xml:
1 <gmd:report>
2 <gmd:DQ_AbsoluteExternalPositionalAccuracy>
3 <gmd:result>
4 <gmd:DQ_QuantitativeResult>
5 <gmd:valueUnit>
6 <gml:UnitDefinition gml:id=""/>
7 </gmd:valueUnit>
8 <gmd:value>666</gmd:value>
9 </gmd:DQ_QuantitativeResult>
10..... </gmd:result>
.............
line 8 incorrect: <gmd:value>666</gmd:value>
line 8 correct:
<gmd:value>
<gco:Record>666</gco:Record>
</gmd:value>
Another error is in line 6: tag <gml:UnitDefinition gml:id=""/>
But I don't know the solution!! :-((
This i log file:
2007-11-02 16:02:38,172 ERROR [jeeves.service] - Exception when executing
service
2007-11-02 16:02:38,172 ERROR [jeeves.service] - (C) Exc :
org.jdom.JDOMException: Exception in startElement: cvc-datatype-valid.1.2.1:
'' is not a valid value for 'NCName'.
2007-11-02 16:02:38,172 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>Exception in startElement: cvc-datatype-valid.1.2.1: '' is not a
valid value for 'NCName'.</message>
<class>SAXException</class>
<stack>
<at class="org.jdom.transform.JDOMSource$DocumentReader"
file="JDOMSource.java" line="483" method="parse" />
<at
class="com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl"
file="???" line="-1" method="process" />
<at
class="com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl"
file="???" line="-1" method="validate" />
<at class="javax.xml.validation.Validator" file="???" line="-1"
method="validate" />
<at class="jeeves.utils.Xml" file="Xml.java" line="231"
method="validate" />
<at class="org.fao.geonet.kernel.DataManager" file="DataManager.java"
line="282" method="validate" />
<at class="org.fao.geonet.kernel.DataManager" file="DataManager.java"
line="1041" method="updateMetadata" />
<at class="org.fao.geonet.services.metadata.Update" file="Update.java"
line="88" method="exec" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="141" method="execServices" />
</stack>
thanks
emanuele masiero
padova - ITALY
--
View this message in context: http://www.nabble.com/error-in-xml-ISO19139-package-"data-quality"-tf4738101s18419.html#a13549660
Sent from the geonetwork-users mailing list archive at Nabble.com.