Subject: RE: text modifications in XSLT
From: Ryan Puddephatt <rpuddephatt@xxxxxxxxxxxx>
Date: Mon, 19 Dec 2005 11:51:11 +0000
|
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@xxxxxxxxxxxx
( 01506 407 110
7 01506 407 108
-----Original Message-----
From: N. Ganesh Babu [mailto:ganesh@xxxxxxxxxxxxxxxxxxxxx]
Sent: 19 December 2005 11:41
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: 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
|