Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 2nd, 2007, 10:09 AM
Registered User
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default Count empty leaf

Hi I would like a way to count the empty leaf (in xslt transformation)
by example
<A>
  <b1>
    <c>xxx</c>
    <c>xxx</c>
    <c>xxx</c>
  </b1>
  <b2>
    <c/>
  </b2>
</A>
<B>
  <b1>
    <c>xxx</c>
  </b1>
  <b2>
    <c/>
  </b2>
  <b3>
    <c/>
  </b3>
</B>

--> I need this results :
<A> have 3 <c> plus 1 empty <c> for a total of 4
<B> have 1 <c> plus 2 empty <c> for a total of 3

Thanks







Similar Threads
Thread Thread Starter Forum Replies Last Post
Aggreagation of leaf node values in BSM 2005 chary SharePoint Development 0 September 19th, 2007 06:43 AM
Counting leaf nodes by transforming their value dmorin XSLT 3 June 29th, 2007 04:58 AM
is there any in built function to count page count g.tamilselvan MySQL 1 February 15th, 2006 07:43 AM
How to count all empty fields in Biztalk biztalkuser Biztalk 0 January 4th, 2006 07:37 AM
Count, sum, count a value, return records CongoGrey Access 1 April 18th, 2005 02:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.