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

Subject: passing arguments: (element a) -> (element b)
From: Markus Reinsch <mreinsch@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 23 Feb 1998 14:27:45 +0100 (MET)
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)>
   <b>Some Text</b>
   <c>More Text</c>

The (element a) construction-rule can influence the child-elements
by using modes:

   (element a
       (with-mode x ...)
       (with-mode y ...))

The problem is, that a mode-construction-rule-group doesn't accept arguments.
    (with-mode (MODENAME ARGUMENTS) ...).
    Now I am using "n-modes": (very ugly)
    (element a
      if 1
        (with-mode x1 ...)
      if 2
        (with-mode x2 ...)
      if 3
        (with-mode x3 ...))

Do YOU know any solution?


Markus Reinsch
email: mreinsch@xxxxxxxxxxxxxxxxxxxxxxxx

 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)