Subject: Re: [xsl] Does the count() function require access to the whole subtree? From: John Lumley <john@xxxxxxxxxxxx> Date: Tue, 14 Jan 2014 10:43:36 +0000 |
Imagine a tree which contains somewhere an element whose name is X. Let's call that x1. A descendant of x1 is another element with name X. Let's call that x2.Correction - the trees of course cannot have partial overlap (they wouldn't be trees if they were....), though XPath nodesets can have partial overlaps.
Invoking //X of course discovers both x1 and x2. Each has its own tree - it's node and it's subtrees. But the tree of x1 overlaps that of x2 - some members of the tree of x1 are in the tree of x2 (In this case it is a total overlap, for other expressions it could be partial.)
-- *John Lumley* MA PhD CEng FIEE john@xxxxxxxxxxxx <mailto:john@xxxxxxxxxxxx> on behalf of Saxonica Ltd
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Does the count() function, John Lumley | Thread | Re: [xsl] Does the count() function, Peter West |
Re: [xsl] Does the count() function, John Lumley | Date | Re: [xsl] Does the count() function, Peter West |
Month |