This is weird

Here’s something I discovered while making an XSLT file for transforming some XML data into a CDF file. I wanted to view the .xslt file in IE to see if it was well-formed. Nothing showed in the browser????


So, when reducing the problem I found the following, which you can try yourself. Create a new text file with an .xslt extension and type or copy this fragment:



<xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform>


  <xsl:template match=/>


    <CHANNEL/>


  </xsl:template>


</xsl:stylesheet>


It’s the combination of a .xslt file extension and the CHANNEL element. Try changing the extension to .xml and it shows in IE. Change the name of the CHANNEL element (into CHANNE for example) and it shows in IE.


Anyone for an explanation?

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s