cancel
Showing results for 
Search instead for 
Did you mean: 

Image path in a XSL file

Former Member
0 Kudos

Hi all

In a web dynpro project I have an XSL file wich I use to generate dynamic HTML files.

This XSL file is located in src/packages/xslt/sad.xsl

(xslT path is a new path created by me).

The point is, sad.xsl needs to include an image in the html page it generates.

I have an <img> tag but I'm not sure where to save this image in my web dynpro project and what should be the path in the <img> tag...

I'd really appreciate any help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

By default WebDynpro will pickup the images from folder "src/mimes/Components/".

So if you save the image file in the above directory then you can see the image on the control.

In the <img> tag just give the name of the image .

Regards, Anilkumar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Xavier,

In order to do XSL transformations in my Web Dynpro Project I imported an external jar (from Apache) called "Apache Xalan XSL processor"

I didn't use any SAP technology because the api I found didn't work with Web Dynpro (not 100% sure).

I recommend you to read this article from <a href="http://www.javaworld.com/javaworld/jw-09-2000/jw-0908-xpath.html">Java World</a>

wich explains in detail the jars you need to import and the code to do XSL transformations.

If you need any additional help about it or have any issue including this code in Web Dynpro please let me know

xavier_vasanth
Explorer
0 Kudos

Hi Felipe,

We have a requirement where we would have to use an XSL file generated by a Portal application in Web Dynpro.

Would you be able to share any idea on how this could be done ? Appreciate your effort.

Warm Regards,

Xavier