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

xslt strings: 'substring-between'?

Subject: xslt strings: 'substring-between'?
From: Steve Morrison <smorrison@xxxxxxx>
Date: Tue, 01 Aug 2000 13:56:39 -0400
xslt substring between
I want to be able to parse an url string, and return name value pairs:
page.cgi?T=boston&S=MA
I can test if the T parameter exists and has a value (not equal to &), but, how do I extract the contents between the = and the next &? e.g. "boston"?
What if there isn't a trailing & on the parameter (the last parameter in the url, such as S=MA above)? 

I have an <url> tag on each page which references the current document (such cgi environment variables) and I want to be able to extract it's contents without knowing beforehand what the contents may look like.

Has anyone assembled a list of string utility functions? I've seen a few in the XSLT Programmers reference, but none which will do what I want above.

Thanks,
-Steve


 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-2011 All Rights Reserved.