Recursive elements in DSSSL

Subject: Recursive elements in DSSSL
From: Stephane Bortzmeyer <bortzmeyer@xxxxxxxxxx>
Date: Tue, 29 Feb 2000 15:39:48 +0100
				
I'm using DSSSL for processing DocBook documents and I have a problem with 
<section> elements: they can be embedded. I want to do a different processing 
according to the depth. It seems I cannot use a global value to record the 
depth, so I hesitate between:

(element section 
  ;; Do something for depth == 1
(element section section
  ;; Do something for depth == 2
;; etc

or code to explore the parents to find the depth.

I must confess my knowledge of DSSSL is unsufficient here. I've try to read 
Norman Walsh's Modular Stylesheets but the code to process them seems too 
hairy for me. Any simple solution?




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


Current Thread