Vyacheslav Sedov wrote:
tokenize($uri,'/')[1 to (last()-1)]
Within '[' and ']' is a predicate. It is evaluated for each item, to
see if the item is include or not in the sequence. It must result to a
boolean. If it is not of type xs:boolean, its EBV is taken. But an
EBV is not defined for a sequence of integers. (the special case of an
integer is a shortcut for position() eq i)
I guess what you are after is:
tokenize($uri,'/')[position() ne last()]
Regards,
--drkm
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
--~------------------------------------------------------------------
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>
--~--