📄 data-quality.xsl.svn-base
字号:
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns ="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- ============================================================================= --> <xsl:template match="*" mode="DataQuality"> <scope> <DQ_Scope> <xsl:apply-templates select="dqScope" mode="DQScope"/> </DQ_Scope> </scope> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="dqReport"> <report> <xsl:apply-templates select="." mode="DQElementTypes"/> </report> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="dataLineage"> <lineage> <LI_Lineage> <xsl:apply-templates select="." mode="Lineage"/> </LI_Lineage> </lineage> </xsl:for-each> </xsl:template> <!-- ============================================================================= --> <!-- === Data quality scope === --> <!-- ============================================================================= --> <xsl:template match="*" mode="DQScope"> <level> <MD_ScopeCode codeList="./resources/codeList.xml#MD_ScopeCode" codeListValue="{scpLvl/ScopeCd/@value}" /> </level> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="scpExt"> <extent> <EX_Extent> <xsl:apply-templates select="." mode="Extent"/> </EX_Extent> </extent> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="scpLvlDesc"> <levelDescription> <MD_ScopeDescription> <xsl:apply-templates select="." mode="ScpDesc"/> </MD_ScopeDescription> </levelDescription> </xsl:for-each> </xsl:template> <!-- ============================================================================= --> <xsl:template match="*" mode="ScpDesc"> <xsl:for-each select="attribIntSet"> <attributeInstances><xsl:value-of select="."/></attributeInstances> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="attribSet"> <attributes><xsl:value-of select="."/></attributes> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="datasetSet"> <dataset><xsl:value-of select="."/></dataset> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="featIntSet"> <featureInstances><xsl:value-of select="."/></featureInstances> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="featSet"> <features><xsl:value-of select="."/></features> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="other"> <other><xsl:value-of select="."/></other> </xsl:for-each> </xsl:template> <!-- ============================================================================= --> <!-- === DQElementTypes === --> <!-- ============================================================================= --> <xsl:template match="*" mode="DQElementTypes"> <xsl:for-each select="DQAbsExtPosAcc"> <DQ_AbsoluteExternalPositionalAccuracy> <xsl:apply-templates select="." mode="DQElement"/> </DQ_AbsoluteExternalPositionalAccuracy> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQAccTimeMeas"> <DQ_AccuracyOfATimeMeasurement> <xsl:apply-templates select="." mode="DQElement"/> </DQ_AccuracyOfATimeMeasurement> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQCompComm"> <DQ_CompletenessCommission> <xsl:apply-templates select="." mode="DQElement"/> </DQ_CompletenessCommission> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQCompOm"> <DQ_CompletenessOmission> <xsl:apply-templates select="." mode="DQElement"/> </DQ_CompletenessOmission> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQConcConsis"> <DQ_ConceptualConsistency> <xsl:apply-templates select="." mode="DQElement"/> </DQ_ConceptualConsistency> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQDomConsis"> <DQ_DomainConsistency> <xsl:apply-templates select="." mode="DQElement"/> </DQ_DomainConsistency> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQFormConsis"> <DQ_FormatConsistency> <xsl:apply-templates select="." mode="DQElement"/> </DQ_FormatConsistency> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQGridDataPosAcc"> <DQ_GriddedDataPositionalAccuracy> <xsl:apply-templates select="." mode="DQElement"/> </DQ_GriddedDataPositionalAccuracy> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQNonQuanAttAcc"> <DQ_NonQuantitativeAttributeAccuracy> <xsl:apply-templates select="." mode="DQElement"/> </DQ_NonQuantitativeAttributeAccuracy> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQQuanAttAcc"> <DQ_QuantitativeAttributeAccuracy> <xsl:apply-templates select="." mode="DQElement"/> </DQ_QuantitativeAttributeAccuracy> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQRelIntPosAcc"> <DQ_RelativeInternalPositionalAccuracy> <xsl:apply-templates select="." mode="DQElement"/> </DQ_RelativeInternalPositionalAccuracy> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQTempConsis"> <DQ_TemporalConsistency> <xsl:apply-templates select="." mode="DQElement"/> </DQ_TemporalConsistency> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQTempValid"> <DQ_TemporalValidity> <xsl:apply-templates select="." mode="DQElement"/> </DQ_TemporalValidity> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQThemClassCor"> <DQ_ThematicClassificationCorrectness> <xsl:apply-templates select="." mode="DQElement"/> </DQ_ThematicClassificationCorrectness> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="DQTopConsis"> <DQ_TopologicalConsistency> <xsl:apply-templates select="." mode="DQElement"/> </DQ_TopologicalConsistency> </xsl:for-each> </xsl:template> <!-- ============================================================================= --> <xsl:template match="*" mode="DQElement"> <xsl:for-each select="measName"> <nameOfMeasure> <gco:CharacterString><xsl:value-of select="."/></gco:CharacterString> </nameOfMeasure> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="measId"> <measureIdentification> <xsl:apply-templates select="." mode="MdIdentTypes"/> </measureIdentification> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="measureDescription"> <measureDescription> <gco:CharacterString><xsl:value-of select="."/></gco:CharacterString> </measureDescription> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="evalMethType"> <evaluationMethodType> <DQ_EvaluationMethodTypeCode codeList="./resources/codeList.xml#DQ_EvaluationMethodTypeCode" codeListValue="{EvalMethTypeCd/@value}" /> </evaluationMethodType> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <xsl:for-each select="evalMethDesc"> <evaluationMethodDescription> <gco:CharacterString><xsl:value-of select="."/></gco:CharacterString> </evaluationMethodDescription> </xsl:for-each> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -