I have an XML doc that I'm transforming. I select two groups of child nodes
and then loop over this selection.
In the for-each loop I have added a sort. This works on the two node sets
separately rather than together. Is it possible to order on all nodes
together?
<xsl:template match="*">
<!-- News items -->
<xsl:when test="$typetoshow = 'news'">
<xsl:apply-templates
select="$home/[EMAIL PROTECTED]'news_and_events']/[EMAIL
PROTECTED]'press_releases' or
@key='in_the_news']" mode="main" />
</xsl:when>
</xsl:template>
<xsl:template match="*" mode="main">
<xsl:for-each select="./item[sc:fld('Show In Home',.)='1']">
<xsl:sort select="@sortorder" data-type="number"
order="ascending" />
<p><xsl:value-of select="@sortorder" /></p>
</xsl:for-each>
</xsl:template>
Thanks.
Adrian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257732
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4