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 EXT / FOCAL VANDEPUTTE Brice <ex...@sncf.fr> on 2005/11/30 16:55:32 UTC

RE : Forcing Whitespace

>Tried but got following error message: "The entity "nbsp" was 
>referenced, but not declared."

Yep try "&#160;" instead of "&nbsp;"

Brice

-----Message d'origine-----
De : Ail Sahin [mailto:ali@as-support.com] 
Envoyé : mercredi 30 novembre 2005 16:59
À : fop-users@xmlgraphics.apache.org
Objet : Re: Forcing Whitespace

Simon Burton schrieb:

>Putting a space between <xsl:text> tags does add a single char of whitespace - do you mean you want several chars of whitespace between them?
>  
>
That does not work.

I'd like the address to be
"Prename Surname  Address  Postalcode  City" in one single line.

But my sheet version does sth. like

"PrenameSurnameAddressPostalcodeCity" in one single line.

>You can add white-space-collapse="false" to your block tags
>
Already tried. Without success.

>if you want more white space you may need to add some non breaking space references (&nbsp;) but they have to be outside of <xsl:text> tags.
>  
>
Tried but got following error message: "The entity "nbsp" was 
referenced, but not declared."

>----- Start Original Message -----
>From: Ail Sahin <al...@as-support.com>
>To: fop-users@xmlgraphics.apache.org
>Subject: Forcing Whitespace
>
>  
>
>>Hi there,
>>
>>I have following block
>>
>>"<fo:block break-before="page" font-size="8pt"  font-weight="normal" 
>>space-before="3cm">
>>                    <xsl:value-of select="sender/title"/><xsl:text> 
>></xsl:text>
>>                    <xsl:value-of select="sender/name1"/><xsl:text> 
>></xsl:text>
>>                    <xsl:value-of select="sender/name2"/><xsl:text> 
>></xsl:text>
>>                    <xsl:value-of select="sender/name3"/><xsl:text> 
>></xsl:text>
>>                    <xsl:value-of select="sender/postbox"/><xsl:text> 
>></xsl:text>
>>                    <xsl:value-of select="sender/street"/><xsl:text> 
>></xsl:text>
>>                    <xsl:value-of select="sender/state"/><xsl:text> 
>></xsl:text>
>>                    <xsl:value-of select="sender/country"/><xsl:text> 
>></xsl:text>
>>                    <xsl:value-of select="sender/postalcode"/><xsl:text> 
>></xsl:text>
>>                    <xsl:value-of 
>>select="sender/city"/><fo:block/><xsl:text> </xsl:text>
>>                    <fo:leader leader-pattern="rule" />
>></fo:block>"
>>
>>I'd like to have some whitespaces between each "<xsl:value-of>"
>>
>>How to manage this?
>>
>>Greets
>>Ali
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>>    
>>
>
>----- End Original Message -----
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: RE : Forcing Whitespace

Posted by Ail Sahin <al...@as-support.com>.
EXT / FOCAL VANDEPUTTE Brice schrieb:

>>Tried but got following error message: "The entity "nbsp" was 
>>referenced, but not declared."
>>    
>>
>
>Yep try "&#160;" instead of "&nbsp;"
>
>Brice
>  
>
Thanks Brice, thanks Simon.
I got it with "&#xA0".

Thanks a lot for your help. ^^

BR...
Ali

>-----Message d'origine-----
>De : Ail Sahin [mailto:ali@as-support.com] 
>Envoyé : mercredi 30 novembre 2005 16:59
>À : fop-users@xmlgraphics.apache.org
>Objet : Re: Forcing Whitespace
>
>Simon Burton schrieb:
>
>  
>
>>Putting a space between <xsl:text> tags does add a single char of whitespace - do you mean you want several chars of whitespace between them?
>> 
>>
>>    
>>
>That does not work.
>
>I'd like the address to be
>"Prename Surname  Address  Postalcode  City" in one single line.
>
>But my sheet version does sth. like
>
>"PrenameSurnameAddressPostalcodeCity" in one single line.
>
>  
>
>>You can add white-space-collapse="false" to your block tags
>>
>>    
>>
>Already tried. Without success.
>
>  
>
>>if you want more white space you may need to add some non breaking space references (&nbsp;) but they have to be outside of <xsl:text> tags.
>> 
>>
>>    
>>
>Tried but got following error message: "The entity "nbsp" was 
>referenced, but not declared."
>
>  
>
>>----- Start Original Message -----
>>From: Ail Sahin <al...@as-support.com>
>>To: fop-users@xmlgraphics.apache.org
>>Subject: Forcing Whitespace
>>
>> 
>>
>>    
>>
>>>Hi there,
>>>
>>>I have following block
>>>
>>>"<fo:block break-before="page" font-size="8pt"  font-weight="normal" 
>>>space-before="3cm">
>>>                   <xsl:value-of select="sender/title"/><xsl:text> 
>>></xsl:text>
>>>                   <xsl:value-of select="sender/name1"/><xsl:text> 
>>></xsl:text>
>>>                   <xsl:value-of select="sender/name2"/><xsl:text> 
>>></xsl:text>
>>>                   <xsl:value-of select="sender/name3"/><xsl:text> 
>>></xsl:text>
>>>                   <xsl:value-of select="sender/postbox"/><xsl:text> 
>>></xsl:text>
>>>                   <xsl:value-of select="sender/street"/><xsl:text> 
>>></xsl:text>
>>>                   <xsl:value-of select="sender/state"/><xsl:text> 
>>></xsl:text>
>>>                   <xsl:value-of select="sender/country"/><xsl:text> 
>>></xsl:text>
>>>                   <xsl:value-of select="sender/postalcode"/><xsl:text> 
>>></xsl:text>
>>>                   <xsl:value-of 
>>>select="sender/city"/><fo:block/><xsl:text> </xsl:text>
>>>                   <fo:leader leader-pattern="rule" />
>>></fo:block>"
>>>
>>>I'd like to have some whitespaces between each "<xsl:value-of>"
>>>
>>>How to manage this?
>>>
>>>Greets
>>>Ali
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>
>>>
>>>   
>>>
>>>      
>>>
>>----- End Original Message -----
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>>
>> 
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org