- classic.xsl -- a stylesheet written to emulate the style of the existing HTML version.
- classic.htm -- a very small page of JScript that instructs Internet Explorer 5 to display the XML documents using the new stylesheet.
When you load classic.htm into IE5, one significant problem is apparent: the block of text that should appear as
variableinstead appears as
variablevaluesomeothervariablesomeothervaluebecause whitespace is being stripped. It's fairly well known -- and a cause of much annoyance -- that IE5's XML document object strips whitespace by default. I think the solution is to set
but when I try to do this (you can see the instruction commented out in the source), the file doesn't load.
xml.preserveWhiteSpace = true;
I assume I'll learn more about that when I have chance to look into the resulting status codes. Right now, however, I'm more interested in writing another stylesheet, to display the metadata that I've added to the XML files.