[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

how to sort a union using number()?

Subject: how to sort a union using number()?
From: Andrew S Halper <ashalper@xxxxxxxx>
Date: Thu, 15 Mar 2007 16:43:43 -0700
 how to sort a union using number()?

I was wondering if someone might explain how to sort a union of nodes 
using the number() function.

I encountered a point where I needed to apply templates to a union of 
nodes, sorting them on a common element.

The naive approach was (XPaths radically simplified for brevity):


but this resulted in:

Error on line 228 of file:/e:/schema.xsl:
  XPTY0004: A sequence of more than one item is not allowed as the first 
argument of number()

I'm using Saxon 8.9J.

Thank you very much,
Andy Halper

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.