sgml-parse question

Subject: sgml-parse question
From: KDrake@xxxxxxxxxxxxx (Kathie Drake)
Date: Thu, 11 May 2000 12:27:22 -0700
Hello all,

I am using Jade to transform SGML documents to HTML documents.  I have had
really good results with the transformations.  Now I need to know if the
following is possible:  Can I use sgml-parse to get the root of a grove
based on a different DTD than the one that is currently "active"?

I have read section 10.1.7 about Grove Construction and I see an optional
key/value pair called "active:  ".  I have tried implementing this without
success.  I don't think the new DTD is being used.  I have renamed the name
of the dtd to bogus.dtd, which does not exist and Jade does not complain
about not finding it.

This is the code fragment in question:

(element coredod
   (let* ((targfile  (entity-generated-system-id "infile1"))
          (targdoc   (sgml-parse targfile active: '("doc.dtd")))
	   (targroot  (node-property 'document-element targdoc)))
    (process-node-list targroot))) 

I get errors about elements present in the "targfile" that are not defined.
 The elements are not defined in the original dtd but are defined in the
dtd that I am trying to make "active".

Does anyone have any ideas?

Thank you,
Kathie Drake

 DSSSList info and archive:

Current Thread