Re: [docbook-apps] whitespace handling in manpages stylesheet

From
Tim Waugh <>
Date
2003-11-14T12:55:41+00:00
ID
Thread
Re: [docbook-apps] whitespace handling in manpages stylesheet
On Thu, Nov 06, 2003 at 07:11:14PM +0000, Brian McGurk wrote:

> I think the problem comes down to the substitution of spaces with
> escaped spaces being done before the normalize-space function is
> called. So the spaces and newlines all get left in.

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>
</xsl:template>

Tim.
*/