ニュースアイテムノードをループするforeachがあります。他のプロパティの中でも、これらのニュースアイテムには作成日に関する2つの属性があります。システムの追加日とユーザーが作成日を入力しました(システムの日付を上書きするため)。ユーザーが入力した日付を優先して、作成日でリストを並べ替えてください。
以下は私の謙虚な無効な試みです!
<xsl:for-each select="$currentPage/ancestor-or-self::node /node [@nodeTypeAlias = $documentTypeAlias and string(data [@alias='umbracoNaviHide']) != '1']">
<xsl:choose>
<xsl:when test="data [@alias = 'createdDate'] != ''">
<xsl:variable name="sort" select="string(data [@alias = 'createdDate'])"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="sort" select="string(@createDate)"/>
</xsl:otherwise>
</xsl:choose>
<xsl:sort select="$sort" order="descending"/>
どうもありがとう