Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Generating an IMG tag [Thread Next] Re: Generating an IMG tagTo: NULL Date: 9/2/2005 2:47:00 PM Hi All,
Many thanks for your replies. A little further searching of this group
suggested the following successful solution;
<xsl:variable name="pc" select="percent"/>
<img src="images/{$pc}.png"/>
[I actually discovered this soon after posting my request, so haven't
tried your suggestions. I have, however, learnt about the
xsl:attribute tag, so am very grateful!]
Neil, it was indeed a lot of work! A single image won't work, because I
wanted to give an indication of capacity and utilisation.
(By the way, to see what I'm working on, have a look at
http://www.uclan.ac.uk/other/iss/rover/computers.html The web page is
currently written directly as HTML. I'm rewriting it so that the data
is XML, and the presentation is achieved by XSL. Got everything
working, hope to deploy the revised method next week. By have data
available as XML, I can easily render it differently for different
purposes - I'm considering a version in WML for viewing on mobile
phones! A textbook use for XML and XSLT!)
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
