Quoting nico <[EMAIL PROTECTED]>: > On Mon, 11 Jun 2007 11:42:23 -0400, Aditya Mahajan > <[EMAIL PROTECTED]> wrote: > >> Thanks. I had not looked at them and some of the things about handling >> at the ConTeXt end are more clear now. But I think that I did not >> explain my question correctly. >> >> What I do not understand how are abbreviations etc. handled by xslt for >> conversion into html. For example, how do I write an xsl style sheet >> that converts this xml input >> >> <abbreviation value="EECS", short="EECS", full="Electrical Engineering >> and Computer Science" /> >> >> <p> I study <abbrev value="EECS"> which stands for <abbrev >> value="EECS", infull="yes"> </p> >> >> into html as >> >> <p> I study EECS which stands for Electrical Engineering and Computer >> Science </p> >> >> I know that this is not the right list to ask this sort of questions, >> but I am hoping that there are xml users here and they will be able to >> point me to the right direction. > > I haven't followed the thread, but attached an idea of doing what you > want with XSLT. Note that your example is not valid at all (commas > between attributes, missing ending '/' for empty elements).
Thank you. This is exactly what I wanted. I will now go back to using xml for simple documents and see how things go. > BTW, it's not a good idea to use the same attribute ("value") as an > reference identifier, and for referencing to another element. Ok. I will keep this in mind. Thanks, Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________