Subject:How to calculate maximun RowCount in XSLT Author:Dhanabal Thangavel Date:08 Feb 2008 01:11 AM
Hello,
I have following XML structure:-
<Root>
<Item>
<Row>....</Row>
<Row>....</Row>
...
...
...
</Item>
<Item>
<Row>....</Row>
<Row>....</Row>
...
...
...
</Item>
<Item>
<Row>....</Row>
<Row>....</Row>
...
...
...
</Item>
...
...
...
</Root>
Here i want to know maximum Number of Rows in any 'Item'.
Assumptions: 1)Number of Item is not fixed in XML.
2)Number of Row is not fixed in XML.
Any help or pointer will be appreciated
Subject:How to calculate maximun RowCount in XSLT Author:James Durning Date:08 Feb 2008 10:56 AM
When in a given item, xpath to number of rows: "count(Row)"
Logic: Take the first Item node with the maximum number of rows.
That is, no Item before it has a greater or equal number of rows.
No Item after it has a greater number of rows.