[GeoNetwork-users] present / metadata.xsl

Hi all

Please can someone explain to me (in simple terms :)) how geonetwork uses the metadata.xsl in the present directory?

I have a schema plugin (profile?) anyway - it's called iso19139.mim and adds some elements and types.

Its template adds elements of these types to the gmd:contentInfo element.

In the full ISO view I am able to enter and record appropriate information and the xml that results looks good.

However when I view in any other mode some of the fields get filled with the wrong data - I suspect this is because I haven't modified the present stylesheets.

This is because I do not understand their function or how geonetwork uses them.

I know *vaguely* that somehow Geonetwork executes a transform on my xml in order to present it to the end user but I can't for the life of me map which transforms are used by which "views"...

In summary then my schema exentsion mim.xsd includes (amongst other things!)

...
<xs:element name="name" type="gco:CharacterString_PropertyType"/>
<xs:element name="parameterName" type="gco:CharacterString_PropertyType"/>
...

My template contains (also amongst other things :)!)

...
<mim:name></mim:name>
<mim:parameterName></mim:parameterName>
...

I can load my template and create an instance of this metadata.

I can enter different values for mim:name (= "rf") and mim:parameterName = "rainfall")

The different values are stored correctly in the xml :

<mim:name>rf</mim:name>
<mim:parameterName>rainfall</mim:parameterName>

But any other view shows both mim:name and mim:parameterName as = "rf"....

Any ideas at all why this might be would be very very very gratefully received.

Thanks in advance and best wishes to all!

Paul

Paul Cleverley
Software Developer, Hydrodynamics & Metocean

E: p.cleverley@anonymised.com<mailto:p.cleverley@anonymised.com>
T: +44 (0)1491 822483
<http://www.hrwallingford.com/banner.html&gt;
________________________________
[HR Wallingford Logo]

HR Wallingford
Howbery Park, Wallingford, Oxfordshire OX10 8BA, United Kingdom
T: +44 (0)1491 835381 F: +44 (0)1491 832233
www.hrwallingford.com

[HR Wallingford Secondary Logo]

________________________________

________________________________

HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099

________________________________