Re: xpath sequence methods and subscripts

"rvj" <[email protected]> Mon, 7 Feb 2011 16:29:40 -0000
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
or

 <assign var="?secondtoken"  expr="subsequence(tokenize(@phrase),2)"

where @phrase is "in the beginning"

"rvj" <[email protected]> wrote in message 
news:[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) />
>>>
>>>
>>>
>>
>>
>
>