XSLT: grouping by value

Renagade24

New Member
I want to group the below xml by using xslt when integer = '4' and then loop through each dict, check whether the each element has integer = 5 and then variable should be set to pass only .And also if any of integer value is 7 and status to be fail.Any suggestion please ?\[code\]<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList1.0.dtd"><plist version="1.0"><dict><key>All Samples</key><array><dict><key>LogType</key><string>Start</string><key>Message</key><string>START:Certificate and Genre filter tests</string><key>Timestamp</key><date>2012-06-25T10:49:02Z</date><key>Type</key><integer>4</integer></dict><dict><key>LogType</key><string>Pass</string><key>Message</key><string>Navigation title bar should contain genre in card view : ACTION & ADVENTURE</string><key>Timestamp</key><date>2012-06-25T10:49:13Z</date><key>Type</key><integer>5</integer></dict><dict><key>LogType</key><string>Pass</string><key>Message</key><string>START: certificate tests filter tests</string><key>Timestamp</key><date>2012-06-25T10:49:02Z</date><key>Type</key><integer>4</integer></dict><dict><key>LogType</key><string>Pass</string><key>Message</key><string>Navigation title bar should contain genre in card view : ACTION & ADVENTURE</string><key>Timestamp</key><date>2012-06-25T10:49:13Z</date><key>Type</key><integer>5</integer></dict><dict><key>LogType</key><string>Fail</string><key>Message</key><string>Navigation title bar should contain genre in card view : ACTION & ADVENTURE</string><key>Timestamp</key><date>2012-06-25T10:49:13Z</date><key>Type</key><integer>7</integer></dict></array></dict></plist>expected result in table view with format| Test Name | test steps | Test result|START : GENRE FILTER TEST | | FAIL ( background color to red)test step1 | Navigation title bar should contain genre in card view | PASStest step2 | Navigation title bar should contain genre in card view | FAIL|START : certificate tests filter tests | | PASS ( background color to green)|test step 1 | Navigation title bar should contain genre in card view | PASS\[/code\]thanks,bob
 
Back
Top