Image Src Question

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

Hi,

I have a folder in my web application folder that contains all of my images
for my site. I also have a folder called transforms in my web application
folder that holds my xsl files. My xsl files use images from my images
folder and right now I have hard coded the url to the image. I use
images/... for my web pages and I have tried ~/images/... and ..//images/.
How can I access my images from inside of transforms folder?

WebApp
-images
-transforms
 
Hi,

I have a folder in my web application folder that contains all of my images
for my site. I also have a folder called transforms in my web application
folder that holds my xsl files. My xsl files use images from my images
folder and right now I have hard coded the url to the image. I use
images/... for my web pages and I have tried ~/images/... and ..//images/.
How can I access my images from inside of transforms folder?

The tilde operator (~) is a .Net thing and has nothing to do with the
web, http or XML/XSLT...
Set the base element in your head section of the HTML and use "/" to
denote that you need to go from "root" of your application (starts at
base)

..t
 
Back
Top