This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Problem with IE5.5 and MSXML4.0
- From: "Andrew Welch" <andrew at thebristoldirectory dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 10 Jan 2002 16:36:35 -0000
- Subject: RE: [xsl] Problem with IE5.5 and MSXML4.0
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
How are you applying the stylesheet to the XML?
cheers
andrew
===
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Belala,
Yacine
Sent: Thursday, January 10, 2002 1:42 PM
To: 'xsl-list@lists.mulberrytech.com'
Subject: [xsl] Problem with IE5.5 and MSXML4.0
I am using the following stylesheet to build and sort a table. It works
fine with IE6 but causes IE5.5 to crash. I am using MSXML4.0 and Win2K (The
updateSort function simply adds the sort field to the XML as an attribute)
Could anyone please help?
Thanks!!
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="changes">
<html>
<body background="../images/bkrnd2.gif">
<p CLASS="header">Changes</p>
<p CLASS="body">
<table border="0" cellpadding="4" cellspacing="1"
width="100%">
<tr>
<td CLASS="boldhead" width="10%"><a href="#"
onClick="top.updateSort('reference_number');">Reference No.</a></td>
<td CLASS="boldhead" width="5%">Trans.
ID</td>
<tr>
<xsl:variable name="selectField" select="@sortBy" />
<xsl:choose>
<xsl:when test="@orderBy = 'ascending'">
<xsl:apply-templates
select="allocation_change">
<xsl:sort
select="*[name()=$selectField]" order="ascending"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="@orderBy = 'descending'">
<xsl:apply-templates
select="allocation_change">
<xsl:sort
select="*[name()=$selectField]" order="descending"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</table>
</p>
</body>
</html>
</xsl:template>
<xsl:template match="allocation_change">
<tr>
<td CLASS="text">
<xsl:value-of
select="reference_number"></xsl:value-of>
</td>
<td CLASS="text" bgcolor="FDE6B5">
<xsl:value-of
select="transaction_id"></xsl:value-of>
<td>
</tr>
</xsl:template>
</xsl:stylesheet>
Yacine Belala
Sr. Technical Consultant
Phone: 412.201.6011
Fax: 412.201.6088
Toll Free: 1.888.790.1744
ybelala@accessdc.com <mailto:ybelala@accessdc.com>
Access Data
Two Chatham Center, 2nd Floor
Pittsburgh, PA 15219
www.accessdc.com <http://www.accessdc.com/>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list