Re: xpath sequence methods and subscripts

"rvj" <[email protected]> Mon, 7 Feb 2011 16:07:43 -0000
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
.....is this the correct syntax to return "the"?

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




"rvj" <[email protected]> wrote in message 
news:[email protected]...
>I guess it's subsequence !
>
>
> "rvj" <[email protected]> wrote in message 
> news:[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) 
>> />
>>
>>
>>
>
>