This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Adding HTML Data Into XSL File
- From: "Scott Purcell" <spurcell at vertisinc dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 2 Jul 2002 13:31:31 -0500
- Subject: [xsl] Adding HTML Data Into XSL File
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello,
I have a problem that I need some advice on. I am doing a Xalan transformation, using a xml document and a xsl document. The result is sent to the browser has works great. But I have been given a new assignemnt, in which I am having trouble with.
I have been directed to add a <img src="/somepathtoanimage"> to the xsl. But the path needs to be dynamic (coming from a servlet parameter). So I created a <xsl:param name="image" select="'/defaultpath'" />
And when I do the transform, I try and put in a valid generated path, but it does not work. When I source the page, the browser shows the following:
</table><img src="/somepaththat/isvalid/a.gif"></form>
So it prints the above to the screen and not <img src="/somepaththat/isvalid/a.gif"> which would show the a.gif.
Any ideas how to get around this?
Is this the way people add dynamic HTML do their transformation, or is there a better way, using some other tool.?
Scott Purcell | Developer | VERTIS | 555 Washington Ave. 4th Floor | St. Louis, MO 63101 |
T 314.588.0720 | F 314.588.0735 | spurcell@vertisinc.com | http://www.vertisinc.com
Vertis is a global powerhouse for integrated marketing and advertising solutions that seamlessly combine advertising, direct marketing, media, imaging and progressive technology. Vertis' products and services include: consumer and media research, media planning and placement, creative services, digital media production, targetable insert programs, fully integrated direct marketing programs, circulation-building newspaper products and eMarketing.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list