XSLT is not like CSS.
CSS details how this markup is displayed on this medium (on screen, on paper, on speakers, etc.).
XSLT turns one XML document into another document (XML, HTML, or plain text, most often XML or HTML).
XSL more generally began with more CSS-like goals to describe in detail how an XML document should be presented. This project has grown into several different projects with XSL-FO serving this role, and XSLT does the transformations mentioned above. It was originally designed to help with XSL-FO (XSLT would turn some XML into XSL-FO, which would detail rendering), but now has many uses outside of it, so it makes sense to separate it.
CSS can be used directly in XML, so the closest thing to CSS in the XML world is CSS.
source share