From: <xm...@us...> - 2007-06-30 11:36:08
|
Revision: 6918 http://svn.sourceforge.net/docbook/?rev=6918&view=rev Author: xmldoc Date: 2007-06-30 04:36:05 -0700 (Sat, 30 Jun 2007) Log Message: ----------- Added support to the HTML stylesheets for proper processing of orgname as a child of author. Modified Paths: -------------- trunk/xsl/common/common.xsl trunk/xsl/html/titlepage.xsl Modified: trunk/xsl/common/common.xsl =================================================================== --- trunk/xsl/common/common.xsl 2007-06-30 11:33:51 UTC (rev 6917) +++ trunk/xsl/common/common.xsl 2007-06-30 11:36:05 UTC (rev 6918) @@ -505,6 +505,9 @@ </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> Modified: trunk/xsl/html/titlepage.xsl =================================================================== --- trunk/xsl/html/titlepage.xsl 2007-06-30 11:33:51 UTC (rev 6917) +++ trunk/xsl/html/titlepage.xsl 2007-06-30 11:36:05 UTC (rev 6918) @@ -207,7 +207,14 @@ </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"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |