Hi, List,
The program I'm working on now generates some HTML server-side (by doing an XSLT transformation on an XML doc) and then sends it back to the client. The generated page includes references to some css stylesheets. However, the references do not resolve because they are relative to apache's html directory, but they are *interpreted* as being relative to the cgi-bin directory.


In the past, I have usually gotten around this by using a <base> tag in the generated html. However, this program needs to run on several different servers, which will have different domain names and different html directory names ("htdocs" in some cases, "html" in others, etc.) Is there any way (short of me setting a variable somewhere and manipulating it in my code) to indicate that a path is relative to the html root (whatever that may be called)? I tried using a leading slash on my stylesheet path, but that didn't work ... I tried Googling, but came up empty ...

Any suggestions much appreciated!

Amanda Birmingham
Web Application Developer


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub


________________ http://www.wdvl.com _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.



Reply via email to