newbie question: store elements as variables

Subject: newbie question: store elements as variables
From: Bas Peters <bpeters@xxxxxx>
Date: Thu, 8 Oct 1998 15:20:28 +0200
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


Current Thread