|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
count() question
hello,
i have an XML structure like the following: Code:
<columns>
<column>
<label num="1"/>
</column>
<column>
<label num="3"/>
<label num="2"/>
<label num="1"/>
</column>
<column>
<label num="2"/>
<label num="1"/>
</column>
</columns>
i need to get the maximum number of labels that fall under a column. so, i could either get a count or get the num attribute, it doesn't matter, as long as it returns the number 3. is there a way to do this? thanks. |
|
#2
|
|||
|
|||
|
i figured it out, but will post the answer here for anyone else with the same question:
<xsl:variable name="maxLabels" select="columns/column/label_row[not(../../column/label_row/@num > @num)]/@num"/> thanks ![]() |
|
#3
|
|||
|
|||
|
i also got same doubt
hi
i also got same doubt but unfortunately solution you gave not working to me dont know what mistake i m doing.. can u give me full code pls.. if u could.. thank u with regards niha |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > count() question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|