It is possible to format XML file to format with CSS as we format HTML files. We can write style definitions for XML in the same way we write stylesheet for HTML. |
Below is an example of how to use a CSS style sheet to format an XML document: |
<?xml version=”1.0″ encoding=”ISO-8859-1″?>
<?xml-stylesheet type=”text/css” href=”xml_css.css”?> <!– DTD declration –> <CSITQuestion> |
The second line, <?xml-stylesheet type=”text/css” href=”xml_css.css?>, links the XML file to the CSS file, that containts the following code: |
/* CSS to format XML document*/ ebiz { border: #000099 thin solid; width:500; height:400; /*background-color:cyan;*/ margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; } tutorial category description title sub_category br launch_date |