i'm back on a project i started ages ago and didn't get very far with which includes parsing sgml. i haven't been able to find a good source of info about sgml's syntax. where can i get a good thorough detailed description of that? i've found things like


but none of them really detail it. for example you can have this in an attribute list:

xmlns %URI; #FIXED 'http://www.w3.org/1999/xhtml'

but i've not found anything which talks about what follows the fixed part in any detail; will it always be on the same line? if not how do you reliably, programmatically, distinguish between something which is connected with fixed, and the next entry in the attribute list? sometimes there's nothing following fixed, sometimes it's in single quotes, sometimes double... etc.

so the kind of detail required to programmetically parse sgml, where can i find it does anyone know?