Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
I made up the data for a medical record. There is no patient name shown in my post.
I have tried what you suggested. But nothing happens - a number does not appear in front of the value of each XML element. The output still looks like:
The format that is desired to be displyed is 1. element count number + 2. caret symbol + 3. the value of the XML element; for example:
The XSL code now looks like (a counter number is not inserted in the front of each line of the output):
It is not obvious to me. I am new to all XML related technologies. For adding a numbering, I am thinking along the line of:
but, I still have difficult time to figure it out.
No, no, no. The "clip" template should simply copy the sequence number parameter to the output.
There aren't any XSLT constructs which can work on nodes in the output. And there isn't anything in your input document which can be examined to produce a numbering system (at least not from what I can see from your input document). So the simplest thing is to produce your own sequence numbers, which is anyway trivially simple to do in the sample of XSLT which you posted. You already did half of that by choosing the sequence numbers. The second half is to use them.