xpath sequence methods and subscripts

"rvj" <[email protected]> Mon, 7 Feb 2011 15:46:28 -0000
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
1. anyone got an example of how to return the results of a sequence method 
such as tokenize ?

    <assign var="?alltokens"  expr="tokenize('in the beginning') />

2. or how to return the second "token" - some kind of subscript on data??

    <assign var="?secondtoken"  expr="data(tokenize('in the beginning'),2) 
/>