OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   [xml-dev] MSXML 3.0/4.0 XSLT rendering bug

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev <xml-dev@lists.xml.org>
  • Subject: [xml-dev] MSXML 3.0/4.0 XSLT rendering bug
  • From: Jason Kohls <jasonkohls@gmail.com>
  • Date: Wed, 13 Jul 2005 09:52:54 -0400
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=XOmHtC3eU1nIBqd1EKO7qX2JPQjadKCZhFqSRwTWVO4fBF4q9+43qBR3ZEGg6JhG3Jwr/K6+Tc81re7Vf5oJmn29phFqU+2nWUqFWtGhuaTbjoN30eD2z1lse1VUo5L7LylsWRm14kWWnva6t/FUtrGbY7fONGm8TY2lyO/MKNQ=
  • Reply-to: Jason Kohls <jasonkohls@gmail.com>

Hi everyone,

I'm having an issue performing client-side XML to XHTML
transformations using the MSXML 3.0/4.0 parser with IE 6.0.

Specifically, when I'm declaring my javascript and css includes using
XHTML, everything renders fine, in the correct order.  However, when
I'm using the XSL:ELEMENT tag to produce the <link> and <javascript>
XHTML tags, I'm only achieving partial rendering -- the background
image declared in the css is present in the <body> (where it should
be) but no other XHTML appears to be rendered in IE 6.0.

The CSS and JavaScript includes are located on a host thats defined by
an attribute parsed from the source XML file.

I've tried declaring the hostname variable within the XSL file itself;
no dice. I've also tried skipping the variable all together and just
adding the absolute URL to the XSL:ELEMENT href attribute, but to no
avail.  I've even tried placing the CSS file locally in the same
directory as the XML source document and XSL file and still nothing.

Using Stylus Studio Professional for debugging (and double-checking in
native IE 6.0), the "rendered text" view (basically, the transformed
source) appears correct.

FireFox works fine and ditto for Saxon, Xalan, and the other XSL
processors built into Stylus Studio.

Any help would be much appreciated.


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

<foo hostname="http://some_server";>

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" encoding="ISO-8859-1" indent="yes"

<!-- Variables and Constants -->

<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
<xsl:variable name="hostName" select="foo/@hostname" />

<xsl:template match="*">
<html xmlns="http://www.w3.org/1999/xhtml";>
<title><xsl:value-of select="name(child::*[1])"/></title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />

<xsl:element name="link">
<xsl:attribute name="type">text/css</xsl:attribute>
<xsl:attribute name="rel">stylesheet</xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="$hostName"

<xsl:element name="script">
<xsl:attribute name="type">text/javascript</xsl:attribute>
<xsl:attribute name="src"><xsl:value-of select="$hostName"



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS