I just upgraded from 4.0.4 to 4.5.2 and have some problems with the
xslt.
What I try to do is to make a for-each based on nodeName.
I have n nodes with the same doctype (folder) Under I have n nodes
with the same doctype (publications)
How to make a for-each that list all the publications based on
nodeName as a parameter from the macro?
Here is the old XSLT: <xsl:for-each select="$currentPage/node
[@nodeName=$columnName]/node [@nodeTypeAlias='publication']">
I thought mybe the new one should looks something like this:
<xsl:for-each select="$currentPage
[@nodename=$columnName]/publication"> or <xsl:for-each
select="$currentPage/ancestor-or-self::*[@isDoc and
@nodeName=$columnName]/publication">
Xslt prblems from 4.0.4 to 4.5.2
Hi,
I just upgraded from 4.0.4 to 4.5.2 and have some problems with the xslt.
What I try to do is to make a for-each based on nodeName.
I have n nodes with the same doctype (folder)
Under I have n nodes with the same doctype (publications)
How to make a for-each that list all the publications based on nodeName as a parameter from the macro?
Here is the old XSLT:
<xsl:for-each select="$currentPage/node [@nodeName=$columnName]/node [@nodeTypeAlias='publication']">
I thought mybe the new one should looks something like this:
<xsl:for-each select="$currentPage [@nodename=$columnName]/publication">
or
<xsl:for-each select="$currentPage/ancestor-or-self::*[@isDoc and @nodeName=$columnName]/publication">
Thanks in advance!
Hi Terje,
You are pretty much there. I'd go with the following:
Notice the casing of "@nodeName". Might need a little re-working on the starting node - that is if it's not the $currentPage.
Cheers, Lee.
perfect! :)
Thanks a lot!
is working on a reply...