dynamic sort - data-type (using xsl2.0 with saxon)
Hi,
I am trying to build a dynamic sort.
In order to have a proper sort I need to modify two attributes of the sort element.
1. the select attribute.
2. the data-type attribute.
the first one is easy:
<xsl:sort select="*[local-name()=$my-variable-to-sort]">
but when I am trying to put some variable in the data-type attribute I get transformation error:
"XTDE0030: data-type on xsl:sort must be 'text' or 'number'"
My data type are different. I must change the data-type in order to have a proper sorting dynamically.
HELP..... :)
Roni.
|