Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > how to put image in xslt

Reply
Thread Tools

how to put image in xslt

 
 
Arun dudee
Guest
Posts: n/a
 
      04-11-2007
how to put img in xslt file where path of imge is present in xml not
my pat of xml is
<root>
<img>
<banner ban="C:/Documents and Settings/Administrator/Desktop/hariom/
xml/b.GIF"></banner>
</img>
<root>

 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      04-11-2007
Arun dudee wrote:
> how to put img in xslt file where path of imge is present in xml not
> my pat of xml is
> <root>
> <img>
> <banner ban="C:/Documents and Settings/Administrator/Desktop/hariom/
> xml/b.GIF"></banner>
> </img>
> <root>


It is not clear what you want to achieve. Putting an image into xslt
does not make much sense to me. If you want to put an image into the
HTML document that your XSLT stylesheet creates then that makes a lot
more sense. You simply need to transform the XML to HTML e.g. with a
template using an attribute value template
<xsl:template match="img">
<img src="file:///{banner/@ban}"/>
</xsl:template>
Note however that browsers rendering the HTML document might refuse to
load an image from the local file system for security reasons if the
HTML document is served over HTTP.



--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
why does the following with Queue, q.put('\x02', True) not put itin the queue? Gabriel Rossetti Python 3 04-25-2008 03:41 PM
how to put image in xslt Arun dudee XML 0 04-11-2007 11:26 AM
How to put XSLT element <xsl:value-of> inside an HTML tag? Matt XML 1 10-12-2004 09:02 AM
How to put XSLT element <xsl:value-of> inside an HTML tag? Matt Java 1 10-12-2004 12:36 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57