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 :)
Have tried to get an XSLT field recursivly - but no succes, tried this code: any ideas..
<xsl:value-of select="$currentPage/ancestor-or-self::node [string(data[@alias='pageDescription'])!=''] [position()=last()] /data[@alias='pageDescription']"/>
Thanks in advance!
Thomas
Hi Thomas,
It's not totally far off, but it's written for the "legacy XML schema" (and there it will take the value from the furthest ancestor - not the closest).
Here's an updated version:
<xsl:value-of select="$currentPage/ancestor-or-self::*[normalize-space(pageDescription)][1]/pageDescription" />
(If you still need it to be the old format - use this:)
<xsl:value-of select="$currentPage/ancestor-or-self::node[normalize-space(data[@alias = 'pageDescription'])][1]/data[@alias = 'pageDescription']" />
/Chriztian
Thank you so much :) solved my problem
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
Recursive field in XSLT
Hi :)
Have tried to get an XSLT field recursivly - but no succes, tried this code: any ideas..
<xsl:value-of select="$currentPage/ancestor-or-self::node [string(data[@alias='pageDescription'])!=''] [position()=last()] /data[@alias='pageDescription']"/>
Thanks in advance!
Thomas
Hi Thomas,
It's not totally far off, but it's written for the "legacy XML schema" (and there it will take the value from the furthest ancestor - not the closest).
Here's an updated version:
(If you still need it to be the old format - use this:)
/Chriztian
Thank you so much :) solved my problem
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.