Difference: 1. XSL is an XML style sheet; CSS is an HTML style sheet. 2. XSL uses a conversion method to convert XML in one format into another; CSS does not contain any conversion actions. 3. The XSL style completely follows the syntax of XML; while CSS has its own syntax, which is very different from the way XML is written.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
CSS (Cascading Style Sheets)
Cascading Style Sheets (full English name: Cascading Style Sheets) is an application used to express HTML (Standard Common Markup Language) ) or XML (a subset of Standard Universal Markup Language). CSS can not only statically modify web pages, but can also cooperate with various scripting languages to dynamically format various elements of web pages.
CSS can perform pixel-level precise control over the layout of element positions in web pages, supports almost all font size styles, and has the ability to edit web page objects and model styles.
XSL (Extensible Stylesheet Language)
The English name of XSL is eXtensible Stylesheet Language, and when translated into Chinese, it is the Extensible Stylesheet Language. It is another style language developed by W3C to represent XML documents. XSL is an application of XML that conforms to XML syntax specifications and can be processed by XML parsers.
XSL is a language that first converts XML documents and then displays the conversion results. The conversion process is based on XML. The document feature runs XSLT (XSL Transformation) to convert the XML document into a tree result with information, and then analyzes the tree according to FO (Formatted Object) to display the XML document.
The difference between css and xsl:
1. CSS (Cascading Style Sheet) = HTML style sheet; XSL (Extended Stylesheet Language) = XML style sheet
2. XSL uses a conversion method to convert XML in one format into another, such as converting Big5 code into UTF-8 code. CSS comes from a completely different concept: it does not contain any conversion actions, and only sets the appearance attributes of each component in the XML file one by one.
The browser will follow the instructions in the CSS style and render the XML file into the set style. No new codes are generated during the entire process. XML combined with CSS, ECMAScript and DOM can create dynamic effects similar to DHTML. XSL transformation is dead and has no interactivity.
3. XSL styles are all XML files and completely follow the syntax of XML. In contrast, CSS has its own syntax, which is very different from the way XML is written.
Learning video sharing: css video tutorial
The above is the detailed content of What is the difference between css and xsl. For more information, please follow other related articles on the PHP Chinese website!