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

RE: is there a String indexOf() function in Xpath?

Subject: RE: is there a String indexOf() function in Xpath?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 28 Jul 2005 22:33:21 +0100
xpath indexof
XSLT 2.0 and XQuery both provide the ability to write your own functions,
and as DC showed, this one can be written as a simple composition of two
functions in the core library. The WG has been trying to keep the number of
functions down to a minimum, and anything that can be constructed so easily
from existing functions tends to get short shrift. (With a few exceptions
like exists() and empty(), of course...)

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: Arian Hojat [mailto:arianhojat2000@xxxxxxxxx] 
> Sent: 28 July 2005 20:25
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  is there a String indexOf() function in Xpath?
> 
> hey I searched around and I couldn't find an xpath
> function to return what the index of a strings'
> character/substring is located.
> 
> Want to do something like this...
> substring($titleText, 
> indexOf($titleText, ' findThisTextsIndex ')+5 , 
> indexOf($titleText, 'toHere') )
> 
> 
> 
> 
> 
> 		
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 

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.