Now in XML Tutorial we will learn how to display an XML document like web page and for this requirement we will use
XSL (eXtensible Stylesheet Language).
As we know that
XSL is more comprehensive as compare to
CSS because it was designed or developed for only XML an as we know the
CSS is
specially use for
HTML transformation.
Now we are going to use
XSL for the transformation of an XML document.
Just like in
HTML we will follow the same as we followed in
CSS we will add the
XSL reference in XML document on top and after that
we will start the XML root element. On execution of XML document web browser when read the
XSL
reference web browser will transform the entire XML document with given XSL path.
Now give attention to the XML
of above
employees here.
That was final touch step on simple raw
XML here with out XSL. The
main controller for this raw XML in to well formatted output is the
employees XSL
document.