Subject: Re: process-node-list, select-element, etc..... From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx> Date: Tue, 19 May 1998 13:08:50 -0400 |
Frank Pursel wrote: > > Wow. This is exactly what I needed. I modified my document only > slightly, per your clue, and it works! I just had to add one > empty element 'header' to make things work. I honestly don't > understand what the benefit of all the complexity is though. Why > can't all elements in a document just be treated equally? The root construction rule does not match an element, but the sgml-document node, which represents all of the elements and the DTD etc. I think your real question is "why doesn't the sgml-document node have the document element as a child." That might be convenient sometimes, but I don't think that the current way is wrong. Would the DTD also be a "child" of the sgml-document node? Paul Prescod - http://itrc.uwaterloo.ca/~papresco "A writer is also a citizen, a political animal, whether he likes it or not. But I do not accept that a writer has a greater obligation to society than a musician or a mason or a teacher. Everyone has a citizen's commitment." - Wole Soyinka, Africa's first Nobel Laureate DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: process-node-list, select-eleme, Tony Graham | Thread | Simple Recipe: process-element-chil, David Megginson |
Re: process-node-list, select-eleme, Tony Graham | Date | Simple Recipe: process-element-chil, David Megginson |
Month |