Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: "Angela Williams" <Angela.Williams@------------------>
To:
Date: 5/1/2007 6:18:00 PM
You've just gotta laugh to keep from crying.

Thanks!
Angela

-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Sent: Tuesday, May 01, 2007 11:45 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] error: data-type on xsl:sort must be 'text' or
'number'

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: [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.Williams@xxxxxxxxxxxxxxxxxx


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent