xsl-list
[Top] [All Lists]

RE: Selecting the first item from a tokenized string

2006-01-12 16:46:19
Just use exp[1].

The item-at() function was removed many drafts ago because it was redundant:
you can get the Nth item in a sequence using SEQ[N]. In the rare cases where
that's inconvenient because it changes the evaluation context, you can use
subsequence(SEQ, N, 1).

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

-----Original Message-----
From: Sanjukta Mitra [mailto:sanmit27(_at_)yahoo(_dot_)com] 
Sent: 12 January 2006 20:24
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Selecting the first item from a tokenized string

Hi,

I am trying to select the first item from a tokenized
string. I was trying to use the item-at() function.But
this seems to have been removed from Saxon and
possibly also from XSLT 2 . Is there another function
I could use to do this? Would really appreciate any
help.

Thanks
Sanjukta

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--