Thanks for the report on this.  Verified and fixed.  Regression test is
namespace23.

-scott




                                                                                       
                            
                    "Carsten                                                           
                            
                    Ziegeler"            To:     <[EMAIL PROTECTED]>            
                            
                    <cziegeler@su        cc:     (bcc: Scott Boag/CAM/Lotus)           
                            
                    ndn.de>              Subject:     [Xalan-J 2.2.0D6]: Problems with 
normalize-space             
                                                                                       
                            
                    07/05/2001                                                         
                            
                    08:07 AM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    xalan-dev                                                          
                            
                                                                                       
                            
                                                                                       
                            




Hi,

I have some problems with the normalize-space function.
When I use the following rule, everything is working well:

<xsl:template match = "link">
           <a href="{normalize-space(url)}">
                     <xsl:value-of select="normalize-space(text)"/>
           </a>
</xsl:template>

However if I use the folling template the result is different,
a %20 is appended to the value of the href attribute:

<xsl:template match = "link">
           <a>
                     <xsl:attribute name="href"><xsl:value-of
select="normalize-space(url)"/></xsl:attribute>
                     <xsl:value-of select="normalize-space(text)"/>
           </a>
</xsl:template>

The source looks like this:

<link>
           <url>
                     value
           </url>
</link>

Is there any chance to get the second template working?


Carsten

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: [EMAIL PROTECTED]
================================================================






Reply via email to