Subject: Re: [xsl] Confused using a loop... From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 28 Mar 2007 17:59:15 +0200 |
<xsl:for-each select="//menuItem[ancestor-or-self::menuItem/pageID =
$pageID]"> <xsl:sort select="substring(lastUpdate,1,4)"
order="descending" /> <!-- year -->
<xsl:sort select="substring(lastUpdate,6,2)"
order="descending" /> <!-- month -->
<xsl:sort select="substring(lastUpdate,9,2)"
order="descending" /> <!-- day -->
<xsl:if test="position() < $numberOfItemsToList">
<xsl:call-template name="createItem" />
</xsl:if>
</xsl:for-each>
<!-- this --> <xsl:sort select="translate(lastUpdate,'/','')" date-type="number" />
<!-- or this: --> <xsl:sort select="translate(lastUpdate,'/ ','')" date-type="number" />
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Confused using a loop..., Abel Braaksma | Thread | RE: [xsl] Confused using a loop..., Austin, Darrel |
Re: [xsl] XSLT parsers in a C/C++ A, M. David Peterson | Date | RE: [xsl] Use same xml file with di, cknell |
Month |