Subject: Re: First Occurrence of an Element From: James Clark <jjc@xxxxxxxxxx> Date: Wed, 15 Apr 1998 11:27:42 +0100 |
Chris Maden wrote: > > [Chuck Darney] > > Is it possible to know when the first occurrence of an element > > exists? I would like to be able to affect only the first occurrence > > of say the SECTION element. > > If they're always on the same level, you can use (child-number): > > (= (child-number (current-node)) > 1) first-sibling? or absolute-first-sibling? would be better: child-number and element-number can be slow. James DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: First Occurrence of an Element, Chris Maden | Thread | [no subject], Dr. Markus Hönicka |
Re: First Occurrence of an Element, Chris Maden | Date | [no subject], Dr. Markus Hönicka |
Month |