Skip to main content

Anoying XSLT Error

Had a nasty error in using an XSLT today. I was attempting to perform a transform but before I got that far, I kept getting an error, specifically when trying to set the stylesheet property of the xsl template object.
dim xslt, xmltempl
set xslt = Server.CreateObject("Msxml2.FreeThreadedDOMDocument")
xslt.async = false
xslt.load Server.MapPath("my.xsl")
set xmltempl = Server.CreateObject("Msxml2.XSLTemplate")
set xmltempl.stylesheet = xslt
The error I kept getting was "The system cannot locate the object specified" and I kept getting it right at the last line. I would then use my debugger to browse the xslt object and see that all the xml for that stylesheet was loading just fine as expected. I was very confused and spent a considerable amount of time trying to fix it.
Thankfully a colleague had a suggestion and to make a potentially long story short, the issue was that the xslt I was trying to import was trying to include a file that didn't exist. Unfortunately, MSXML wasn't very verbose in complaining about the error and the transform was actually happening server-side so I didn't get to see a failed HTTP request in Fiddler.
I originally tried searching for this error but results were sparse at best. That's why I'm adding this to my blog. Hopefully it will be properly indexed by search engines and that one person who ends up having the same problem as I will stumble upon this post and their answer will be solved :) .


Popular posts from this blog

Quick Setup Using JSPM

Cross post from my employer's development blog:
Want to use JSPM rather than Bower for running the example? Follow these steps. This is basically a duplicate of the [Getting Started tutorial][tutorial] on the [ website][website] but using a really simple JSPM setup. This is a very crude guide where I list everything I had to do to get things running.

Create an empty project folder npm install Copy server code verbatim from the Getting Started guide jspm install Hit enter for all the prompts from JSPM

We’re going to modify the client side code a little bit. We have native support for ES6 compiling with JSPM/Babel so we can import the Deepstream client directly:

import deepstream from ''; let ds = deepstream( 'localhost:6020' ).login();

let record = ds.record.getRecord( 'someUser' );

let input = document.querySelector( 'inp…

Atari E3 2004 PAL digital press kit

Making note of some old swag. The Atari E3 2004 PAL digital press kit. See video for details.

Fancy FTP Deployment with Grunt

I recently dove into Grunt.js at work for automating our build process and I haven’t looked back. It’s an awesome tool with a plug-in for just about anything. I expected the usual would be there like JavaScript minification and concatenation, but I was surprised at a few others that I found, one being for FTP file deployment. Just shows how popular and community supported Grunt is.

There are a few FTP plug-ins available for Grunt. I didn’t do an analysis of all of them but ran across grunt-ftp-push which seemed to do what I needed so I decided to try it out. A simple ftp-push setup to upload an entire project via FTP could look like this:

Some details here: I opted to put the username and password in the main config rather than using an .ftpauth file. The …