I am able to sum all fields with position 1, but I want only to display this position 1 one time in the transformed xml file. It should look like this: <position>1</position> <quan>30</quan> <position>2</position> <quan>50</quan>
But it look like this: <position>1</position> <quan>30</quan> <position>2</position> <quan>50</quan> <position>1</position> <quan>30</quan>
Is it possible to "say" in the xslt file to only print the position 1 only one time?
Q. How to ask an XSLT question? A: The easiest way to get answer real quick is post the original xml source, then post what you want to get the xml/html result. Of course, make it simple, and illustrate the point you want to solve only. Then your own approach which does not work as you desired. Many brain exercisers will solve your problem quickly. The answer will help others too.
* Do not throw the entire document here * Do your own homework! * Simplify the part you have problem with. Abstraction is a basic skill for programmers. * Make both source and result well-formed XML. * During this process, you might solve your own problem. * If not, post a good question on a public forum.