Jump to content

displaying a data from xml with certain conditions


pelegk

This topic is 7647 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 7647 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.