p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > XML > BOOK: XSLT Programmer's Reference, 2nd Edition
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: XSLT Programmer's Reference, 2nd Edition
This is the forum to discuss the Wrox book XSLT: Programmer's Reference, 2nd Edition by Michael Kay; ISBN: 9780764543814

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: XSLT Programmer's Reference, 2nd Edition section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 28th, 2009, 02:30 AM
Registered User
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default REMOVE leading zero and alpha characters in string in XSL...

hi

i have a code in C language

Basically i want to remove leading zero and alphabets from string


example

000C77499 should become 7749
000wert499 should become 499
00erty100 should become 100



I want to do it in XSL . PLEASE HELP


In the below CODE above objective is already achieved in C language

CString Buff = "000C77499";
Buff.MakeUpper();
int len = Buff.GetLength();
int index = 0;
for(int len1 = Buff.GetLength(); len1>0;len1--)
if(0 != isdigit(Buff.GetAt(len1-1)))
{
index++;
continue;
}
else
{
break;
}
Buff = Buff.Mid(len-index,len);


PLEASE HELP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
REMOVE leading zero and alpha characters in string in XSL... san_yacha XSLT 3 July 28th, 2009 05:06 AM
How to remove remove elements deep using xsl Prabeen XSLT 1 May 5th, 2009 01:55 AM
Removing leading zeros from a string value vikkiefd XSLT 2 June 12th, 2008 04:30 AM
Remove Leading and Trailing Zeros lene_wee SQL Server 2000 3 April 1st, 2008 09:23 AM
checking for alpha in a string abbylee26 Javascript How-To 1 February 26th, 2004 12:35 PM



All times are GMT -4. The time now is 04:44 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc