Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About Den-J

  • Rank
  1. Thank you so much! Your wild guess was just the thing I needed !!
  2. Well yes, I do recursion because I cannot do a for loop with xsl like for i = 1; last element of bweight ; i++ do that and thatend loop I want to count the amount node when bweight and nweight is zero. I have a counter $i for accessing each node like in a for loop
  3. The input but like pseudo code: <html><head><title>Hi world !</title></head><body><form name="Form1" method="post" action="some stuff" id="Form1"> <p></p> <table width="900px" cellspacing="2" cellpadding="1" border="0"> <tr> <td id="1" width="40px">a ball</td> <td id="2" width="40px">a pin</td> <td id="3" width="*">a sword</td> <td id="4" width="*"> </td> <!--some comment--> <!--some comment--> <!--some comment--> <td id="amount"
  4. Hi all, I have a problem with xsl and recursions..My input is a html file, I use xsl 1.0. My goal is to sum up fields (<td>) from a html table if a condition is true. The problem: The function calls itself after it was at the xsl:otherwise statement (please look at totalPackages function) E.g. I have 10 fields where on three fields the conditions fits(<xsl:if test = "number($bweight[$i]) = '0'" > <xsl:if test = "number($nweight[$i]) = '0'" >)The sum should be e.g. 10 + 6 + 12 = 28 As result I get = 28282828 After debugging with xml spy I found out that the recursion calls i
  • Create New...