[xsl] looking for the / char

Subject: [xsl] looking for the / char
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx (by way of Mulberry Technologies List Owner)
Date: Sat, 3 Feb 2001 22:58:03 -0500
From: "Mirick, John" <jmirick@xxxxxxxxxxxx>
To: "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: looking for the / char
Date: Fri, 2 Feb 2001 14:52:48 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;

Eck! Im a bit baffled right now...
Im trying to get a template that will just remove spaces and / from a given
string. The code is based on some I found in the FAQ. It replaces the spaces
fine.... however it wont replace the /.... Im not sure why.
If anyone has a spare moment Im sure it is blatantly obvious to some of you.
But Im at the point where Im ready to pull my hair out. I have also tried
both the decimal and hex codes (&#47; and &#x2f;) rather than just using the
slash with no luck.

<xsl:template name="replaceCharsInString">
	<xsl:param name="stringIn"/>
		<xsl:when test="contains($stringIn,' ')">
select="concat(substring-before($stringIn,' '),'%20')"/>
			<xsl:call-template name="replaceCharsInString">
				<xsl:with-param name="stringIn"
select="substring-after($stringIn,' ')"/>
		<xsl:when test="contains($stringIn,'/')">
			<xsl:call-template name="replaceCharsInString">
				<xsl:with-param name="stringIn"
			<xsl:value-of select="$stringIn"/>

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

Current Thread