Hi!
Currently, I try to add an iso19139 dataset via XML Insert Form. It doensn't work for me, and I don't know why. Sample file is attached. Further, I replaced all namespaces http://www.isotc211.org/schemas/2005/ to http://www.isotc211.org/2005/ (not sure which one is correct).
When inserting, error message is "cannot find root element".
Error occures in org.fao.geonet.kernel.DataManager.extractUUID:
String uuid = Xml.transform(md, styleSheet).getText().trim();
In jeeves.utils.xml it's transform(Element xml, String styleSheetPath):
return (Element)resXml.getDocument().getRootElement().detach();
I _think_ resXml.getDocument() is null (however, resXml.getResult() looks ok), but I did play with the source quite a while, may be there are some other errors now. Could someone try to insert this dataset (attend to namespaces!).
many thanks for your help. I will make some tests using your metadata as
soon as I finish the harvesting. I will let you know.
Cheers,
Andrea
Hi!
Currently, I try to add an iso19139 dataset via XML Insert Form. It
doensn't work for me, and I don't know why. Sample file is attached.
Further, I replaced all namespaces http://www.isotc211.org/schemas/2005/
to http://www.isotc211.org/2005/ (not sure which one is correct).
When inserting, error message is "cannot find root element".
Error occures in org.fao.geonet.kernel.DataManager.extractUUID:
String uuid = Xml.transform(md, styleSheet).getText().trim();
In jeeves.utils.xml it's transform(Element xml, String styleSheetPath):
return (Element)resXml.getDocument().getRootElement().detach();
I _think_ resXml.getDocument() is null (however, resXml.getResult()
looks ok), but I did play with the source quite a while, may be there
are some other errors now. Could someone try to insert this dataset
(attend to namespaces!).
I find code for Chinese language used in geonetwork now is "cn", according to rfc 3066(Tags for the Identification of Languages: http://www.ietf.org/rfc/rfc3066.txt ), I think it should be zh-CN for Simplified Chinese and zh-TW for Traditional Chinese.
And here are two reference for that:
1. Internationalization Best Practices: Specifying Language in XHTML & HTML Content: http://www.w3.org/TR/i18n-html-tech-lang/;
Hi Enri,
You may change this, it does not really matter for the application as far as I know if you use 2 or more characters for the folder names. It may need some additional changes in other parts of the application.
Jeroen
On Aug 2, 2006, at 5:12 AM, Enri Zhou wrote:
Hi,
I find code for Chinese language used in geonetwork now is "cn", according to rfc 3066(Tags for the Identification of Languages: http://www.ietf.org/rfc/rfc3066.txt ), I think it should be zh-CN for Simplified Chinese and zh-TW for Traditional Chinese.
And here are two reference for that:
1. Internationalization Best Practices: Specifying Language in XHTML & HTML Content: Authoring HTML: Language declarations;