This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Adding HTML Data Into XSL File


Scott,

At 02:31 PM 7/2/2002, you wrote:
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.
If you were to show us the piece of code which generates the <img/> (and in which you use the parameter you set up), someone could say why the <img/> in your XSLT is being processed as a string and not a node.


Is this the way people add dynamic HTML do their transformation, or is there a better way, using some other tool.?
From what you have described this sounds like a perfectly reasonable way of doing it.






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

======================================================================
Wendell Piez                            mailto:wapiez@mulberrytech.com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]