Internet Explorer and XML Data Islands

The Internet Explorer supports a special tag, <XML>, that you can use to create XML islands. An XML island can enclose either straight XML or a reference to an XML document. For more on XML islands and how to create them, see Chapter 7 in Inside XML.

XML islands make it easy to load XML and XSL documents, so they’re worth taking a look at here. In the following example, I create two XML islands, sourceDocument and stylesheet, and load planets.xml and planets.xsl just by referring to them with the src attribute:

<HTML> 
    <HEAD> 
        <TITLE> 
            The Planets Table 
        </TITLE> 

        <XML id="sourceDocument" src="planets.xml"></XML> 
        <XML id="stylesheet" src="planets.xsl"></XML> 
        . 
        . 
        . 

Now all I have to do to perform the XSLT transformation ...

Get Inside XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.