Answer the question
In order to leave comments, you need to log in
Outputting the first non-null value from an xslt array?
Hello. I have a set of values
"<xsl:value-of select="$item//property[@name='название_свойства']/value" />"
"<xsl:value-of select="$item//property[@name='название_свойства2']/value" />"
....
"<xsl:value-of select="$item//property[@name='название_свойства15']/value" />"
Answer the question
In order to leave comments, you need to log in
Here is the solution
<xsl:apply-templates select="($item//property[@name='bla17']/value | $item//property[@name='cena2']/value | $item//property[@name='bla']/value)[not (. = 0)][1]" />
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question