Root of a not-yet-parsed document?

Subject: Root of a not-yet-parsed document?
From: Chris Maden <crism@xxxxxxx>
Date: Thu, 30 Apr 1998 18:47:57 -0400 (EDT)
I'm trying to create stylesheets that will work for SGML or XML
documents.  I have a function (norm) (Hi, Norm!) that will normalize a
string according to the SGML declaration in effect:

(define (norm str)
  (general-name-normalize str
			  (current-node)))

The problem is that I need this function to define some parameters
(lists of element type names, for instance), where there isn't yet any
(current-node).  I can't figure out or find any function that will get
me the root (or any other node) of the document being parsed without
any current context from which to navigate.  (current-root) looks like
it might do it, but it appears to be unimplemented in Jade 1.1, and is
a DSSSL primitive.  (I could implement it in terms of (current-node),
but that obviously doesn't help anything.)

Help?

Thanks in advance,
Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


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


Current Thread
  • Root of a not-yet-parsed document?
    • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id SAA03032Thu, 30 Apr 1998 18:53:16 -0400 (EDT) <=
      • Paul Prescod - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id TAA03648Thu, 30 Apr 1998 19:33:27 -0400 (EDT)