Re: Another newbie question...

Subject: Re: Another newbie question...
From: Norman Walsh <norm@xxxxxxxxxxxxx>
Date: Fri, 29 Aug 1997 11:38:04 -0700
Vu Nguyen <vu@xxxxxxxxxx> writes:
> how would I do that? Forexample, I have a document like this:
>   <MyDiary date="...">
>   <Text>
>     ....
>   </Text>
>   </MyDiary>
>   I want to get the date attribute at any time not just when I process the
> MyDiary element... how would I do that and is it possible?? I noticed that
> when I tried this:
>   (attribute-string "DATE" MyDiary) it would be invalid... Please help..

Try (attribute-string "DATE" (ancestor "MYDIARY")) The osnl has
to be a node, so you need to pass a function that returns the
node you want to access.  (You could also find the node with an
ID, for example.)

Norman Walsh <nwalsh@xxxxxxxxxxxxx> | DNA neither cares nor knows. DNA
Senior Application Analyst          | just is. And we dance to its
ArborText, Inc. ( | music. -- Richard Dawkins
413.549.3868 Voice/FAX              | 

 DSSSList info and archive:

Current Thread