Open tedhabermann opened 9 years ago
Testing with
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="fromISO19139.xsl"?>
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml" xmlns:srv="http://www.isotc211.org/2005/srv" xmlns:xlink="http://www.w3.org/1999/xlink">
<gmd:fileIdentifier>
<gco:CharacterString>44ffcb13-30cc-48bf-b02d-cd1cb467e495</gco:CharacterString>
</gmd:fileIdentifier>
<gmd:identificationInfo>
<srv:SV_ServiceIdentification>
<gmd:citation>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString>Service with no status</gco:CharacterString>
</gmd:title>
</gmd:CI_Citation>
</gmd:citation>
</srv:SV_ServiceIdentification>
</gmd:identificationInfo>
<gmd:identificationInfo>
<srv:SV_ServiceIdentification>
<gmd:citation>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString>Same with status</gco:CharacterString>
</gmd:title>
</gmd:CI_Citation>
</gmd:citation>
<gmd:status>
<gmd:MD_ProgressCode codeListValue="completed" codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_ProgressCode"/>
</gmd:status>
</srv:SV_ServiceIdentification>
</gmd:identificationInfo>
</gmd:MD_Metadata>
return
<?xml version="1.0" encoding="UTF-8"?>
<mdb:MD_Metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cat="http://standards.iso.org/iso/19115/-3/cat/1.0"
xmlns:cit="http://standards.iso.org/iso/19115/-3/cit/1.0"
xmlns:gcx="http://standards.iso.org/iso/19115/-3/gcx/1.0"
xmlns:gex="http://standards.iso.org/iso/19115/-3/gex/1.0"
xmlns:lan="http://standards.iso.org/iso/19115/-3/lan/1.0"
xmlns:srv="http://standards.iso.org/iso/19115/-3/srv/2.0"
xmlns:mas="http://standards.iso.org/iso/19115/-3/mas/1.0"
xmlns:mcc="http://standards.iso.org/iso/19115/-3/mcc/1.0"
xmlns:mco="http://standards.iso.org/iso/19115/-3/mco/1.0"
xmlns:mda="http://standards.iso.org/iso/19115/-3/mda/1.0"
xmlns:mdb="http://standards.iso.org/iso/19115/-3/mdb/1.0"
xmlns:mds="http://standards.iso.org/iso/19115/-3/mds/1.0"
xmlns:mdt="http://standards.iso.org/iso/19115/-3/mdt/1.0"
xmlns:mex="http://standards.iso.org/iso/19115/-3/mex/1.0"
xmlns:mmi="http://standards.iso.org/iso/19115/-3/mmi/1.0"
xmlns:mpc="http://standards.iso.org/iso/19115/-3/mpc/1.0"
xmlns:mrc="http://standards.iso.org/iso/19115/-3/mrc/1.0"
xmlns:mrd="http://standards.iso.org/iso/19115/-3/mrd/1.0"
xmlns:mri="http://standards.iso.org/iso/19115/-3/mri/1.0"
xmlns:mrl="http://standards.iso.org/iso/19115/-3/mrl/1.0"
xmlns:mrs="http://standards.iso.org/iso/19115/-3/mrs/1.0"
xmlns:msr="http://standards.iso.org/iso/19115/-3/msr/1.0"
xmlns:mdq="http://standards.iso.org/iso/19157/-2/mdq/1.0"
xmlns:mac="http://standards.iso.org/iso/19115/-3/mac/1.0"
xmlns:gco="http://standards.iso.org/iso/19115/-3/gco/1.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink">
<mdb:metadataIdentifier>
<mcc:MD_Identifier>
<mcc:code>
<gco:CharacterString>44ffcb13-30cc-48bf-b02d-cd1cb467e495</gco:CharacterString>
</mcc:code>
</mcc:MD_Identifier>
</mdb:metadataIdentifier>
<mdb:identificationInfo>
<srv:SV_ServiceIdentification>
<mri:citation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>Service with no status</gco:CharacterString>
</cit:title>
</cit:CI_Citation>
</mri:citation>
</srv:SV_ServiceIdentification>
</mdb:identificationInfo>
<mdb:identificationInfo>
<srv:SV_ServiceIdentification>
<mri:citation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>Same with status</gco:CharacterString>
</cit:title>
</cit:CI_Citation>
</mri:citation>
<mri:status>
<mcc:MD_ProgressCode codeList="codeListLocation#MD_ProgressCode" codeListValue="completed">completed</mcc:MD_ProgressCode>
</mri:status>
</srv:SV_ServiceIdentification>
</mdb:identificationInfo>
</mdb:MD_Metadata>
It sounds correct ?
that looks correct to me.
srv:SV_ServiceIdentification section w/o gmd:status element generates a mri:statusSV_ServiceIdentification.id/mri:status on output. The content of this element is the @id from the srv:SV_ServiceIdentification