[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Using saxon:assign and testing content of variable
Subject: RE: [xsl] Using saxon:assign and testing content of variable
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 21 Sep 2005 04:26:19 +0100
|
> I thought that a count($pageNumber) would have returned 3 for
> the 3 nodes I
> added to the variable, instead I get a consistent 1.
count() applied to a temporary tree is always one, because the value is a
document node. You want to count its children.
Michael Kay
http://www.saxonica.com/
|