Subject: Re: Parent attribute part 2.. From: Daniel Speck <dspeck@xxxxxxxxxxxx> Date: Wed, 13 Aug 1997 16:37:49 -0400 |
Vu Nguyen wrote: > > Hi, > I got two replies on how to access parent attribute yesterday... I > gave it a try and still couldn't get it... Here I am again with this > question one more time... > Here is what I'm doing... > <X type=A> > <title>lksjflsda</title> > <Y> > <title> asdsfsdsadf</title> > </Y> > </X> > > I want to format the <title> inside <X> a different from <title> inside > <Y>... What is the way to know which title is which?? When I reach to one > <title>, how do I know if it's child of <X> or <Y>?? I thought of it by > checking its parent's attribute... but I don't know how... > Any help would be appreciated!! How about something like: (element (X TITLE) (make ...)) (element (Y TITLE) (make ...)) You could also do something like: (element (TITLE) (let ((parent-gi (gi (parent)))) (case parent ("X" (make ...)) ("Y" (make ...)) ))) ( > > -Vu Nguyen > > *-----------------------------------------------------* > * Isogen International Corp. vu@xxxxxxxxxx * > * Vietworld Network @ Dallas charlie@xxxxxxxxxxxxx * > * University of Dallas @ TX vucung@xxxxxxxxxxxx * > *-----------------------------------------------------* > > DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist -- Daniel Speck e-mail: dspeck@xxxxxxxxxxxx Research Engineer voice: +1 301.548.7818 Thomson Technology Services Group fax: +1 301.527.4094 1375 Piccard Drive, Rockville, MD 20850 WWW: www.thomtech.com DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Parent attribute part 2.., Vu Nguyen | Thread | Re: Parent attribute part 2.., Vivek Agrawala |
Parent attribute part 2.., Vu Nguyen | Date | inclusion procedure, David Megginson |
Month |