Re: (dsssl) Dynamic defines

Subject: Re: (dsssl) Dynamic defines
From: Jany Quintard <jany.quintard@xxxxxxx>
Date: Tue, 27 Feb 2001 10:30:05 +0100 (MET)
En réponse à Devin Weaver <ktohg@xxxxxxxxxxxxx>:

> 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"
> "http://www.oasis-open/docbook/xml/4.1.2/docbookx.dtd";>
>     <book lang="en" id="book1" status="draft">
> 	<chapter id="ch1">
> 	    <para>This is a para. <remark>This is a
> 	    comment.</remark></para>
> 	<chapter>
>     </book>
> 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:

Jany Quintard            | Jeg er en flot fyr,
jany.quintard@xxxxxxxxxx | kun jeg trækker maven ind

 DSSSList info and archive:

Current Thread