Re: passing arguments: (element a) -> (element b)

Subject: Re: passing arguments: (element a) -> (element b)
From: Richard Light <richard@xxxxxxxxxxxxxxxxx>
Date: Mon, 23 Feb 1998 16:09:07 +0000
In message <199802231327.OAA27533@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Markus Reinsch <mreinsch@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes
>I am looking for a method to pass arguments
>from  one element-construction-rule  to his  child element-construction-rules.
>   Imagine a SGML-Document like this:
>   <!element a     (b,c)>
>   <!element (b,c) (#PCDATA)>
>   <a>
>   <b>Some Text</b>
>   <c>More Text</c>
>   </a>
>Do YOU know any solution?

I'm not clear from your statement of problem exactly what these
arguments are, and what they are for.  

If you just want to make the processing context-sensitive, you can give
the path in the element construction rule:

(element (a b) ...)
(element (a c) ...)

You can always test properties of the parent of an element from within
its own construction rule:

(element b
  (if (= (gi (parent)) "A")

This is more in keeping with DSSSL's side-effect-free approach, as I
understand it: you don't pass arguments down, instead you check out
properties of the grove from where you happen to be.

Richard Light.

Richard Light
SGML/XML and Museum Information Consultancy

 DSSSList info and archive:

Current Thread
  • passing arguments: (element a) -> (element b)
    • Markus Reinsch - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id IAA17034Mon, 23 Feb 1998 08:25:37 -0500 (EST)
      • Richard Light - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id MAA20641Mon, 23 Feb 1998 12:04:15 -0500 (EST) <=