xsl-list
[Top] [All Lists]

RE: Using saxon:assign and testing content of variable

2005-09-20 20:26:19

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/




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--