This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: strangeness with <xsl:variable>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] strangeness with <xsl:variable>
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 2 Jan 2001 11:15:04 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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