← Prev in month ← Prev in thread
Next in thread → Next in month →

ePub output: suggestion to add 'opf:file-as' for 'dc:creator'

From
Michael Wiedmann <>
Date
2009-04-01T13:32:05+00:00
ID
Thread
ePub output: suggestion to add 'opf:file-as' for 'dc:creator'
The following patch (against 1.74.3) allows to add the 'opf:file-as'  
attribute to the 'dc:creator' element in the opf file. I'd like to see  
this merged into epub/docbook.xsl.

Thanks
Michael

--- docbook.xsl.org	2009-03-27 08:22:35.000000000 +0100
+++ docbook.xsl	2009-04-01 15:12:58.000000000 +0200
@@ -617,6 +617,11 @@
        </xsl:call-template>
      </xsl:variable>
      <xsl:element name="dc:creator">
+      <xsl:attribute name="opf:file-as">
+        <xsl:call-template name="person.name.last-first">
+          <xsl:with-param name="node" select="."/>
+        </xsl:call-template>
+      </xsl:attribute>
        <xsl:value-of select="normalize-space(string($n))"/>
      </xsl:element>
    </xsl:template>
← Prev in month ← Prev in thread
Next in thread → Next in month →