(dsssl) Dynamic defines

Subject: (dsssl) Dynamic defines
From: Devin Weaver <ktohg@xxxxxxxxxxxxx>
Date: Mon, 26 Feb 2001 08:45:41 -0500
I was wondering if there was a way to dynamically define a veriable
depending on the value of an attribute in the root tag.

For an example (DocBook):
    <?xml version="1.0"?>
    <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    <book lang="en" id="book1" status="draft">
	<chapter id="ch1">
	    <para>This is a para. <remark>This is a

I want to (define %show-comments% #t) only if status="draft"
The problem is in my custom dsl the current-node has yet to be defined
so there is no way for me to get at the attributs of book. and even if
I did the root element can change. (Could be article, part, set, etc.)

Anyone know how this could be done?

f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

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

Current Thread