OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Where does <p> come from in HTML output of <address>?


On Wed, Apr 13, 2005 at 02:56:10PM -0400, Tristan Fiedler wrote:

>   <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>
>
> [...]
>
> 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)

The 'p' elements are coming from one of those calls to the 'paragraph'
template.  In a previous reply, I suggested just overriding the
'address' template:

<xsl:template match="address" mode="titlepage.mode">
  <span class="{name(.)}">
    <xsl:apply-templates mode="titlepage.mode"/>
  </span>
  <xsl:text>, </xsl:text>
</xsl:template>

(The comma placement there was to generate some specific output style
that you specified in that previous thread.)  I can see (at least) two
possible reasons for not doing it this way: (a) it didn't work (I
didn't test it), or (b) you need the original functionality of this
template somewhere else in the document.  Is either (a) or (b) true?
If so, we can solve it some other way.


-- 
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/

PGP signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]