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


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] 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

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]