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,
As part of a more complex macro I'm trying to return all data from a node where the the property name begins with either 'imageThumb' or 'imageLarge'.
It works to do this:
<xsl:for-each select="$currentPage/*[starts-with(name(), 'imageThumb')]">
But not this:
<xsl:for-each select="$currentPage/*[starts-with(name(), 'imageThumb') | starts-with(name(), 'imageLarge')]">
Can anyone suggest an alternative approach?
Thanks
Dan,
The XSLT OR condition is or (the word) rather than the pipe character.
Thanks Richard. Can't believe I just did that! H5IS!!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Conditional in apply-template select
Hi,
As part of a more complex macro I'm trying to return all data from a node where the the property name begins with either 'imageThumb' or 'imageLarge'.
It works to do this:
<xsl:for-each select="$currentPage/*[starts-with(name(), 'imageThumb')]">
But not this:
<xsl:for-each select="$currentPage/*[starts-with(name(), 'imageThumb') | starts-with(name(), 'imageLarge')]">
Can anyone suggest an alternative approach?
Thanks
Dan,
The XSLT OR condition is or (the word) rather than the pipe character.
Thanks Richard. Can't believe I just did that! H5IS!!
is working on a reply...