@opf_lines.to_s.should =~ /identifier[^>]+>urn:isbn:[0-9]/
end
+ it "should use the <copyright> as dc:rights for the 'Real Book' test document #{@xml_file}" do
+ @opf_lines.to_s.should =~ /rights[^>]+>Copyright © dddd O/
+ end
+
after(:all) do
FileUtils.rm_r(@tmpdir, :force => true)
FileUtils.rm_r(@tmpdir2, :force => true)
<xsl:value-of select="normalize-space($doc.title)"/>
</xsl:element>
- <xsl:apply-templates select="/*/*[contains(name(.), 'info')]/author|
- /*/*[contains(name(.), 'info')]/corpauthor|
- /*/*[contains(name(.), 'info')]/authorgroup/author"
+ <xsl:apply-templates select="/*/*[contains(name(.), 'info')]/*"
mode="opf.metadata"/>
- <xsl:apply-templates select="/*/*[contains(name(.), 'info')]/publisher/publishername" mode="opf.metadata"/>
<xsl:element name="dc:language">
<xsl:call-template name="l10n.language"/>
</xsl:element>
<xsl:value-of select="$copyright.date"/>
</xsl:element>
<xsl:element name="dc:rights">
- <xsl:text>Copyright </xsl:text>
+ <xsl:text>Copyright © </xsl:text>
<xsl:value-of select="year[1]"/>
- <xsl:text>, </xsl:text>
+ <xsl:text> </xsl:text>
<xsl:value-of select="holder[1]"/>
</xsl:element>
</xsl:template>