[Webinar] Learn how to a build a cloud-first strategyRegister Now


Getting First Non-Zero Element Value

Posted on 2011-04-19
Medium Priority
Last Modified: 2013-11-18
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.
Question by:Yassar
  • 3
LVL 60

Accepted Solution

Geert Bormans earned 2000 total points
ID: 35424425
<xsl:value-of select="//bunHCID[generate-id() = generate-id(key('od', .)[1])][1]"/>
LVL 60

Expert Comment

by:Geert Bormans
ID: 35424428
but basically this should work too
<xsl:value-of select="(//bunHCID[normalize-space(.)])[1]"/>

Author Closing Comment

ID: 35432080
LVL 60

Expert Comment

by:Geert Bormans
ID: 35432095

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question