Next in thread → Next in month →

Re: [docbook] Spaces

From
John L. Clark <>
Date
2004-07-02T01:36:32+00:00
ID
Thread
Re: [docbook] Spaces
On Thu, Jul 01, 2004 at 11:08:16PM -0300, Pupeno wrote:
> I'm customizing the footer and header of my document, so, I want my name to be 
> in some footers, so, I put this:
> <xsl:value-of select="ancestor-or-self::book/bookinfo/author/firstname"/>
> <xsl:value-of select="ancestor-or-self::book/bookinfo/author/othername"/>
> <xsl:value-of select="ancestor-or-self::book/bookinfo/author/surname"/>
> The problem is that there's no white (blank) space between the data of each 
> tag. How do I put a white space between them ?

Just explicitly specify the space in the output with:

  <xsl:text> </xsl:text>

In your example, this would look like:

  <xsl:value-of select="ancestor-or-self::book/bookinfo/author/firstname"/>
  <xsl:text> </xsl:text>
  <xsl:value-of select="ancestor-or-self::book/bookinfo/author/othername"/>
  <xsl:text> </xsl:text>
  <xsl:value-of select="ancestor-or-self::book/bookinfo/author/surname"/>

Take care,

    John L. Clark
Next in thread → Next in month →