Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Generating an IMG tag

From: "Neil Smith [MVP Digital Media]" <neil@------.--->
To: NULL
Date: 9/2/2005 6:10:00 PM
On 1 Sep 2005 15:01:01 -0700, amahmood5@u... wrote:

>Hi all,
>
>I've got an XML data file, with a <percent> element from 0 to 100.  I'd
>like the XSL file to translate this into an <img> tag. I'll explain...
>
>I'd like this <percent> value to be presented graphically.  I have a
>library of 100 graphics files, called 0.png to 100.png. 

Wow, that's a lot of work ! Wouldn't it make more sense to either : 

1) Use an 1(or n-) pixel high image then modify the height attribute
of the img tag, or 

2) Use CSS and have the img as the background-image property of the
html element. Then set background-repeat: repeat-y in the CSS to make
it tile? http://www.w3schools.com/css/pr_background-repeat.asp

Either way then you just have one image to work with and for the users
browser to load. Just a thought .... 

I did this once, and used DHTML to add a 'baseline' and 'cap' image to
make it "look-3D".



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent