xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[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/


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor