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)>
   <a>
   <b>Some Text</b>
   <c>More Text</c>
   </a>

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

   (element a
     if
       (with-mode x ...)
     else
       (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:  http://www.mulberrytech.com/dsssl/dssslist


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