Skip to content

Commit

Permalink
[epub3-dtbook-migrator] dc:language element is mandatory in OPF metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bertfrees committed Oct 26, 2016
1 parent c2bb86c commit 6bbf4e9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@

<dc:format id="format">EPUB3</dc:format>

<xsl:if test="not(/html:html/html:head/html:meta[lower-case(@name)='dc:language'])">
<dc:language>
<xsl:value-of select="(/*/@xml:lang,'und')[1]"/>
</dc:language>
</xsl:if>

<xsl:if test="not(/html:html/html:head/html:meta[lower-case(@name)='dc:title'])">
<dc:title>
<xsl:value-of select="/html:html/html:head/html:title/text()"/>
Expand Down

0 comments on commit 6bbf4e9

Please sign in to comment.