xsl-list
[Top] [All Lists]

Re: [xsl] Problem with count iterate values

2009-09-17 06:10:31
J23 wrote:

<elements>
        <Row Nr="1">
                <value>1</value>
                <code>22</code>
        </Row>
        <Row Nr="2">
                <value>1</value>
                <code>1</code>
        </Row>
        
        <Row Nr="3">
                <value>2</value>
                <code>2</code>
        </Row>
        <Row Nr="4">
                <value>1</value>
                <code>2</code>
        </Row>
        <Row Nr="5">
                <value>44</value>
                <code>2</code>
        </Row>
        <Row Nr="6">
                <value>1</value>
                <code>0</code>
        </Row>
</elements>
expected output:
4 times the same value in file: 0 values

Why is that the expected output? The 'Row' elements with 'Nr' 1, 2, 4, 6 all have a 'value' child element with contents '1'.
Shouldn't that result in
  4 times the same value in file: 1 value
?



--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--