Using SUBDOCs

Subject: Using SUBDOCs
From: Alexander Taranov <tay@xxxxxxxxxx>
Date: Wed, 14 Oct 1998 18:45:56 +0400 (MSD)
Chuck Darney writes:
 > Has anyone had any experience using SUBDOCs that could share some tips
 > and examples?  What I'm trying doesn't seem to be working properly.
 > 
 > ...Chuck Darney
 > ...cdarney@xxxxxxxxxxxxxxxx
 > 
 > 
 >  DSSSList info and archive:http://www.mulberrytech.com/dsssl/dssslist

Only very limited.
Task is as follows:
Given template file and in some places which
are marked with element <docref ref="subdoc-entity">
I want to insert something which is result of
dsssll processing of subdoc

style sheet is like that:


(define (same-element #!optional (nd (current-node)))
  (make element
	gi: (gi nd)
	attributes: (copy-attributes nd)))


;;; leave all unchanged
(default (same-element))


;;; except this element
(element 
 docref
 (let ((file ;; file with subdoc
	(entity-system-id ((attribute-string "subdoc-entity")))
  (with-mode mk-xref ;; this mode actually finds some info 
                     ;; and inserts it inplace of docref element
	     (process-node-list
	      (sgml-parse file)))))

.......


regards 
alexander





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


Current Thread