Subject: Re: [xsl] Newbie question on XSL transformations: multiple sorts on element attributes From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Tue, 06 Feb 2007 21:45:16 +0100 |
Hi there,
I am relatively new to XSL transformations, so I apologize in advance if this question seems ridiculously simple.
-- START SNIPPET --
<xsl:template match="dataloggerlist">
<xsl:element name="dataloggerlist">
<xsl:apply-templates select="datalogger">
<xsl:sort select="param/@id{dlt}" data-type="number" order="descending" />
<xsl:sort select="@name" order="ascending" />
</xsl:apply-templates>
</xsl:element>
</xsl:template>
-- END SNIPPET --
(Note: the datalogger template outputs the data same as before)
I would prefer to do this whole process in one step, and avoid having two XSL files that create an interim XML file that just gets transformed again.
-- Abel Braaksma http://www.nuntia.nl
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Newbie question on XSL transf, Rob Newman | Thread | Re: [xsl] Newbie question on XSL tr, Rob Newman |
[xsl] Newbie question on XSL transf, Rob Newman | Date | Re: [xsl] XSL-FO Question - fo:retr, J.Pietschmann |
Month |