This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Where does <p> come from in HTML output of <address>?
- From: Tristan Fiedler <fiedler at cshl dot edu>
- To: Docbook-Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 13 Apr 2005 14:56:10 -0400
- Subject: [docbook-apps] Where does <p> come from in HTML output of <address>?
I have this in my XSL -HTML customization layer (only changed div's to
span's) :
<!-- template 4 -->
<xsl:template match="address" mode="titlepage.mode">
<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'">
<span class="{name(.)}">
<xsl:call-template name="paragraph">
<xsl:with-param name="content">
<xsl:call-template name="number.rtf.lines">
<xsl:with-param name="rtf" select="$rtf"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</span>
</xsl:when>
<xsl:otherwise>
<span class="{name(.)}">
<xsl:call-template name="paragraph">
<xsl:with-param name="content">
<xsl:call-template name="make-verbatim">
<xsl:with-param name="rtf" select="$rtf"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
But I am getting (and don't want) <p>'s in the HTML :
<span
class="address"><p>Baltimore, MD 21250 USA</p></span>
Since there are no <p> tags in the html/titlepage.xsl, where are these
<p> tags being called from? I wish to remove them (and perhaps simply
insert a comma, although I'm not sure about this part)
Thank you all in advance!
Cheers, Tristan
---
Tristan J. Fiedler
Postdoctoral Fellow - Stein Lab
Cold Spring Harbor Laboratory