Attaching an XSL style sheet to an XML document is easy.
Simply insert an xml-stylesheet
processing
instruction in the prolog immediately after the XML
declaration. This processing instruction should have a
type
attribute with the value
text/xsl
and an href
attribute
whose value is a URL pointing to the style sheet. For
example:
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="14-2.xsl"?>
This is also how you attach a CSS style sheet to a
document. The only difference here is that the
type
attribute has the value
text/xsl
instead of text/css
.