[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Adding HTML Data Into XSL File

Subject: RE: Adding HTML Data Into XSL File
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Wed, 3 Jul 2002 09:35:26 +0100
.img file
Its seems as though your <xsl:param> is being passed '<img src="...."/>'
and you are using something like <xsl:value-of select="$image"/>

If so, all you need to do is put

<img src="{$image}"/>

in your xsl, and pass just the path as the parameter

If not, you will need to post some more code ;)

cheers
andrew

-----Original Message-----
From: Scott Purcell [mailto:spurcell@xxxxxxxxxxxxx]
Sent: 02 July 2002 19:32
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Adding HTML Data Into XSL File


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>&lt;img src="/somepaththat/isvalid/a.gif"&gt;</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@xxxxxxxxxxxxx |
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





---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.