I have a group of strings, i.e. g: lines = '9,1,306, LUCY, G, 38,12'
I need the output in XSLT 1.0:
1,9,12,38,306, G LUCY
This is my current code:
<xsl:for-each select="$all_alerts[g:problem!='normal_service'][g:service='bus']"> <xsl:sort select="g:line"/> <xsl:sort select="number(g:line)" data-type="number"/> <xsl:value-of select="normalize-space(g:line)" /><xsl:text/> <xsl:if test="position()!=last()"><xsl:text>,&
I can make it display only "1, 12, 306, 38, 9, G, LUCY" because the second sort is not matched.
Can anybody help me?
sorting xslt alphanumeric
Bryan
source share