RE: How to filter characters from a string?
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():
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.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format