xsl-list
[Top] [All Lists]

RE: [xsl] error: data-type on xsl:sort must be 'text' or 'number'

2007-05-01 09:45:20
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(_dot_)Williams(_at_)the401kcompany(_dot_)com] 
Sent: 01 May 2007 17:29
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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(_dot_)Williams(_at_)The401kCompany(_dot_)com    
 



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>