<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="mdq.xsd" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mdq:DQ_DataQuality xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://standards.iso.org/iso/19157/-2/mdq/1.0 mdq.xsd"
   xmlns:mdq="http://standards.iso.org/iso/19157/-2/mdq/1.0"
   xmlns:gco="http://standards.iso.org/iso/19115/-3/gco/1.0"
   xmlns:mcc="http://standards.iso.org/iso/19115/-3/mcc/1.0"
   xmlns:cit="http://standards.iso.org/iso/19115/-3/cit/1.0">
   <!-- 
   This is a sample valid metadata record for the mdq namespace schematron rules.
   
   Rule:
   If measureIdentification is not provided,then nameOfMeasure shall be provided.
   -->
   <mdq:scope gco:nilReason="missing"/>
   <mdq:report>
      <!-- report with measureIdentification -->
      <mdq:DQ_ConceptualConsistency>
         <mdq:measure>
            <mdq:DQ_MeasureReference>
               <mdq:measureIdentification>
                  <mcc:MD_Identifier>
                     <mcc:code>
                        <gco:CharacterString>measureIdentification/code</gco:CharacterString>
                     </mcc:code>
                  </mcc:MD_Identifier>
               </mdq:measureIdentification>
            </mdq:DQ_MeasureReference>
         </mdq:measure>
         <mdq:result gco:nilReason="inapplicable"/>
      </mdq:DQ_ConceptualConsistency>
   </mdq:report>
   <mdq:report>
      <!-- report with nameOfMeasure -->
      <mdq:DQ_ConceptualConsistency>
         <mdq:measure>
            <mdq:DQ_MeasureReference>
               <!-- If measureIdentification is not provided,then nameOfMeasure shall be provided -->
               <mdq:nameOfMeasure>
                  <gco:CharacterString>nameOfMeasure.CharacterString</gco:CharacterString>
               </mdq:nameOfMeasure>
            </mdq:DQ_MeasureReference>
         </mdq:measure>
         <mdq:result gco:nilReason="inapplicable"/>
      </mdq:DQ_ConceptualConsistency>
   </mdq:report>
   <mdq:report>
      <!-- report with measureIdentification and nameOfMeasure -->
      <mdq:DQ_ConceptualConsistency>
         <mdq:measure>
            <mdq:DQ_MeasureReference>
               <!-- measureIdentification and nameOfmeasure can both be provided -->
               <mdq:measureIdentification>
                  <mcc:MD_Identifier>
                     <mcc:code>
                        <gco:CharacterString>measureIdentification/code</gco:CharacterString>
                     </mcc:code>
                  </mcc:MD_Identifier>
               </mdq:measureIdentification>
               <mdq:nameOfMeasure>
                  <gco:CharacterString>nameOfMeasure.CharacterString</gco:CharacterString>
               </mdq:nameOfMeasure>
            </mdq:DQ_MeasureReference>
         </mdq:measure>
         <mdq:result gco:nilReason="inapplicable"/>
      </mdq:DQ_ConceptualConsistency>
   </mdq:report>
</mdq:DQ_DataQuality>
