This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Documentation on string-replace
- To: xsl-list at mulberrytech dot com
- Subject: Re: Documentation on string-replace
- From: Jennifer Moter <jmoter at 1viewnetwork dot com>
- Date: Thu, 17 Feb 2000 14:44:22 -0600
- Reply-To: xsl-list at mulberrytech dot com
I think you may be thinking of xpath's translate:
this reads:
if 1st row's 1st cell doesn't contain a dollar sign,
then remove the (urlencoded) nonbreaking space and replace it with a space
<xsl:if test="not(contains(../TR[1]/TD/FONT,'$'))">
<AmountDue>
<xsl:value-of select="translate(../TR[1]/TD/FONT,
'$&amp;#160',' ')"/>
</AmountDue>
</xsl:if>
more good string functions in the xml bible
http://metalab.unc.edu/xml/books/bible/
chapters 14 xsl transformation is available online.
At 05:24 PM 2/17/00, you wrote:
>I have seen some references to a string-replace function in XSL and
>would like to know where I can get some documentation about this feature
>and possibly some examples.
>Thanks,
>Ben Bertola
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list