diff options
Diffstat (limited to 'metadata/xslt/check_framework.xsl')
-rw-r--r-- | metadata/xslt/check_framework.xsl | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/metadata/xslt/check_framework.xsl b/metadata/xslt/check_framework.xsl index f4e8d017..c5087297 100644 --- a/metadata/xslt/check_framework.xsl +++ b/metadata/xslt/check_framework.xsl @@ -30,23 +30,17 @@ <xsl:message terminate='no'> <xsl:text>[ERROR] </xsl:text> <!-- - If we're processing an aggregate, we need to indicate which - individual entity we're dealing with. + Use an ID if available, otherwise the entityID. --> - <xsl:if test="ancestor-or-self::md:EntitiesDescriptor"> - <!-- - Use an ID if available, otherwise the entityID. - --> - <xsl:choose> - <xsl:when test="$entity/@ID"> - <xsl:value-of select="$entity/@ID"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$entity/@entityID"/> - </xsl:otherwise> - </xsl:choose> - <xsl:text>: </xsl:text> - </xsl:if> + <xsl:choose> + <xsl:when test="$entity/@ID"> + <xsl:value-of select="$entity/@ID"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="$entity/@entityID"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>: </xsl:text> <xsl:value-of select="$m"/> </xsl:message> </xsl:template> |