Sorry my explaination wasn't good enough let me try again.
Maybe i couldn't have used the row1,row2 etc..
Why i'm transforming this xml to HTML is for printing.
And to print i need to do a page break after for example 10 pages each.(Which means i need test for the index using position() and then apply a page break.
But unfortunately the xml i pasted earlier is not quite straight forward to transform.
The output i'm after is like so below:
Position 1 111111 CJPOWERSD2GB 16.95 15.41 0 0 0
Position 2 Power SD2
Position 3 Aftermarket
Position 4 Power SD2
Position 5 2GB
Position 6 CWTM0029BUCL30
Position 7 Plan
Position 8 Ban:
Position 9 40000602884
Position 10 EXTENDWARR
Position 11 EWDIG2G
Looking at the above you can see the output is line by line i just used the
position 1,position 2 to show you what i'm after as thats what i'll be using to do a page break.
Hope you do understand now. As you said i just need you to advice me on the best approach on this.
Thanks
Quote:
Originally Posted by mhkay
You're not explaining yourself at all well.
Is plan-code always going to be on row 6? If so, the problem is trivial: just output the number 6 when you process plan-code. So I guess it's not that simple. But if it isn't, then you need to explain where the complexity comes.
You're asking me to write code for you. I don't normally do that - I prefer to explain general principles and let you write the code, that way you learn more. But I certainly don't start writing code without a much clearer requirements statement than you have provided.
|