node-property

Subject: node-property
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Mon, 28 Jul 1997 12:54:23 -0400
I wanted to explore node-property a little, and had some good luck with
it, and some bad luck. I was successful in getting at the entities in a
document, but not the elements. It looks to me like this program should
print out the number of elements declared in an SGML document's DTD (is
that right?):

<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style
Sheet//EN">
(root 
  (make simple-page-sequence
   (make paragraph
    (literal 
         (number->string
                (node-list-length
                    (node-property "elements" (current-node))))))))

But it always prints out 0. Any ideas?

 Paul Prescod

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


Current Thread