Getting First Non-Zero Element Value

I was wondering that how can we  display first non zero bunHCID value along with count. Kindly look into related questions for XML and XSLT details.
YassarAsked:
Who is Participating?
 
Geert BormansInformation ArchitectCommented:
<xsl:value-of select="//bunHCID[generate-id() = generate-id(key('od', .)[1])][1]"/>
0
 
Geert BormansInformation ArchitectCommented:
but basically this should work too
<xsl:value-of select="(//bunHCID[normalize-space(.)])[1]"/>
0
 
YassarAuthor Commented:
Thanks
0
 
Geert BormansInformation ArchitectCommented:
welcome
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.