AnsweredAssumed Answered

how to map the image in html file

Question asked by amitbhardwaj on Jul 14, 2008
Latest reply on Jul 15, 2008 by amitbhardwaj
hi friends
I am new to alfresco and i am facing some difficulty in it that is.
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  image which is in root ,and click next every thing is ok but

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

my XSD file is
<?xml version="1.0"?>

<xs:schema xmlns:xs=""

   <!– defines the form for creating a navigation hierarchy –>
   <xs:element name="Template1">
            <xs:element name="Author" type="xs:normalizedString" />
            <xs:element name="Description" type="xs:string"/>
            <xs:element name="Image" type="xs:anyURI"/>

my xsl file is
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xhtml=""
   xmlns:fn="" exclude-result-prefixes="xhtml">
   <xsl:output method="html" encoding="UTF-8" indent="yes"
      doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"

   <xsl:preserve-space elements="*"/>

   <xsl:template match="/">
                   <xsl:value-of select="/nf:Template1/nf:Author"/>
         <td colspan="2">
            <xsl:value-of select="/nf:Template1/nf:Description" disable-output-escaping="yes"/>
                   <img alt="abc">
              <xsl:attribute name="src">
                   <xsl:value-of select="concat($alf:request_context_path,./container/header_image)"/>


please help me
thanks in advance