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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Allowed characters in element i, W. Eliot Kimber | Thread | Re: Root of a not-yet-parsed docume, Paul Prescod |
Re: Allowed characters in element i, W. Eliot Kimber | Date | Re: Root of a not-yet-parsed docume, Paul Prescod |
Month |