[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem with IExplorer 5.5 and IExplorer 6.0 using Mic

Subject: Problem with IExplorer 5.5 and IExplorer 6.0 using Microsoft.XMLDOM
From: "Amargos Carreras, Albert" <aamargos@xxxxxxxxxxx>
Date: Thu, 24 Apr 2003 16:58:38 +0200
iexplorer 6.0
Hi,

 

I am quite new at xsl and xslt. I have a code wich is working over
WindowsXP and IExplorer 6.0 but it is not over W2000 and IExplorer 5.5.
I think it is very basic, it is taken from Microsoft Web Site, using
Microsoft.XMLDOM.

 

It seems that in the former version of IExplorer it is not included
anything about XSLT, because in the last version it is recognised. If
you execute start.htm with IE6.0 you have a response that you don't have
with IE5.5. 

 

Does anyone know why is it happening this? 

Maybe is a very basic question, I have just started facing these
problems

 

Thanks in advance,

 

Alberto.

 

HTML File (start.htm):

----------------------------------------------------------------------

<html>

<body>

<script language="javascript">

// Load XML 

var xml = new ActiveXObject("Microsoft.XMLDOM")

xml.async = false

xml.load("C:\\Alb\\IntegracionOutlook\\HTML\\customers.xml")

 

// Load the XSL

var xsl = new ActiveXObject("Microsoft.XMLDOM")

xsl.async = false

xsl.load("C:\\Alb\\IntegracionOutlook\\HTML\\script.xsl")

 

// Transform

document.write(xml.transformNode(xsl))

</script>

 

</body>

</html>

----------------------------------------------------------------------

 

XSL File (C:\\Alb\\IntegracionOutlook\\HTML\\script.xsl):

----------------------------------------------------------------------

 

<?xml version='1.0'?>

<xsl:stylesheet version="1.0"

      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

      xmlns:msxsl="urn:schemas-microsoft-com:xslt"

      xmlns:user="http://mycompany.com/mynamespace">

 

<msxsl:script language="JScript" implements-prefix="user">

   function xml(nodelist) {

      return nodelist.nextNode().xml;

   }

</msxsl:script>

 

<xsl:template match="/">

   <xsl:value-of select="user:xml(.)"/>

</xsl:template>

 

</xsl:stylesheet>

----------------------------------------------------------------------

 

XML File (:\\Alb\\IntegracionOutlook\\HTML\\customers.xml)

----------------------------------------------------------------------

 

<?xml version="1.0"?>

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

<customers>

   <customer>

      <name>John Smith</name>

      <address>123 Elm St.</address>

      <phone>(123) 456-7890</phone>

   </customer>

   <customer>

      <name>Mary Jones</name>

      <address>456 Oak Ave.</address>

      <phone>(156) 789-0123</phone>

   </customer>

</customers>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.