Subject: RE: Creating new element from nothing From: "Maltby, David G" <david.g.maltby@xxxxxxxx> Date: Wed, 25 Aug 1999 09:58:57 -0700 |
> Joerg Wittenberger [SMTP:Joerg.Wittenberger@xxxxxxxxx] wrote: >"Maltby, David G" <david.g.maltby@xxxxxxxx> wrote: >> <![CDATA[ >> (element A >> (make element gi: "a" >> (make formatting-instruction data: "<x></x>") >> (process-children) >> ) >> ) >> However this "feels" odd, I am wondering if there is another (better) way? > >How about: > > (element A > (make element gi: "a" > (make element gi: "x" (empty-sosofo)) > (process-children) > ) > ) Well, of course! This is much more flexible. The possibilities are endless. I could do: (element A (make element gi: "a" (make element gi: "x" (process-children) (make element gi: "y" (process-children) ) ) (process-children) ) ) (element B (make element gi: "b") ) and get: <a> <x> <b></b> <y><b></b> </y> </x> <b></b> </a> or just about any funky combination I wanted. Thank you Joerg for opening my eyes. I was just buried in the notion that for one node match -> one (make element) and one (process-children). David DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Creating new element from nothi, Joerg Wittenberger | Thread | Re: Stylesheets. (fwd), dssslist |
Re: Creating new element from nothi, Joerg Wittenberger | Date | Re: including style sheets, Peter Nilsson |
Month |