[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Patterns and scoped variables (or rather lack thereof)


Subject: Re: [xsl] Patterns and scoped variables (or rather lack thereof)
From: John Lumley <john@xxxxxxxxxxxx>
Date: Sun, 16 Feb 2014 20:22:11 +0100

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@xxxxxxxxxx wrote:
>
> <xsl:template match="text()[
>    let $t := tokenize(., ':')
>    return
>       count($t) eq 2 and
>       count(tokenize($t, '\s+')) lt 4">


Current Thread