Subject: RE: [xsl] strangeness with <xsl:variable> From: Kay Michael <Michael.Kay@xxxxxxx> Date: Tue, 2 Jan 2001 11:15:04 -0000 |
> From: Mike Hostetler [mailto:mikeh@xxxxxxxxxxxx] > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Carrying Namespaces throu, Kay Michael | Thread | RE: [xsl] Maximum number of cells, Kay Michael |
Re: [xsl] comparing strings, Jeni Tennison | Date | Re: [xsl] comparing strings, Jeni Tennison |
Month |