Page 1 of 1
item-at()?
Posted: Thu Feb 07, 2008 11:11 pm
by tsh138
When I try to use item-at() I get the error that it is an unknown system function. Anyone know what function,if any, takes the place of this one?
Re: item-at()?
Posted: Fri Feb 08, 2008 11:17 am
by sorin_ristache
Hello,
There is no built-in function called item-at(). Please give an example of the input of your transformation and what you try to obtain from the transformation.
Regards,
Sorin
Re: item-at()?
Posted: Mon Feb 11, 2008 8:23 pm
by tsh138
Sorry, I figured it out. Use braces like an array in other languages.
Re: item-at()?
Posted: Tue Feb 12, 2008 1:17 am
by jkmyoung
Also note that node lists in xslt start at position() 1, not 0.
Re: item-at()?
Posted: Tue Feb 12, 2008 11:36 pm
by tsh138
Thanks, I think I read that somewhere in relation to how Microsoft deviated from the standard and start with 0 instead of one, is that correct?
Re: item-at()?
Posted: Wed Feb 13, 2008 6:22 pm
by jkmyoung
No.
All XSLT processors I've seen, including Microsofts, start at array index 1.
You may be thinking of C# or C++ where they start at 0, as is the norm, (eg compared to Java, php, perl, etc..)