CSS and XML
XML concentrates more on the content of the data and CSS on presentation. The technology of Extended Style sheet ( XSL) can format the content of an xml document in multiple ways, for example contents of an xml document can be sorted on the order of a particular element; An xml document can be transformed into an sql file which can be executed against a database and so on.
One of the main tasks that the XSL performs is to transform an XML document into an HTML document. this way an XML document can be displayed in a browser in similar manner as an HTML document.Once we apply an XSL style sheet to an XML document it transforms it into an HTML document. Now a CSS style sheet can be applied on the generated HTML document to generate the required formatted output.
Please note that CSS and XSL both are style sheet technologies, but their usage is different. XSL works with XML and CSS works with HTML. also, If an XML document is not being transformed into an HTML document , for example it may be transformed into SQL document, than the CSS has no role to play there.
Comments
Post a Comment