HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Because not all browsers support XSLT, another solution is to complete the conversion to XML on the server of XHTML.
To make XML data applicable to any type of browser, we must be on the server for XML document conversion, and then sent back to the browser as XHMTL.
This is another advantage of XSLT. One of the design goals for XSLT was to make data on the server to convert from one format to another format as possible, to all types of browsers returned readable data.
Look at this in the previous section has shown off an XML document:
And accompanying XSL style sheet:
Please note, the XML file does not contain a reference to the XSL file.
IMPORTANT: The above sentence means, XML files can use several different XSL stylesheets to convert.
It is used on the server to XML files into XHTML source code:
Tip: If you do not know how to write ASP, you can study our ASP tutorial .
First block of code creates an instance of Microsoft's XML parser (XMLDOM) and the XML file into memory. The second paragraph of code creates another instance of the parser, and to this XSL file into memory. The last line of code using the XSL document conversion XML document, and sends the result as XHTML to your browser. Great!