On 09/06/2011 12:29, Jayarajan, Divya wrote:

I'm sorry, you'll have to provide more information. And even then, I may not be able to help since 8.9 is a rather old release.

The error message means what it says. It's possible that earlier releases didn't enforce this rule, since it's new to XSLT 2.0.

When you say that your extension function returns "a number", what exactly do you mean? What is the Java method signature?

Michael Kay

I am getting 'net.sf.saxon.trans.DynamicError: A sequence of more than one item is not allowed as the @select attribute of xsl:sort' error with sort function in Saxon8.9.
This is the code snippet in XSLT:
<xsl:sort select="XQHeaderFunc:dateFormatAsNumber(LastUpdateDateGMT)" data-type="number" order="descending"/>
The XQHeaderFunc:dateFormatAsNumber() returns a number.
This is working fine with Saxon8.4.Is there anything changed later releases.
------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help