<xsl:variable name='node' select='.' />
<p>
<xsl:choose>
- <xsl:when test='/document/image[license != $node]'>
+ <xsl:when test='/document/image[license/identifier != $node/identifier]'>
<xsl:text>Except as otherwise noted, copying</xsl:text>
</xsl:when>
<xsl:otherwise>Copying</xsl:otherwise>
<div id='footer'>
<xsl:apply-templates select='/document/copyright' />
<xsl:apply-templates select='/document/license' />
- <xsl:if test='/document/image'>
+ <xsl:if test='/document/image[copyright != /document/copyright
+ or license/identifier != /document/license/identifier]'>
<xsl:call-template name='image-attribution' />
</xsl:if>
<xsl:apply-templates select='/document/source' />