This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: whitespace as a parameter to a template (replace linefe ed with linefeed tab)
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] whitespace as a parameter to a template (replace linefe ed with linefeed tab)
- From: "MacEwan, James (Information Services)" <James dot MacEwan at investorsgroup dot com>
- Date: Mon, 4 Jun 2001 10:05:34 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
You are correct. I was missing quotes around the string value as detailed
below.
(Mike Kay wrote later asking for more detail on my troubles, but there is no
longer any need.)
Thanks.
> Hi James,
> > I thought about that and so I set my replace string to "foo" and my
> > by string "bar". Of course the style sheet works just fine with
> > these non-white-space values.>
> > I am content with using the other solution you suggested using the
> > <xsl:text> tags.
> Sorry to hammer on about it then, but it does sound as if you've
> missed the quotes around the string value. You need to have two quotes
> - one set for the select attribute (I use double quotes) and one set
> around the string that is the value of the expression (I use
singlequotes):
> <xsl:with-param name="replace" select="' '" />
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list