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

RE: why dosen't it read the xml info?

Subject: RE: why dosen't it read the xml info?
From: paulo.gaspar@xxxxxxxxxxxx
Date: Mon, 5 Jun 2000 05:40:05 -0700
read xml vbs
I hope you are using the May 2000 release of the 
Microsoft XML Parser Technology Preview. If you are not,
get it at:
http://msdn.microsoft.com/downloads/webtechnology/xml/msxml.asp
because it is the one with better support to the current
XSLT standard. It also looks less buggy that the March and
May editions.

With this last "Technology Preview" editions of the MSXML
parser I have been using the following namespace:
  "http://www.w3.org/1999/XSL/Transform"
as in:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
/>
And this one works great for me.

Also, in order to ensure the use of the "Technology Preview"
edition of MSXML, I am using the different object
identifiers. I would use "MSXML2.DOMDocument" instead
of "Microsoft.XMLDOM" (which does not work in my system).
So, you could try to replace the
  Server.CreateObject("Microsoft.XMLDOM")
calls by
  Server.CreateObject("MSXML2.DOMDocument")


Anyway, you should try to run your code in a stand alone
script before placing it in a ASP. You can do it if you
have MS Scripting host installed in your PC. 
(Take a look at http://msdn.microsoft.com/scripting/)

It is much easier to test and debug a stand alone script
than ASP and most code behaves the same.

If you have it, you can run a stand alone script (in a file
"MyVbScript.vbs") from the command prompt just like this:
  WScript MyVbScript.vbs

Another tip... consider caching your processed XSL templates
in ASP Server Variables. It should make things quite faster
even if it makes at the cost of some complexity. 

At least, Microsoft advises it in some MSXML SDK samples.

I use a similar technique, where the code would be quite
similar (meaning you can ask further questions if you are
interested) but my server code is ISAPI based (a DLL
"hanging" on the server). I am not sure about the
performance cost of storing stuff in ASP Server Variables, although
I red that it can exist in some specific cases.
You should get better informed than me on that or just make
a performance test.

In my case, it also works great to cache the parsed DOMs
of the larger and most used static XML documents, of course.

Of course that all this involves downloading the (rather
small) MSXML SDK and going trough the documentation, paying
attention to the usage of the FreeThreadedDOMDocument,
XSLTemplate and XSLProcessor objects.


Have fun,

Paulo

--- Original Message ---
YonitL@xxxxxxxxxxx Wrote on 
Mon, 5 Jun 2000 07:13:07 +0200 
 ------------------ 
Hello!

I wrote the following code and i would like to use varaiables
etc. 
so i've changed the xmlns:xsl how ever now it doesn't read the
value-of
select.
please help.

the xsl file:
<?xml version="1.0" encoding="ISO-8859-8"?>
<!--xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/xslt"-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">

....

-----
Sent using MailStart.com ( http://MailStart.Com/welcome.html )
The FREE way to access your mailbox via any web browser, anywhere!


 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.