Thursday, January 27, 2005

Never miss a space.

I was till now, trying XSLT on Firefox.

I used to have a XML generated by a application that had to print the
<?xml-stylesheet type="text/xsl" href="somefile.xsl"?>
that would instruct the application of XSL Transformation on this XML.

I had a tough time to figure a small mistake of not having the space between the type value and href tag. My application would produce
<?xml-stylesheet type="text/xsl"href="somefile.xsl"?>

Firefox would still apply the XSL transformation to this XML. But I found that IE showed the whole document as XML. It was a really hard to figure what went wrong in IE that was perfectly fine in Firefox as it was really too late of the day and I was also looking at some other issue.

Yes, finally I had a zoom in look at the XML rendered in IE and surprisingly found a missing space in between the type tag value and href tag.

Yes, now I fixed the problem by adding a space and IE applied the XSL Transformation perfectly.

Beware, IE looks even for a space to validate :)

Comments:
Informative blog. I have a w3.org 1999 xhtml blog.
 
Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?