Tuesday, 24 February 2015

How to include CSS file in the XSLT



So I have a CSS file like below



.table_class1DeffCell
{
border-top-width : 1;
border-left-width : 1;
border-right-width : 1;
border-bottom-width : 1;
}
.table_class11DeffCell
{
border-bottom-color : 000000;
border-top-color : 000000;
border-right-color : 000000;
border-left-color : 000000;
border-top-style : solid;
border-left-style : solid;
border-right-style : solid;
border-bottom-style : solid;
border-top-width : 1;
border-left-width : 1;
border-right-width : 1;
border-bottom-width : 1;
}
.table_class24DeffCell
{
border-bottom-color : 000000;
border-top-color : 000000;
border-right-color : 000000;
border-left-color : 000000;
border-top-style : solid;
border-left-style : solid;
border-right-style : solid;
border-bottom-style : solid;
border-top-width : 1;
border-left-width : 1;
border-right-width : 1;
border-bottom-width : 1;
}

.text_class40
{
font-style : italic;
}

.text_class41
{
font-weight : bold;
}

.image_class42
{
}


And in the HTML it was linked like below



<link rel="stylesheet" type="text/css" href="FormatingProblem.css"></link>


in the HTML BOLD and Italics works correctly because of linking the CSS file.


Actually I am converting HTML file to Word document, in the case i cant do these BOLD and Italics.


My question is How to link this CSS file to the XSLT file or How we can do the BOLD and Italics in the XSLT using this CSS file?


No comments:

Post a Comment