sorting parameters
Hi all!
Let's say I have this XML
<whatever>
<nbPeople>2</nbPeople>
<nbAnimals>4</nbAnimals>
<nbInvertebrates>1</nbInvertebrates>
</whatever>
I already have this in my stylesheet
<xsl:call-template name="print">
<xsl:with-param name="people" select="nbPeople"/>
<xsl:with-param name="animals" select="nbAnimals"/>
<xsl:with-param name="invertebrates" select="nbInvertebrates"/>
</xsl:template>
I'd like to print out a line with params sorted, like:
"1 invertebrate, 2 people, 4 animals"
I want to use <xsl:sort> some way, but I can't figure out how...
<xsl:template name="print">
<xsl:param name="people"/>
<xsl:param name="animals"/>
<xsl:param name="invertebrates"/>
<xsl:for-each select=" ? ">
</xsl:for-each>
</xsl:template>
Any help will be appreciated,
Rushman
__________________
Dijkstra's law on Programming and Inertia:
If you don't know what your program is supposed to do, don't try to write it.
|