AnsweredAssumed Answered

How to map images from My sandbox -> ROOT

Question asked by preetpalsinghbindra on Jul 26, 2007
Latest reply on Apr 19, 2012 by anik
Hi,

I have added a gif image ( abc.gif ) in Web Projects -> ProjectA -> My sandbox -> ROOT folder

I have used xsd and xsl to create a webform. I have captured data using the web form, which gave me an HTML and an xml output. While capturing data in the webform i selected the same image ( abc.gif ) the path of which comes to be /abc.gif.

I am unable to see the gif in the generated html.



I have tried the folowing variables as <variable>/abc.gif in the xsl code.

The code snippet in the xsl is:
*******************************************
<xsl:variable name="header1" > <xsl:value-of select="$alf:parent_path" /> </xsl:variable>
<xsl:variable name="header" > <xsl:value-of select=".//container/header_image" /> </xsl:variable>
<img src="{$header1}{$header}" alt="abc" />
*******************************************


I have also tried using the $alf:parent_path variable, output of which comes to be:
dscp1039–admin–preview:/www/avm_webapps/ROOT/abc.gif

I have also tried using the $alf:avm_sandbox_url variable, output of which comes to be:
http://preview.admin.dscp1039.www--sandbox.127-0-0-1.ip.alfrescodemo.net:8180/abc.gif

still i am unable to view the image.

can anyone help?

thanx in advance.

Outcomes