One thing which I’m quite pleased with how easy it was to produce nicely type-set lists suitable for printing; and to do a one-off of one of those would be straight-forward for anyone who keeps his or her notes in Excel format.
The data is stored in xml for the simple reason that I don’t particularly want to pay to have a database on my web-hosting accounts. The basic idea to have one entry for each wine (e.g. Cockburn 2003 VP) but to allow separate entries for each time the wine is encountered. Therefore, you can keep separate records (with tasting notes) of the one case in the cellar (from which you have drunk 3 bottles); the three cases in storage; and the odd bottle you drank at an offline. This is a basic example of how it works:
Code: Select all
<cellar>
<wine>
<shipper>Taylor</shipper>
<quinta>Quinta do Vargellas</quinta>
<name>Vinha Vella</name>
<type>VP</type>
<year>2000</year>
<bin>
<location>Some offsite facility</location>
<stored bottles="24" />
</bin>
<bin>
<drunk glasses="1"/>
<notes>:tpf: offline. Roses; tangerines; peppermint.</notes>
<rating>C</rating>
</bin>
</wine>
</cellar>
The xml data can then be displayed in a number of different ways with separate xsl style-sheets. The style-sheet can also sort and process the data. The simplest and most useful is to display it as an html webpage: or plain text (the formatting of which is being ruined by phpBB):
Code: Select all
_______________________________________________________________________
|Year |Type |Number |Rating |Producer |
|_______|_______________|_______|_______|_______________________________|
|N/V |Ruby |1 | |C. Da Silva's
| | | | |Amilar
|_______|_______________|_______|_______|_______________________________|
|N/V |Ruby |1 | |Cockburn's
| | | | |Assured
|_______|_______________|_______|_______|_______________________________|
|Notes: |
|Standard ruby.
|_______________________________________________________________________|
|N/V |Ruby |1 | |Davy's
| | | | |Bin 11
|_______|_______________|_______|_______|_______________________________|
|N/V |Ruby |1 | |Delaforce's
| | | | |Paramount
|_______|_______________|_______|_______|_______________________________|
A couple of extra lines allow booklets of tasting notes to be made, too:
Finally, the little image in my signature:

is made by using xslt to produce output suitable for passing through ImageMagick.
To get everything up-and-running, it would be necessary to convert your data into xml and then run xsltproc with the xslt style-sheets on the data. For the html and plain text, the direct output is usable. For the others, it will then need to be parsed through the relevant programme (e.g. pdftex or imagemagick). For that I would either use a cron job to do it automatically or some sort of script to do it on demand.
Anyway, as I said, this is probably a bit too hacked-together for it to be of use to anyone else, but if it is, feel free to use it. Equally, if anyone would like a particular bit of this, it would be no trouble to put together on a one-off basis.
