[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to filter characters from a string?

Subject: RE: How to filter characters from a string?
From: Greg Faron <gfaron@xxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Mar 2002 14:36:10 -0700
xml string filter character
At 02:11 PM 3/29/2002, you wrote:
Write a translate that removes all the characters that are allowed in
base64. The result of this translate is a string containing all the
characters that aren't allowed, i.e. the ones you want to remove. Use this
as the second parameter for another translate():

translate($x, translate($x, 'ABCDE...abcde...12345...', ''), '')

Oooh, I like that one. This way the second translate() is customized for every argument, but easily coded (and maintained). Do you know of any way to benchmark Microsoft XSLT operations so that I could see which is faster? I suspect that the double translate() is better than the template solution posted earlier.



Greg Faron Integre Technical Publishing Co.



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.