XML, XSL, CSS attribute issue
am 16.01.2008 07:50:42 von pradeepI have a following XML file, XSL file and CSS file.
I am facing one problem , that ITEM rows are not displayed in proper
color (RED) as mentioned in css file for .row1...... Same thing works
well if the table is created in
work for table created in
------------------------------------------------------------ ------------------------------------------
XML file ( name myxml.xml)
------------------------------------------------------------ ------------------------------------------
------------------------------------------------------------ ------------------------------------------
XSL file ( name myxsl.xsl)
------------------------------------------------------------ ------------------------------------------
A
B
1
2
3
4
Name
Price
Location
------------------------------------------------------------ ------------------------------------------
CSS file ( name mycss.css)
------------------------------------------------------------ ------------------------------------------
html body {
line-height:1.55em;
font-family:"Lucida Grande", verdana, lucida, helvetica, sans-serif;
margin:0;
padding:0;
font-size:x-small;
font-size:small;
}
table
{
display: table;
border-collapse:collapse;
empty-cells:show;
border-top:1px solid #ccc;
border-right:1px solid #ccc;
border-left:1px solid #ccc;
border-bottom:1px solid #ccc;
}
tr {
display: table-row;
}
..row0 {
background-color:yellow;
color:#1559B3;
}
..row1 {
background-color:red;
color:#1559B3;
}
td {
display: table-cell;
border-top:1px solid #ccc;
border-right:1px solid #ccc;
border-left:1px solid #ccc;
border-bottom:1px solid #ccc;
}
th {
display: table-cell;
border-top:1px solid #ccc;
border-right:1px solid #ccc;
border-left:1px solid #ccc;
border-bottom:1px solid #ccc;
font-weight: 700;
background-color:#99cccc;
}
If you have any idea about this issue, please do reply....