This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: strangeness with <xsl:variable>


> From: Mike Hostetler [mailto:mikeh@nukeroad.net]
> Sent: 20 December 2000 19:45
> 1. When doing this:
> <xslvariable name="name">
>     chap<xsl:number count="chapter"/>
> </xsl:variable>
> 
> <a name="{$name}">
>   [....]
> I get control characters in the HTML, a la:
>   <a name="%A0%20chap1">
> 
The newline and spaces before the "chap" are part of the same text node, so
they are part of the value of the variable. Remove them from the stylesheet,
or use <xsl:text>, or use <a name="normalize-space($name)">.

Mike Kay 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]