Subject: empty-element? From: "Jacco van Ossenbruggen" <jrvosse@xxxxxxxx> Date: Fri, 10 Oct 1997 15:38:02 +0200 |
How can I find out whether an element has a declared content of empty? I need this information in an SGML to SGML transformation using jade -t sgml to choose between the "element" or "empty-element" flow object. Jacco PS: As a hack, I defined (define (empty-element? #!optional (nd (current-node))) (node-list-empty? (children nd))) But this returns true if the element was not declared empty but happens to be empty in the document. -- Jacco van Ossenbruggen Faculty of Mathematics and Computer Science mailto:jrvosse@xxxxxxxx Vrije Universiteit, de Boelelaan 1081a http://www.cs.vu.nl/~jrvosse/ 1081 HV Amsterdam (fax: +31 20 44 47653) DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: sgml transform, one-to-one plus, Paul Prescod | Thread | Re: empty-element?, Daniel Speck |
sgml transform, one-to-one plus toc, Pawson, David | Date | Re: sgml transform, one-to-one plus, Chris Maden |
Month |