Subject: RE: newbie question: store elements as variables From: "Reynolds, Gregg" <greynolds@xxxxxxxxxxxxxx> Date: Thu, 8 Oct 1998 17:38:52 -0500 |
No can do. DSSSL disallows side-effects like assignment. The concept of "storage" (=assignment) is alien to its way of thinking. There are several different ways to get the end result you're after, but they all boil down to function application. In other words you'll have to write access functions (SDQL expressions) and apply them whereever you need them. If you design your program without relying on DSSSL standard processing model (walk the tree, find the match, apply) you may be able to acquire the value once and pass it around to the functions that need it. If you're not accustomed to thinking "functionally" (no side-effects) you may have an adjustment period, but its well worth the effort. > -----Original Message----- > From: Bas Peters [SMTP:bpeters@xxxxxx] > Sent: Thursday, October 08, 1998 8:20 AM > To: dssslist@xxxxxxxxxxxxxxxx > Subject: newbie question: store elements as variables > > I have been trying to store an element in a variable, but I cannot > figure out how it works. Any help is welcome. > > This is the fragment that includes the element: > > <mrcb099 i1="i1-blank" i2="i2-blank"> > <mrcb099-a>ILM-4232</mrcb099-a> > <mrcb099-c>23.00</mrcb099-c> > </mrcb099> > > Now I want to store the mrcb099-a element into variable *orderNo* > > I tried something like this, but it does not work: > > (define (*orderNo*) > (let ((x (select-elements (children (current-node))"MRCB099-a"))) > ) > ) > > I would like to use the variable in a literal as part of another > element. > > thanks in advance, > > regards > > Bas Peters > IDC Publishers > > > DSSSList info and archive: > http://www.mulberrytech.com/dsssl/dssslist DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: newbie question: store elements, Tony Graham | Thread | SGML to RTF and back to SGML, Tom Anderson |
Re: jadetex/entities/unicode, Tony Graham | Date | SGML to RTF and back to SGML, Tom Anderson |
Month |