Subject: Re: How to substitute a portion of the text value of an element
From: Syd Bauman <Syd_Bauman@xxxxxxxxx>
Date: Tue, 7 Oct 2008 17:08:36 -0400
|
Sorry, wasn't paying attention to the whole problem, just the
specific question.
Will the following do what you want?
<xsl:copy>
<xsl:variable name="regularizedMe" select="translate( ., '/', '\')"/>
<xsl:variable name="regularizedOld" select="translate( $old, '/', '\')"/>
<xsl:value-of select="substring-before( $regularizedMe, $regularizedOld )"/>
<xsl:value-of select="$new"/>
<xsl:value-of select="substring-after( $regularizedMe, $regularizedOld )"/>
</xsl:copy>
|