Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 29th, 2006, 04:59 PM
Registered User
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default xslt adding image

Good day!I have an image in my C:\test.jpg. I want to put this image in my xslt (just right above the copyright thingy) as a logo and if i click on that image it should navigate to www.abcd.com.
how to do it in xslt?Thanks in advance.
Old December 30th, 2006, 10:06 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

XSLT is for, loosely speaking, transforming text from one format to another, it has no concept of images or links. Show your current input document and desired output.


Joe (Microsoft MVP - XML)
Old December 30th, 2006, 06:35 PM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

Presumably your XSLT stylesheet is generating HTML output. You don't want the image in your XSLT stylesheet, you want it in your HTML output. Do you know what HTML you want to generate? If so, generating an <img> element is just the same as generating any other element. If you don't know what HTML output you want your stylesheet to produce, then you're in the wrong place: you want an HTML forum.

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding up values in xslt northwind XSLT 21 February 17th, 2017 09:07 AM
Adding Image on Canvas seikwon180 Pro Java 1 July 17th, 2013 02:09 AM
xslt adding text blitzer XSLT 3 May 19th, 2007 10:10 PM
adding an image {$photo_server} Aaron_j XSLT 1 July 29th, 2005 11:13 AM
adding elements in XSLT 1.0 spencer.clark XSLT 3 July 25th, 2005 09:41 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.