I think it's the @nodeTypeAlias that is bugging you here. Since the elements are named after the nodeTypeAlias it's not an attribute in the XML anymore.
So therefore I think you should try and change your expression from
<xsl:variable name="SortOrder" select="$currentPage/ancestor-or-self::* [@isDoc and @level = 1]//* [@isDoc and @nodeTypeAlias = 'ndmNyhederAktivitetsListe']/sortOrder" />
to
<xsl:variable name="SortOrder" select="$currentPage/ancestor-or-self::* [@isDoc and @level = 1]//* [@isDoc and ndmNyhederAktivitetsListe]/sortOrder" />
Try it out and see if it's working for you. And do remember to change it everywhere you make use of the @nodeTypeAlias attribute.
Show news on fontpage
Hi all! Iv'e been struggling with upgrading my newslist to the new schema.
The xslt saves fine but genereats no output at all. Only the <ul> tag gets generated in the browser.
I have my newspage (total overview) on level 1 with the news items below that.
The page with the newslist is also on level 1.
Please advice.
Thanks in advance.
Hi Claus
I think it's the @nodeTypeAlias that is bugging you here. Since the elements are named after the nodeTypeAlias it's not an attribute in the XML anymore.
So therefore I think you should try and change your expression from
<xsl:variable name="SortOrder" select="$currentPage/ancestor-or-self::* [@isDoc and @level = 1]//* [@isDoc and @nodeTypeAlias = 'ndmNyhederAktivitetsListe']/sortOrder" />
to
<xsl:variable name="SortOrder" select="$currentPage/ancestor-or-self::* [@isDoc and @level = 1]//* [@isDoc and ndmNyhederAktivitetsListe]/sortOrder" />
Try it out and see if it's working for you. And do remember to change it everywhere you make use of the @nodeTypeAlias attribute.
/Jan
if above doesn't work maybe (also think its @nodeTypeAlias) :
name() = 'ndmNyhederAktivitetsListe'
Thanks guys...you are lifesavers :-)
Turned out you were both spot on. the nodeTypeAlias was the culprit.
Tried Jans proposal first and the xslt file saved ok - but still no output. But using kows expression was the one that worked for me.
Thanks!
is working on a reply...