Mega Code Archive
Categories
/
XML Tutorial
/
XSLT StyleSheet
Set table cell style with choose statement
File: Data.xml
title 1
element 1
element 2
element 3
element 4
element 5
element 6
element 7
File: Transform.xslt
background: yellow; color: black;
background: blue;
background: white; color: black;
background: black;
Output:
title 1
title 1
element 1
element 2
element 3
element 4
element 5
element 6
element 7