]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support for generating <rx:meta-field creator="foo"/> field
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 28 Jun 2005 07:49:51 +0000 (07:49 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 28 Jun 2005 07:49:51 +0000 (07:49 +0000)
for XEP. Also, added support for picking up and using contents of
<corpauthor> for XEP <rx:meta-field author="foo"/> field.

xsl/fo/xep.xsl

index bc11c633cc45142b8cb08b90b5220e8d6005ff32..56174585c912a8dc8361bf185c21e5a4eef73cfe 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:template name="xep-document-information">
   <rx:meta-info>
-    <xsl:variable name="authors" select="(//author|//editor|//authorgroup)[1]"/>
+    <xsl:variable name="authors" select="(//author|//editor|//corpauthor|//authorgroup)[1]"/>
     <xsl:if test="$authors">
       <xsl:element name="rx:meta-field">
         <xsl:attribute name="name">author</xsl:attribute>
@@ -29,6 +29,9 @@
                 <xsl:with-param name="person.list" select="$authors/*[self::author|self::corpauthor|self::othercredit|self::editor]"/>
               </xsl:call-template>
             </xsl:when>
+            <xsl:when test="$authors[self::corpauthor]">
+              <xsl:value-of select="$authors"/>
+            </xsl:when>
             <xsl:otherwise>
               <xsl:call-template name="person.name">
                 <xsl:with-param name="node" select="$authors"/>
       <xsl:apply-templates select="/*[1]" mode="title.markup"/>
     </xsl:variable>
 
+    <xsl:element name="rx:meta-field">
+      <xsl:attribute name="name">creator</xsl:attribute>
+      <xsl:attribute name="value">
+        <xsl:text>DocBook XSL Stylesheets V</xsl:text>
+        <xsl:value-of select="$VERSION"/>
+      </xsl:attribute>
+    </xsl:element>
+
     <xsl:element name="rx:meta-field">
       <xsl:attribute name="name">title</xsl:attribute>
       <xsl:attribute name="value">