R
R
Hi All,
I have problem with sorting nodes I want sort them by columns c1, c2
also I have node <root><sort ActiveField="c0"/></root>
ActiveField attribute is set by user.
I'm sorting 'row' nodes, 'row' has c0, c1, c2, ..., cn child elements
I wrote:
<xsl:for-each select="row">
<xsl:sort select="concat(/root/sort/@ActiveField, c1, c2)"/>
// do somethning
</xsl:for-each>
but I doesn't work - is it allowed to use XPath inside concat function?
how can it be achived to sort 'row' elements by multiple elements?
thanks in advance for any help
best regards
R
I have problem with sorting nodes I want sort them by columns c1, c2
also I have node <root><sort ActiveField="c0"/></root>
ActiveField attribute is set by user.
I'm sorting 'row' nodes, 'row' has c0, c1, c2, ..., cn child elements
I wrote:
<xsl:for-each select="row">
<xsl:sort select="concat(/root/sort/@ActiveField, c1, c2)"/>
// do somethning
</xsl:for-each>
but I doesn't work - is it allowed to use XPath inside concat function?
how can it be achived to sort 'row' elements by multiple elements?
thanks in advance for any help
best regards
R