xsl-list
[Top] [All Lists]

RE: text modifications in XSLT

2005-12-19 04:51:11
Ganesh,
        Try replace(replace(ss-report/cis-no,'.',''),' ','_')

That should return the string after removing all the '.' and replacing
spaces with '_'

If you need more information google 'XPath 2.0 Replace'

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* rpuddephatt(_at_)teleflex(_dot_)com
( 01506 407 110
7  01506 407 108
 
-----Original Message-----
From: N. Ganesh Babu [mailto:ganesh(_at_)ald(_dot_)apexcovantage(_dot_)com] 
Sent: 19 December 2005 11:41
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] text modifications in XSLT

Dear all,

How to do text modificaiton using XSLT.

My requirement is as follows:

Input
====
<ss-report>
<cm1-record>
<cis-no>1689 H.exdoc.120</cis-no>
<ocr-confidence level="6">33.3%</ocr-confidence>
<ocr-confidence level="7">32.1%</ocr-confidence>
<ocr-confidence level="8">10.4%</ocr-confidence>
</cm1-record>
</ss-report>


Output:
===

1689_Hexdoc120

Regards,
Ganesh


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>