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

Re: [xsl] Does the count() function require access to the whole subtree?


Subject: Re: [xsl] Does the count() function require access to the whole subtree?
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Sun, 12 Jan 2014 21:11:21 +0000

> It's traversing the subtree rooted at $n that's not an inspection
> operation; this requires access to the nodes under $n, so it would be
> an absorption operation. So from context $n, count($n/some/path) is
> not going to be streamable unless we allow it to "absorb" $n in doing
> so -- not because of the count(), but because of the traversal.

My reading of it so far suggests that count($n/some/path) would be
"striding" and therefore streamable.

It would only be "absorbing" if you materialised the contents of <path>.



-- 
Andrew Welch
http://andrewjwelch.com


Current Thread