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

Re: Strange error: Unknown collation

Subject: Re: Strange error: Unknown collation
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 09 Jan 2009 09:55:17 -0500
Re:  Strange error: Unknown collation
Hi,

One subtlety is that max(1,2) has two arguments, and the sequence from which the maximum is returned needs to be given in a single argument (the first). So max((1,2)) would return "2".

It's extra subtle since a second argument may be given to max() to provide a collation. 2 doesn't appear to be a known collation. :->

(The warning could be spurious, disappearing when the first thing is fixed, or it could be real; it depends on stuff we haven't seen.)

Cheers,
Wendell

At 09:17 AM 1/9/2009, you wrote:
peter verhaar wrote:

The following 2 lines:
                <xsl:variable name="notImportant" select="(1,2)"/>
                <xsl:variable name="errorProducingLine"
select="sum(for $a in $notImportant return number(max(1,2)))"/>
Are producing an error/warning on the closing bracket of the second line:
Error: FOCH0002: Unknown collation
Warning: SXWN9001: A variable with no following sibling instructions
has no effect

Can you tell us which version of which XSLT processor you use?
I think the error http://www.w3.org/TR/xpath-functions/#ERRFOCH0002 means that the XSLT processor does not support the collation needed for the max comparison.
The warning seems to indicate that the template has the xsl:variable but no instruction following that could use the variable.


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.