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 May 24th, 2010, 06:41 PM
Authorized User
 
Join Date: May 2007
Posts: 73
Thanks: 4
Thanked 0 Times in 0 Posts
Default Render image?

HI

Could some one let me known how can i render images using xslt from the xml below:

Quote:
<Content>
<ID>99999</ID>
<Type>Content</Type>
<Title>Best Distributor</Title>
<Html>
<root>
<Headline>Data Select</Headline>
<Category>Best Distributor</Category>
<Image>
<img alt="Data Select" src="/uploadedImages/abc/Data-Select-logo.jpg" />
</Image>
<Article>
Having decided to integrate the airtis....
<div class="BackToList_btn">
<a class="BackToList_btn" title="Categories" href="/A/Categories.aspx">Return Categories</a>
</div><br /><br />
</Article>
</root>
</Html>


</Content>
__________________
Cheers
Sheraz
 
Old May 25th, 2010, 03:12 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

XSLT can be used to transform your input XML into a different XML format (for example, XSL Formatting Objects) or into HTML. It can't "render images" directly, it can only generate output in a format that some other software (for example a web browser) is capable of rendering.

If your target environment is HTML, then start by sketching out the HTML you want to produce. Handling the image references is no different from any of the rest of the information - you're only manipulating text.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Render Via Binary Writer rwiethorn BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 3 August 2nd, 2007 02:44 AM
Zoom in the render Tepox2000 Reporting Services 0 October 24th, 2006 12:19 PM
Render and credentials TonyStoker Reporting Services 0 May 17th, 2006 05:53 PM
Render to Printer kirbykn BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 April 21st, 2005 03:17 PM
ReportingService.Render Method jmurdock BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 23rd, 2004 02:58 PM





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