<xsl:text> is useful exactly because it retains whitespace. For example,
because you wrote
                <xsl:text>
                    on page
                </xsl:text>
instead of
                <xsl:text>on page</xsl:text>
you will always see the extra linebreaks, tabs and spaces used for
indenting in the output (check it!), exactly as you put them in the element
content. Probably, you are inserting these nefarious spaces while formating
the number or placing the period. If you are emmiting any whitespace
(spaces, tabs or linebreaks) between the number and the period, they will
be rendered by the browser, because the normalization that occurs during
rendering only reduces multiple whitespace to a single space -- it never
removes everything.

=============================================
Marcelo Jaccoud Amaral
Petrobr�s (http://www.petrobras.com.br)
mailto:[EMAIL PROTECTED]
voice: +55 21 2534-3485
fax: +55 21 2534-1809
=============================================
There are only 10 kinds of people in the world: those who understand binary
and those who don't.



                                                                                
                               
                      "jamesl"                                                  
                               
                      <[EMAIL PROTECTED]        Para:     [EMAIL PROTECTED]     
                          
                      tware.com>               cc:                              
                               
                                               Assunto:  Extra space after 
cross-reference                     
                      10/04/2003 11:57                                          
                               
                      Favor responder a                                         
                               
                      fop-user                                                  
                               
                                                                                
                               
                                                                                
                               




I am including a template for cross-references in my stylesheet. The
template
has the intended result with one exception: it inserts a space when the
text
following the cross-reference is a period.

Here is what the output looks like:
     "For more information, see Getting Started on page 2 ."

I want the output to be
     "For more information, see Getting Started on page 2."

Any ideas on how to fix this would be appreciated.


************************************************
SOURCE FO

<xsl:template match="a">
        <xsl:element name="fo:inline">

            <xsl:element name="fo:basic-link">
                <xsl:attribute name="internal-destination">
                    <xsl:value-of select="@idref" />
                </xsl:attribute>

                <xsl:value-of select="document(@idref)/cnt-elm/title"/>

                <xsl:text>
                    on page
                </xsl:text>

                <xsl:element name="fo:page-number-citation">
                    <xsl:attribute name="ref-id">
                        <xsl:value-of select="@idref" />
                    </xsl:attribute>
                </xsl:element>

            </xsl:element>

        </xsl:element>
    </xsl:template>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to