R
R
Hello everybody.
I've got a problem with selecting the maximal value of few counts.
I want to count how many nodes are inside the <group> nodes and select
the maximal value.
Given XML:
<root id="123">
<group>
<field>qwq</field>
<field>lala</field>
</group>
<sample>tekst</sample>
<group>
<sample>qwq</sample>
<sample>lala</sample>
<sample>lala2</sample>
</group>
<field>sth else</field>
</root>
If I do sth like this:
<xsl:variable name="Elements" select="count(root/group/*)"/>
the variable's Elements value is 5 - aggregate 'count' of all nodes
inside all the groups.
how should I write my count statement to select ony the maximal value
of nodes in specific group?
thanks in advance
best regards R
I've got a problem with selecting the maximal value of few counts.
I want to count how many nodes are inside the <group> nodes and select
the maximal value.
Given XML:
<root id="123">
<group>
<field>qwq</field>
<field>lala</field>
</group>
<sample>tekst</sample>
<group>
<sample>qwq</sample>
<sample>lala</sample>
<sample>lala2</sample>
</group>
<field>sth else</field>
</root>
If I do sth like this:
<xsl:variable name="Elements" select="count(root/group/*)"/>
the variable's Elements value is 5 - aggregate 'count' of all nodes
inside all the groups.
how should I write my count statement to select ony the maximal value
of nodes in specific group?
thanks in advance
best regards R