]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed formatting of addresses in affiliations in author names
authorNorman Walsh <ndw@nwalsh.com>
Sat, 10 Nov 2001 23:30:26 +0000 (23:30 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 10 Nov 2001 23:30:26 +0000 (23:30 +0000)
xsl/html/titlepage.xsl

index 25acdbb2f206085803a48dc765822c4ec973464e..131a7850ff54644c5545bf6e0b4595651e281e7b 100644 (file)
 </xsl:template>
 
 <xsl:template match="address" mode="titlepage.mode">
-  <xsl:apply-templates select="."/>
+  <xsl:param name="suppress-numbers" select="'0'"/>
+
+  <xsl:variable name="rtf">
+    <xsl:apply-templates mode="titlepage.mode"/>
+  </xsl:variable>
+
+  <xsl:choose>
+    <xsl:when test="$suppress-numbers = '0'
+                    and @linenumbering = 'numbered'
+                    and $use.extensions != '0'
+                    and $linenumbering.extension != '0'">
+      <div class="{name(.)}">
+        <p>
+          <xsl:call-template name="number.rtf.lines">
+            <xsl:with-param name="rtf" select="$rtf"/>
+          </xsl:call-template>
+        </p>
+      </div>
+    </xsl:when>
+
+    <xsl:otherwise>
+      <div class="{name(.)}">
+        <p>
+          <xsl:apply-templates mode="titlepage.mode"/>
+        </p>
+      </div>
+    </xsl:otherwise>
+  </xsl:choose>
 </xsl:template>
 
 <xsl:template match="affiliation" mode="titlepage.mode">