Using XSLT to view graphical poll results
How I came to this is not relevant I think, so I will jump straight to the examples. The idea was to convert an XML document to produce graphical output. So I set out to do it – and it was finally done using an XSLT stylesheet. The idea is quite basic. Count the number of ‘I agree’ responses and store it in a variable. Count the number of ‘I disagree’ responses and store it into another variable, and so on… Once that’s done, the count values are multiplied with the expansion factor (variable: efactor) and this number is set to the height of a div element. That’s all. Let’s all resolute to producing a standardized web!
Comments
Came here from LinkedIn or X? Join the conversation below — all discussion lives here.