]> granicus.if.org Git - docbook-dsssl/commitdiff
Properly process collabname, corpauthor, corpcredit, orgname, and
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 22 Aug 2006 04:36:06 +0000 (04:36 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 22 Aug 2006 04:36:06 +0000 (04:36 +0000)
publishername before normalizing.

xsl/manpages/info.xsl

index e3c95577b539416769b54550d4e04a5e4b7df13c..d2f3fd454108189314156c0f959e486be78efcae 100644 (file)
     <xsl:choose>
       <xsl:when test="collabname">
         <!-- * If this node is a Collab, then it should have a -->
-        <!-- * Collabname child, so get the string value of that -->
-        <xsl:value-of select="normalize-space(collabname)"/>
+        <!-- * Collabname child, so get that. -->
+        <xsl:variable name="contents">
+          <xsl:apply-templates select="collabname"/>
+        </xsl:variable>
+        <xsl:value-of select="normalize-space($contents)"/>
       </xsl:when>
       <xsl:otherwise>
         <!-- * Otherwise, this node is not a Collab, but instead -->
   </xsl:template>
 
   <xsl:template match="corpauthor|corpcredit|orgname|publishername" mode="metadata.author">
-    <xsl:value-of select="normalize-space(.)"/>
+    <xsl:variable name="contents">
+      <xsl:apply-templates/>
+    </xsl:variable>
+    <xsl:value-of select="normalize-space($contents)"/>
   </xsl:template>
 
   <!-- * ============================================================== -->