This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.
*/

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]