ISO-TC211 / XML

XML schema, transforms, schematron rules, and examples for ISO TC211 Metadata Standards
46 stars 26 forks source link

gmd:MD_AggregateInformation/gmd:aggregateDataSetIdentifier #42

Closed tedhabermann closed 9 years ago

tedhabermann commented 9 years ago

The test shown below introduces a date of 2000-05-05 into the citation for the identifier. Why? This is because the current identifier is deprecated and moved into a CI_Citation that, in the past, required a date. This requirement has been dropped, so this artificial date can be dropped as well.

<xsl:when test="exists(gmd:MD_AggregateInformation/gmd:aggregateDataSetIdentifier)">
            <mri:name>
              <cit:CI_Citation>
                <xsl:call-template name="writeCharacterStringElement">
                  <xsl:with-param name="elementName" select="'cit:title'"/>
                  <xsl:with-param name="nodeWithStringToWrite" select="gmd:MD_AggregateInformation/gmd:aggregateDataSetIdentifier/gmd:MD_Identifier/gmd:authority/gmd:CI_Citation/gmd:title"/>
                </xsl:call-template>
                <cit:date>
                  <cit:CI_Date>
                    <cit:date>
                      <gco:DateTime>2000-05-05T00:00:00</gco:DateTime>
                    </cit:date>
                    <cit:dateType>
                      <cit:CI_DateTypeCode codeList="codeListLocation#CI_DateTypeCode" codeListValue="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:aggregationInfo.1/gmd:MD_AggregateInformation/gmd:aggregateDataSetName/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode">/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:aggregationInfo.1/gmd:MD_AggregateInformation/gmd:aggregateDataSetName/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode</cit:CI_DateTypeCode>
                    </cit:dateType>
                  </cit:CI_Date>
                </cit:date>
                <cit:identifier>
                  <xsl:apply-templates select="gmd:MD_AggregateInformation/gmd:aggregateDataSetIdentifier/gmd:MD_Identifier"/>
                </cit:identifier>
              </cit:CI_Citation>
            </mri:name>
          </xsl:when>
tedhabermann commented 9 years ago

This was fixed. Now the date is

<cit:date gco:nilReason="unknown"/>