You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Scherler, Thorsten" <Th...@weidmueller.de> on 2002/11/20 14:13:25 UTC

Spaces after

Hello group,

I have a problem:
<fo:block padding-before="24pt">
<xsl:apply-templates select="//body/xsalutation"/>
<xsl:value-of select="./ap/salutation/text<xsl:value-of select="./ap/surname"/>,</fo:block>

will return:
Guten Tag Herr Scherler ,

But I want to have: 
Guten Tag Herr Scherler,

So I tried the following:
<fo:block padding-before="24pt">
<xsl:apply-templates select="//body/xsalutation"/>
<xsl:value-of select="./ap/salutation/text<xsl:value-of select="./ap/surname"/><fo:inline start-indent="-.25cm" white-space-treatment="ignore">,</fo:inline> </fo:block>

But still it's not working! I also tried with white-space...
...no success

Thanks in advance for any help.

> Mit freundlichem Gruss,
> 
> Thorsten Scherler
> Marketing / Telefonmarketing
> 
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> eMail: thorsten.scherler@weidmueller.de
> http://www.weidmueller.de
> 
> 

Re: Spaces after

Posted by Harm Kok <h....@diderottrack.nl>.
Hi,

We have to find out where the space is comming from. Could you change 
the add the normalize-space() function so extra spaces behind the 
"surname" element is deleted?
Example: <xsl:value-of select="normalize-space(./ap/surname)"/>

In your example I mis some of the "/>, I guess the disspeared somewhere 
in the copying process?

HTH,

Harm

Scherler, Thorsten wrote:

>Hello group,
>
>I have a problem:
><fo:block padding-before="24pt">
><xsl:apply-templates select="//body/xsalutation"/>
><xsl:value-of select="./ap/salutation/text<xsl:value-of select="./ap/surname"/>,</fo:block>
>
>will return:
>Guten Tag Herr Scherler ,
>
>But I want to have: 
>Guten Tag Herr Scherler,
>
>So I tried the following:
><fo:block padding-before="24pt">
><xsl:apply-templates select="//body/xsalutation"/>
><xsl:value-of select="./ap/salutation/text<xsl:value-of select="./ap/surname"/><fo:inline start-indent="-.25cm" white-space-treatment="ignore">,</fo:inline> </fo:block>
>
>But still it's not working! I also tried with white-space...
>...no success
>
>Thanks in advance for any help.
>
>  
>
>>Mit freundlichem Gruss,
>>
>>Thorsten Scherler
>>Marketing / Telefonmarketing
>>
>>Weidmüller GmbH & Co.
>>P.O. Box 2807
>>33058 Paderborn
>>Tel.:+ 49 - 5252-960-350
>>Fax:+ 49 - 5252-960-116
>>eMail: thorsten.scherler@weidmueller.de
>>http://www.weidmueller.de
>>
>>    
>>
>
>  
>