[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: 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/

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member