[Geonetwork-devel] iso19139 validation

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!).

Thank you!
Martin

(attachments)

md-iso19139.xml (3.65 KB)

Hi Martin,

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!).

Thank you!
Martin

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: http://www.w3.org/TR/i18n-html-tech-lang/;

2. Language tags in HTML and XML: http://www.w3.org/International/articles/language-tags/

Enri

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;

2. Language tags in HTML and XML: Language tags in HTML and XML

Enri

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geonetwork-devel mailing list
Geonetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork