«^»
7.3. Use of XSL with XML

Both IE5.5 and M18XSLT can use XSL to process an XML document. You need to insert the following xml-stylesheet processing instruction in your XML document:

<?xml-stylesheet type="text/xsl" href="consumables.xsl"?>

Inconveniently, there are two important differences in the XSL that is understood by IE5.5 and M18XSLT:

  1. IE5.5 requires a rule in the XSL stylesheet for processing the outermost level of an XML document. So IE5.5 needs the extra rule:
    <xsl:template match="/">
       <xsl:apply-templates/>
    </xsl:template>
    
  2. IE5.5 requires the following element to identify the namespace being used:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    
    whereas an M18XSLT XSL document requires:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    

This is because IE5.5 has an old version of Microsoft's XML Parser (MSXML). The WWW page http://www.netcrucible.com/xslt/msxml-faq.htm gives details of how you can obtain Version 3.0 of MSXML (November 2000) and get IE5.5 to use it.

The files http://www.dur.ac.uk/barry.cornelius/java/xml.processing/code/xsl.xml and http://www.dur.ac.uk/barry.cornelius/java/xml.processing/code/consumables.xsl contain the texts that can be used by both M18XSLT and the modified version of IE5.5.