June 12, 200322 yr i have this code : <xsl:template match="/"> <table dir="rtl" align="center" border="1"> <tr> <td class="text14" width="180"> <b><font color="blue">name</font></b> </td> <td class="text14" width="180"> <b><font color="blue">type</font></b> </td> </tr> <xsl:for-each select="//ROOT/item"> i dont know what to write next -->> what i want is to run with th loop only on the elements that say there value is "3" and not to go all over the xml and start to check each 1!!! is it possible?how? thnaks in advance Peleg
June 12, 200322 yr Sorry, you will have to loop thru all of it as you have to do in any programming language. You can use the xsl:key function to write a more elegant (and faster) XSL, but the basic logic behind is the same: the program has to run thru all values to evaluate them.
Create an account or sign in to comment