Loading ...
Sorry, an error occurred while loading the content.

retrieve to display graphic (urgently) pls help

Expand Messages
  • funnix@yahoo.com
    Message 1 of 1 , May 24 2:28 AM
    • 0 Attachment
      <xsl:template match="FIGURE/GRAPHIC" name="Graphic" mode="table">
      <xsl:variable name="height">
      <xsl:number value="@pich div 30"/>
      </xsl:variable>
      <xsl:variable name="width">
      <xsl:number value="@picw div 30"/>
      </xsl:variable>
      <xsl:param name="path-string"/>
      <xsl:variable name="clean-path">
      <xsl:choose>
      <xsl:when test="contains(@name, ' \ \ ') or contains
      (@name, '\\')">
      <xsl:call-template name="process-path-string">
      <xsl:with-param name="path-string" select="@name"/>
      </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
      <xsl:value-of select="@name"/>
      </xsl:otherwise>
      </xsl:choose>
      </xsl:variable>
      <fo:block>
      <fo:external-graphic href="{$clean-path}" text-align="left"
      height="{$height}pt" width="{$width}pt" max-height="{$height}pt" max-
      width="{$width}pt"/>
      </fo:block>
      </xsl:template>

      i think i am able to get the link of the image however it is not able
      to be display when i generate it in a rich text format.
      i think is due to the height and width..etc....hence can you pls help
      me?

      thanks and regards
    Your message has been successfully submitted and would be delivered to recipients shortly.