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

RE: error: data-type on xsl:sort must be 'text' or 'n

Subject: RE: error: data-type on xsl:sort must be 'text' or 'number'
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 1 May 2007 17:44:46 +0100
RE:  error: data-type on xsl:sort must be 'text' or  'n
Yes, these attributes are AVTs. 

Presumably the run-time value of $keys/k[1]/@type is neither "text" nor
"number".

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: Angela Williams [mailto:Angela.Williams@xxxxxxxxxxxxxxxxxx] 
> Sent: 01 May 2007 17:29
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  error: data-type on xsl:sort must be 'text' or 'number'
> 
> Saxon 8b, xslt 2, Oxygen 8.1
> 
> I thought data-type and order attributes were attribute value 
> templates?
> I don't know if this error is generated by Saxon or by 
> Oxygen, but if the error is valid, what do I have wrong?
> 
> <xsl:sort select="if ($keys/k[1]/@val) then
> sax:evaluate($keys/k[1]/@val) else 'foo'" 
> data-type="{$keys/k[1]/@type}"
> order="{$keys/k[1]/@order}"/>
> 
> Thanks!
> Angela Williams
> Software Developer
> The 401k Company, A Charles Schwab Company
> 98 San Jacinto Blvd. ~ Suite 1100 ~ Austin, TX 78701
> Office: 512.344.1547 ~ Fax: 512.397.6656
> Angela.Williams@xxxxxxxxxxxxxxxxxx    

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.