Subject: Re: [Re: First Occurrence of an Element] From: Chris Maden <crism@xxxxxxx> Date: Wed, 15 Apr 1998 10:51:32 -0400 |
[Chuck Darney] > These both work to find the lowest level of the element, but not > just the first time it occurs. I have an element SECTION. It can > and will ocuur throughout the instance. There can be SECTIONs > within SECTIONs... What I need to do is execute a function the > first time a SECTION element is encountered, but never again. > Should a switch be set within the executed function to say that it's > been done and it's not to be done again? You can't do that; that's a side-effect. Doesn't (= (list-ref (element-number-list '("CHAPTER" "SECTION") (current-node)) 1) 1) work to find the first SECTION in the current CHAPTER, regardless of nesting? If it doesn't work, can you explain what (element-number-list) does return in various circumstances? -Chris -- <!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN"> <!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN" "<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487 <USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek> DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [Re: First Occurrence of an Ele, Chuck Darney | Thread | Re: [Re: First Occurrence of an Ele, Daniel Speck |
Re: [Re: First Occurrence of an Ele, Chuck Darney | Date | Re: [Re: First Occurrence of an Ele, Daniel Speck |
Month |