]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support to the HTML stylesheets for proper processing of
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 30 Jun 2007 11:36:05 +0000 (11:36 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 30 Jun 2007 11:36:05 +0000 (11:36 +0000)
orgname as a child of author.

xsl/common/common.xsl
xsl/html/titlepage.xsl

index e84b921d27aac2c5b0aa4f0d90454dca0e69aae0..484e7ee2d0b8f1b0eb8564e17cfb2d9aa5374894 100644 (file)
@@ -505,6 +505,9 @@ Defaults to the context node.</para>
     </xsl:when>
 
     <!-- handle corpauthor as a special case...-->
+    <!-- * MikeSmith 2007-06: I'm wondering if the person.name template -->
+    <!-- * actually ever gets called to handle corpauthor.. maybe -->
+    <!-- * we don't actually need to check for corpauthor here. -->
     <xsl:when test="local-name($node)='corpauthor'">
       <xsl:apply-templates select="$node"/>
     </xsl:when>
index 7810f7adf599d7ae1de5b8876e183ee4e0417b64..585a48e9a10c99d0b268744e7248c1136902e83f 100644 (file)
     </xsl:if>
     <h3>
       <xsl:apply-templates select="." mode="class.attribute"/>
-      <xsl:call-template name="person.name"/>
+      <xsl:choose>
+        <xsl:when test="orgname">
+          <xsl:apply-templates/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:call-template name="person.name"/>
+        </xsl:otherwise>
+      </xsl:choose>
     </h3>
     <xsl:if test="not($contrib.inline.enabled = 0)">
       <xsl:apply-templates mode="titlepage.mode" select="contrib"/>