Image Src Question

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
 
T

Thomas Hansen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top