Re: [xsl] Is the first preceding-sibling a processing-instruction?

Subject: Re: [xsl] Is the first preceding-sibling a processing-instruction?
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 8 May 2023 14:55:35 -0000
On Mon, May 08, 2023 at 01:37:45PM -0000, Michael Kay mike@xxxxxxxxxxxx scripsit:
> But you could do 
> 
> preceding-sibling::node()[not(self::text())][1][self::processing-instruction()]

I would use

preceding-sibling::processing-instruction()[1]

And I think it means "of my preceding siblings nodes which have node
type processing instruction, I want the one closest to me".

Have I got that wrong?  Or is it only wanted if there's no intervening
node that's not a white space only text node?

-- 
Graydon Saunders  | graydonish@xxxxxxxxx
^fs oferiode, pisses swa mfg.
-- Deor  ("That passed, so may this.")

Current Thread