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 richard@xxxxxxxxxxxxxxxxx DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
passing arguments: (element a) -> (, Markus Reinsch | Thread | RE: Multilingual DocBook documents., WROTH, MARK B |
Re: What best graphics format for R, Norman Walsh | Date | Re: Java pretty printing in/with Do, Christian Leutloff |
Month |