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] whitespace handling in manpages stylesheet

>Yes.  How about this additional template?:
><xsl:template match="funcprototype//text()">
>  <xsl:value-of select="normalize-space()"/>
>  <xsl:if test="following-sibling::parameter or
>                following-sibling::function">
>    <xsl:text> </xsl:text>
>  </xsl:if>

Thanks. That seems to work fine and removes all the hacking on
multiple (sometimes inappropriate) templates.

Is it possible to use the same kind of approach for the various other
bits of text that get their whitespace wrongly preserved, listitems in
varlistentries and itemizedlists, and row entries in tables?
I tried:
<xsl:template match="listitem//text()">
  <xsl:value-of select="normalize-space()"/>
but that seems to strip whitespace from around function elements in
the output.

BTW, why does the listitem//text() in the above template only seem to
match if I wrap the listitems's content in para tags? This doesn't
seem necessary in your "funcprototype//text()" above.


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