]> granicus.if.org Git - docbook-dsssl/commitdiff
Check in patch submitted by user to add opf:file-as attribute
authorBob Stayton <bobs@sagehill.net>
Wed, 8 Apr 2009 18:41:32 +0000 (18:41 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 8 Apr 2009 18:41:32 +0000 (18:41 +0000)
to dc:creator element.

xsl/epub/docbook.xsl

index 4a09691b73324d028ee2fe125438e95c3065832f..86c8bc85099ed0fd84670ab5bfb76cce34255187 100644 (file)
       </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>