Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6235077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:36:28+00:00 2026-05-24T10:36:28+00:00

I am using classic ASP. I have a stylesheet that is loaded into RAM

  • 0

I am using classic ASP. I have a stylesheet that is loaded into RAM already. What my problem is, is my XSLT has an

<xsl:include href="../path to file/file.xslt" /> 

in it.

When I load it from RAM into an IXMLDOMDocument object the relative path is thrown way off. Here is my current code

set XSLTObj = Server.CreateObject("Msxml2.XSLTemplate")
set XSLTObj.stylesheet = myXSLTFile
set XSLTProc = XSLTObj.createProcessor

Now since the XSLT file is loaded from RAM the computer doesn’t know how to figure out the relative path for the xsl:include tag. So it attempts to pull the file from here:
C:\windows\system32\inetsrv

I really just need a way to set a “default path” or simulate it somehow. A couple of options I have thought of (that I don’t really want to do) are:

  • Save the XSLT file to disc where I want it, then use XSLTObj.load
  • Load a “dummy” XSLT file from where I want my path to be, then replace the contents with the XSLT contents that’s in RAM

I would really perfer some way to set the path I want it to use instead though. Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:36:28+00:00Added an answer on May 24, 2026 at 10:36 am

    I ended up doing the second of my options on the list. I loaded an XSLT file that was saved at a spot where I was wanting my relative pathing to be based off of. I then ran removeChild commands on every child inside the document object. Then I did a cloneNode followed by an appendChild for every child that was in the XSLT in RAM.

    I’m not sure if it was the best route performance wise but it accomplished what I was looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using classic asp, I have a drop down list that the user selects
I'm using VBScript (ASP Classic) and SQL Server; I'm trying to have a section
I am using Classic asp and SQL Server 2005. This is code that works
After many many years of using Classic ASP, I am attempting to delve into
I have setup AzMan and have a few classic ASP sites that I would
There are a lot of webs still using classic ASP instead of ASP.NET but
I'm creating a GUID for use in a Classic ASP application, by using TypeLib.
I'm using Server.HtmlEncode on a utf-8 string in asp-classic, which works fine until there
What options are there in ASP Classic for error handling? For example: I'm using
Using ASP.NET MVC there are situations (such as form submission) that may require a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.