Wednesday, 17 April 2024

Image Logo in RTF xml Publisher

1) URL Reference

  Insert a dummy image in the template.

  Insert in the format picture dialog box select the web tab.

  Enter the following syntax in the Alternative text region to reference the image URL:

   url:{'http://image location'}

eg : url:{'http://www.oracle.com/images/ora_logo.gif'}


2)OA Media Directory Reference

 Insert a dummy image in the template.

  Insert in the format picture dialog box select the web tab.

  Enter the following syntax in the Alternative text region to reference the OA_MEDIA directory:

    url:{'{OA_MEDIA}/IMAGE_FILE'}

eg : url:{{OA_MEDIA}/ORACLE_LOGO.gif'}


3)Element Reference from XML file

  Insert a dummy image in the template.

  Insert in the format picture dialog box select the web tab.

  Enter the following syntax in the Alternative text region to reference the image URL:

   url:{IMAGE_LOCATION}

  Where IMAGE_LOCATION is an element from the XML file that holds the full URL to the image.

  Another option is to build a URL based on multiple elements at runtime.

   url:{concat('$[OA_MEDIA]/',.//IMAGE_FILE)}


4)Rendering an Image Retrieved from BLOB Data

<fo:instream-foreign-object content type="image/jpg">

<xsl:vlue-of select='IMAGE_ELEMENT"/>

</fo:instram-foreign-object>

No comments:

Post a Comment