I hope I'm not being dumb, but since tokenize() expects xs:string? as the main
argument, this predicate should either return false() or trigger an error,
since if count($t) eq 2, then the second point should complain...
John
On 16 Feb 2014, at 18:01, abel(_at_)exselt(_dot_)net wrote:
<xsl:template match="text()[
let $t := tokenize(., ':')
return
count($t) eq 2 and
count(tokenize($t, '\s+')) lt 4">
--~------------------------------------------------------------------
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>
--~--