Loving this idea...
There was two things I was going to suggest for the XML file spec, and a third to the general public.
The first two was the inclusion of the following two additional tags (Optional of course in the actual format)
| code |
<component opt="image">data</component> |
and
| code |
<component opt="logo">data</component> |
I know it sounds silly, but some people like to brand their mods/addons/blocks - both for the item themselves or the company/group/team they work for.
The data component will be then a base 64 encoded file (gif, jpg, png, etc) which will allow the file to continue to be self contained.
Data will be something like this...
| code |
png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA... |
You can then insert that back into an image tag as the source.. ie.
| code |
<img src="data:image/png;base64,...." alt=""> |
How can you do this
Base64 Embedded Image (not IE) and
Dean Edwards IE work around
The limitation will be an image that can be about 128 x 128 maximum due to the IE post length (the PHP workaround) - so not got for huge pictures, but small logos will be good.
Which then leads me on to the next suggestion.
We all know how busy Mem is writing this, so what I would like to propose is that we, the community, help write an builder or compiler for this XML file format, so people can write there own addons, etc, and have it created correctly every time. Things such as validity checkers, and security checks could be included?
What do people think? (to either set of suggestions)?