]> granicus.if.org Git - docbook-dsssl/commitdiff
Support DBv5 revisions with full author name (not only authorinitials)
authorJirka Kosek <jirka@kosek.cz>
Sun, 21 May 2006 12:25:21 +0000 (12:25 +0000)
committerJirka Kosek <jirka@kosek.cz>
Sun, 21 May 2006 12:25:21 +0000 (12:25 +0000)
xsl/html/block.xsl
xsl/html/titlepage.xsl

index 768d0ca5bb8275cf12159853c38c849c608ff1c3..af598723e2d2f089a680ae1e90951e04f564ea60 100644 (file)
 <xsl:template match="revhistory/revision">
   <xsl:variable name="revnumber" select="revnumber"/>
   <xsl:variable name="revdate"   select="date"/>
-  <xsl:variable name="revauthor" select="authorinitials"/>
+  <xsl:variable name="revauthor" select="authorinitials|author"/>
   <xsl:variable name="revremark" select="revremark|revdescription"/>
   <tr>
     <td align="left">
index 009314440f9a34b4b1fc4323f52448de3844c54d..c52c098257176e9b8628e385102d8d82b843a3ce 100644 (file)
 <xsl:template match="revhistory" mode="titlepage.mode">
   <xsl:variable name="numcols">
     <xsl:choose>
-      <xsl:when test="//authorinitials">3</xsl:when>
+      <xsl:when test=".//authorinitials|.//author">3</xsl:when>
       <xsl:otherwise>2</xsl:otherwise>
     </xsl:choose>
   </xsl:variable>
   <xsl:param name="numcols" select="'3'"/>
   <xsl:variable name="revnumber" select="revnumber"/>
   <xsl:variable name="revdate"   select="date"/>
-  <xsl:variable name="revauthor" select="authorinitials"/>
+  <xsl:variable name="revauthor" select="authorinitials|author"/>
   <xsl:variable name="revremark" select="revremark|revdescription"/>
   <tr>
     <td align="left">
   <xsl:apply-templates mode="titlepage.mode"/>
 </xsl:template>
 
+<xsl:template match="revision/author" mode="titlepage.mode">
+  <xsl:apply-templates mode="titlepage.mode"/>
+</xsl:template>
+
 <xsl:template match="revision/revremark" mode="titlepage.mode">
   <xsl:apply-templates mode="titlepage.mode"/>
 </xsl:template>