P
prins.henrik
I have the following xml data and would like to format it the following
way with xslt:
1. I need to sort them after there last name (see my example below)
2. I only want to display the main header character (fx. M) if there
are any last names that starts with fx. M
3. I allso need to color every second line under each character
Group..but this is proppery easy so focus on the thing abowe
XML data:
------------------
<root>
<Worker>
<Firstname>Andrew</Firstname>
<Lastname>Pitt</Lastname>
</Worker>
<Worker>
<Firstname>Peter</Firstname>
<Lastname>Michael</Lastname>
</Worker>
<Worker>
<Firstname>John</Firstname>
<Lastname>Allisi</Lastname>
</Worker>
<Worker>
<Firstname>Michael</Firstname>
<Lastname>More</Lastname>
</Worker>
</root>
-----------------
The output should look something like this:
---------------
A - M - P
A
John Allisi
M
Michael More
Peter Michael
P
Andrew Pitt
----------------
way with xslt:
1. I need to sort them after there last name (see my example below)
2. I only want to display the main header character (fx. M) if there
are any last names that starts with fx. M
3. I allso need to color every second line under each character
Group..but this is proppery easy so focus on the thing abowe
XML data:
------------------
<root>
<Worker>
<Firstname>Andrew</Firstname>
<Lastname>Pitt</Lastname>
</Worker>
<Worker>
<Firstname>Peter</Firstname>
<Lastname>Michael</Lastname>
</Worker>
<Worker>
<Firstname>John</Firstname>
<Lastname>Allisi</Lastname>
</Worker>
<Worker>
<Firstname>Michael</Firstname>
<Lastname>More</Lastname>
</Worker>
</root>
-----------------
The output should look something like this:
---------------
A - M - P
A
John Allisi
M
Michael More
Peter Michael
P
Andrew Pitt
----------------