This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Documentation on string-replace


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;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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]