Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
Is it possible in XSLT to sort on a date field (a regular Date Picker datatype) and if it's not set on the current node, then sort on the updateDate instead?
Something along the lines of this:
<xsl:sort select="myDate | @updateDate" order="descending" />
Is this possible? :-)
In Xslt not sure if this will work
<xsl:sortselect="myDate | @updateDate"order="descending"/>
this might though
<xsl:choose> <xsl:when test="string('datePicker') = ' '"> <xsl:sortselect="datePicker"order="descending"/> </xsl:when><xsl:otherwise> <xsl:sortselect="@createDate"order="descending"/></xsl:otherwise></xsl:choose>
Not sure though
Hi,
I think it's possible:
<xsl:for-each select="page"> <xsl:sort select="myDate" order="descending"/> <xsl:sort select="@updateDate" order="descending"/> </xsl:for-each>
I think it´s possible.
<xsl:sort select="(./myDate[normalize-space() != '']|@updateDate)"order="descending"/>
<xsl:sort select="(./
myDate[normalize-space() != '']|
@updateDate)"order="descending"/>
Thanks a lot for your inputs :-) I managed to get it to work by using this:
<xsl:sort select="(@updateDate[not(normalize-space(../myDate))] | myDate)[1]" order="descending"/>
Credit goes to Chriztian Steinmeier!
Nice one!!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Sort on date field with fallback to updateDate
Hi all,
Is it possible in XSLT to sort on a date field (a regular Date Picker datatype) and if it's not set on the current node, then sort on the updateDate instead?
Something along the lines of this:
Is this possible? :-)
In Xslt not sure if this will work
this might though
Not sure though
Hi,
I think it's possible:
Hi,
I think it´s possible.
Hi all,
Thanks a lot for your inputs :-) I managed to get it to work by using this:
Credit goes to Chriztian Steinmeier!
Nice one!!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.