I am having problems applying xsl:choose in my xslt document, trying to transform xml to html. The xml document looks like this (it's german)
and so on... now, in my html document I created a table that shows the moviename (Filmtitel) and then the title of the review (Reviewtitel) - with that I want, that in the background color of the table, where the review title is, you can see how good or how bad a person rated this movie. Therefore - if it's rated "good" - points 7-10 out of ten, the backgroundcolor will be green, if it's rated average 4-7 points out of ten the backgroundcolor will be yellow and if someone didn't enjoy this movie and rated it with 1-3 out of 10 points the backgroundcolor of the review title will be red.
I am afraid that i cannot make this work because I want to relate the element "Reviewtitel" with the element "Bewertung" to both show in the same table space - Reviewtitel shows the words that belong to that element but with the backgroundcolor I relate to it with xsl:choose out of the element Bewertung.
This is my xslt document so far
Any suggestions?
I am really a bloody beginner to xslt and stuff but whenever i tried to make it work, the table input with the name of the review disappeared completely.