Re: urk, simple question, testing for #PCDATA

Subject: Re: urk, simple question, testing for #PCDATA
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 07 Jul 1997 18:58:21 -0400
Norman Walsh wrote:
> 
> Sorry folks,
> 
> I'm on the road and away from my DSSSL spec.  How can I test if
> the content of an element is just #PCDATA?  (Consider the ENTRY
> element in DocBook, for example, which can contain either block
> level elements or #PCDATA.)

(if (node-list-empty? (select-by-class (children (cn)) 'element))
       	        "NO ELEMENTS"
               	"ELEMENTS")))))

 Paul Prescod


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread